API Documentation

Service/Nirvanix/Response.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Nirvanix
version
$Id: Response.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Service_Nirvanix_Response

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Service_Nirvanix_Response

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Nirvanix
Properties
$_sxml
Methods
__construct
getSxml
__get
__call
_throwException

Description

This class decorates a SimpleXMLElement parsed from a Nirvanix web service response. It is primarily exists to provide a convenience feature that throws an exception when <ResponseCode> contains an error.

Properties

$_sxml

SimpleXMLElement $_sxml = ''

SimpleXMLElement parsed from Nirvanix web service response.

Details

$_sxml
SimpleXMLElement
visibility
protected
default
final
false
static
false

Methods

__call

__call(  $method, array $args ) : mixed

Delegate undefined methods to the decorated SimpleXMLElement.

Arguments
$method
$args
array
Method arguments
Output
mixed
Details
visibility
public
final
false
static
false

__construct

__construct( string $xml ) :

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

Arguments
$xml
string
XML response string from Nirvanix
Details
visibility
public
final
false
static
false
throws

__get

__get( string $offset ) : mixed

Delegate undefined properties to the decorated SimpleXMLElement.

Arguments
$offset
string
Undefined property name
Output
mixed
Details
visibility
public
final
false
static
false

_throwException

_throwException( string $message, integer $code = null ) : void

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

Arguments
$message
string
Error message
$code
integer
Error code
Details
visibility
protected
final
false
static
false
throws

getSxml

getSxml( ) : SimpleXMLElement

Return the SimpleXMLElement representing this response for direct access.

Output
SimpleXMLElement
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.