Class shardimage\shardimagephpapi\api\Request
Inheritance | shardimage\shardimagephpapi\api\Request » shardimage\shardimagephpapi\base\BaseObject |
---|
API request object.
Public Properties
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Creates the object, populates the properties and calls the "init" method. | shardimage\shardimagephpapi\base\BaseObject |
__get() | Returns the value of a non-defined property, it there is a getter method. | shardimage\shardimagephpapi\base\BaseObject |
__isset() | Does the non-defined property with a getter exist and is it not NULL? | shardimage\shardimagephpapi\base\BaseObject |
__set() | Sets the value of a non-defined property, if there is a setter method. | shardimage\shardimagephpapi\base\BaseObject |
__unset() | Sets the value of a non-defined property to NULL, if there is a setter. | shardimage\shardimagephpapi\base\BaseObject |
getSafeGetParams() | Returns the GET parameters after replacing the unsafe attributes with NULL (e.g. resources, objects). | shardimage\shardimagephpapi\api\Request |
getSafeParams() | Returns the parameters after replacing the unsafe attributes with NULL (e.g. resources, objects). | shardimage\shardimagephpapi\api\Request |
getSafePostParams() | Returns the POST parameters after replacing the unsafe attributes with NULL (e.g. resources, objects). | shardimage\shardimagephpapi\api\Request |
init() | Request initialization. | shardimage\shardimagephpapi\api\Request |
isRestCompatible() | Returns whether the request is restful compatible. | shardimage\shardimagephpapi\api\Request |
toArray() | Converts the object an array. | shardimage\shardimagephpapi\base\BaseObject |
Protected Methods
Method | Description | Defined By |
---|---|---|
ensureClass() | Creates an object from the given parameters. | shardimage\shardimagephpapi\base\BaseObject |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
MODE_ASYNC | 'async/serial' | Asynchronous request. | shardimage\shardimagephpapi\api\Request |
MODE_ASYNC_PARALLEL | 'async/parallel' | Parallel asynchronous request. | shardimage\shardimagephpapi\api\Request |
MODE_SYNC | 'sync/serial' | Synchronous request. | shardimage\shardimagephpapi\api\Request |
MODE_SYNC_PARALLEL | 'sync/parallel' | Parallel synchronous request. | shardimage\shardimagephpapi\api\Request |
Property Details
HTTP boundary for a multipart request
API controller
Non-restful (custom) action
Expire time of the request result on the backend (secs, 0: no limit)
File resource for a file subrequest
File references
GET parameters
Unique content ID
HTTP method
Synchronous/asynchronous request
API module
Content type for a multipart request
Optional notification URL
Mandatory parameters
Polling request ID
POST parameters
Parent reference attribute for a subrequest (parameter or field of model)
Parent reference content ID for a subrequest
Subrequests of a multipart request (like files)
Restful action
Restful ID
Max. execution time of the request on the backend (secs, 0: no limit)
Uri
Optional URI parameter formatter function
function($param, $value) {
return $value;
}
HTTP user agent
API version
Method Details
Returns the GET parameters after replacing the unsafe attributes with NULL (e.g. resources, objects).
public array getSafeGetParams ( ) |
Returns the parameters after replacing the unsafe attributes with NULL (e.g. resources, objects).
public array getSafeParams ( ) |
Returns the POST parameters after replacing the unsafe attributes with NULL (e.g. resources, objects).
public array getSafePostParams ( ) |
Request initialization.
This method generates the content ID and determines the HTTP method.
public void init ( ) |
Returns whether the request is restful compatible.
A request can be restful, if the action is restful and the existence of a model and the "id" parameter complies with that action.
public boolean isRestCompatible ( ) |