[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Zend Framework LICENSE
Copyright: | Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
License: | http://framework.zend.com/license/new-bsd New BSD License |
Version: | $Id$ |
File Size: | 258 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Zend_Rest_Client:: (10 methods):
__construct()
setUri()
getUri()
_prepareRest()
restGet()
_performPost()
restPost()
restPut()
restDelete()
__call()
Class: Zend_Rest_Client - X-Ref
__construct($uri = null) X-Ref |
Constructor param: string|Zend_Uri_Http $uri URI for the web service return: void |
setUri($uri) X-Ref |
Set the URI to use in the request param: string|Zend_Uri_Http $uri URI for the web service return: Zend_Rest_Client |
getUri() X-Ref |
Retrieve the current request URI object return: Zend_Uri_Http |
_prepareRest($path) X-Ref |
Call a remote REST web service URI and return the Zend_Http_Response object param: string $path The path to append to the URI return: void |
restGet($path, array $query = null) X-Ref |
Performs an HTTP GET request to the $path. param: string $path param: array $query Array of GET parameters return: Zend_Http_Response |
_performPost($method, $data = null) X-Ref |
Perform a POST or PUT Performs a POST or PUT request. Any data provided is set in the HTTP client. String data is pushed in as raw POST data; array or object data is pushed in as POST parameters. param: mixed $method param: mixed $data return: Zend_Http_Response |
restPost($path, $data = null) X-Ref |
Performs an HTTP POST request to $path. param: string $path param: mixed $data Raw data to send return: Zend_Http_Response |
restPut($path, $data = null) X-Ref |
Performs an HTTP PUT request to $path. param: string $path param: mixed $data Raw data to send in request return: Zend_Http_Response |
restDelete($path) X-Ref |
Performs an HTTP DELETE request to $path. param: string $path return: Zend_Http_Response |
__call($method, $args) X-Ref |
Method call overload Allows calling REST actions as object methods; however, you must follow-up by chaining the request with a request to an HTTP request method (post, get, delete, put): <code> $response = $rest->sayHello('Foo', 'Manchu')->get(); </code> Or use them together, but in sequential calls: <code> $rest->sayHello('Foo', 'Manchu'); $response = $rest->get(); </code> param: string $method Method name param: array $args Method args return: Zend_Rest_Client_Result|Zend_Rest_Client Zend_Rest_Client if using |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |