Detailed Description
Definition at line 44 of file Base.php.
Constructor & Destructor Documentation
Class constructor.
- Parameters:
-
| $options | array Options and dependency injection |
Definition at line 81 of file Base.php.
Member Function Documentation
| __call |
( |
$ |
methodName, |
|
|
$ |
args |
|
) |
| |
When a method call is made against this proxy, convert it to an HTTP request to make against the Nirvanix REST service.
$imfs->DeleteFiles(array('filePath' => 'foo'));
Assuming this object was proxying the IMFS namespace, the method call above would call the DeleteFiles command. The POST parameters would be filePath, merged with the $this->_defaults (containing the sessionToken).
- Parameters:
-
| string | $methodName | Name of the command to call on this namespace. |
| array | $args | Only the first is used and it must be an array. It contains the POST params. |
- Returns:
- Zend_Service_Nirvanix_Response
Definition at line 119 of file Base.php.
Make a complete URI from an RPC method name. All Nirvanix REST service URIs use the same format.
- Parameters:
-
| string | $methodName | RPC method name |
- Returns:
- string
Definition at line 155 of file Base.php.
Return the HTTP client used for this namespace. This is useful for inspecting the last request or directly interacting with the HTTP client.
- Returns:
- Zend_Http_Client
Definition at line 143 of file Base.php.
Field Documentation
$_defaults = array() [protected] |
Defaults for POST parameters. When a request to the service is to be made, the POST parameters are merged into these. This is a convenience feature so parameters that are repeatedly required like sessionToken do not need to be supplied again and again by the user.
- Parameters:
-
Definition at line 74 of file Base.php.
$_host = 'http://services.nirvanix.com' [protected] |
$_namespace = '' [protected] |
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/zend/Zend/Service/Nirvanix/Namespace/Base.php