Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Assign session creation response to public variable. Makes it possibl…
Browse files Browse the repository at this point in the history
…e to read attributes like:

``$inactivity = (int) $xmppPrebind->response->getAttribute('inactivity') ?: null;``
  • Loading branch information
Piotr committed Jul 1, 2012
1 parent d815189 commit 597cada
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/XmppPrebind.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ class XmppPrebind {

protected $mechanisms = array();

/**
* Session creation response
*
* @var DOMDocument
*/
public $response;

/**
* Create a new XmppPrebind Object with the required params
Expand Down Expand Up @@ -144,6 +150,9 @@ public function connect($username, $password) {
}

$this->debug($this->encryption, 'encryption used');

// Assign session creation response
$this->response = $body;
}

/**
Expand Down

0 comments on commit 597cada

Please sign in to comment.