Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_Nirvanix_Response Class Reference

Public Member Functions

 __construct ($xml)
 getSxml ()
 __get ($offset)
 __call ($method, $args)

Protected Member Functions

 _throwException ($message, $code=null)

Protected Attributes

 $_sxml

Detailed Description

Definition at line 34 of file Response.php.


Constructor & Destructor Documentation

__construct ( xml)

Class constructor. Parse the XML response from a Nirvanix method call into a decorated SimpleXMLElement element.

Parameters:
string$xmlXML response string from Nirvanix
Exceptions:
Zend_Service_Nirvanix_Exception

Definition at line 50 of file Response.php.

Here is the call graph for this function:


Member Function Documentation

__call ( method,
args 
)

Delegate undefined methods to the decorated SimpleXMLElement.

Parameters:
string$offsetUnderfined method name
array$argsMethod arguments
Returns:
mixed

Definition at line 99 of file Response.php.

__get ( offset)

Delegate undefined properties to the decorated SimpleXMLElement.

Parameters:
string$offsetUndefined property name
Returns:
mixed

Definition at line 87 of file Response.php.

_throwException ( message,
code = null 
) [protected]

Throw an exception. This method exists to only contain the lazy-require() of the exception class.

Parameters:
string$messageError message
integer$codeError code
Exceptions:
Zend_Service_Nirvanix_Exception
Returns:
void
See also:
Zend_Service_Nirvanix_Exception

Definition at line 113 of file Response.php.

Here is the caller graph for this function:

getSxml ( )

Return the SimpleXMLElement representing this response for direct access.

Returns:
SimpleXMLElement

Definition at line 76 of file Response.php.


Field Documentation

$_sxml [protected]

Definition at line 41 of file Response.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations