Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
setOptions (array $options) | |
setTransport ($transport) | |
getTransport () | |
setEnvelope ($envelopeType) | |
getEnvelope () | |
setContentType ($type) | |
getContentType () | |
setTarget ($target) | |
getTarget () | |
setId ($id) | |
getId () | |
setDescription ($description) | |
getDescription () | |
setDojoCompatible ($flag) | |
isDojoCompatible () | |
addService ($service) | |
addServices (array $services) | |
setServices (array $services) | |
getService ($name) | |
getServices () | |
removeService ($name) | |
toArray () | |
toDojoArray () | |
toJson () | |
__toString () | |
Data Fields | |
const | ENV_JSONRPC_1 = 'JSON-RPC-1.0' |
const | ENV_JSONRPC_2 = 'JSON-RPC-2.0' |
const | SMD_VERSION = '2.0' |
Protected Attributes | |
$_contentType = 'application/json' | |
$_contentTypeRegex = '#[a-z]+/[a-z][a-z-]+#i' | |
$_description | |
$_dojoCompatible = false | |
$_envelope = self::ENV_JSONRPC_1 | |
$_envelopeTypes | |
$_id | |
$_services = array() | |
$_target | |
$_transport = 'POST' | |
$_transportTypes = array('POST') | |
__toString | ( | ) |
Cast to string (JSON)
addService | ( | $service | ) |
Add Service
Zend_Json_Server_Smd_Service | array | $service |
Definition at line 296 of file Smd.php.
addServices | ( | array | $services | ) |
Add many services
array | $services |
Definition at line 324 of file Smd.php.
getId | ( | ) |
Get service id
getService | ( | $name | ) |
getTarget | ( | ) |
Retrieve service target
isDojoCompatible | ( | ) |
removeService | ( | $name | ) |
setContentType | ( | $type | ) |
Set content type
string | $type |
Definition at line 182 of file Smd.php.
setDescription | ( | $description | ) |
Set service description
string | $description |
Definition at line 252 of file Smd.php.
setDojoCompatible | ( | $flag | ) |
Indicate whether or not to generate Dojo-compatible SMD
bool | $flag |
setEnvelope | ( | $envelopeType | ) |
Set envelope
string | $envelopeType |
Definition at line 155 of file Smd.php.
setId | ( | $id | ) |
Set service ID
string | $Id |
Definition at line 230 of file Smd.php.
setOptions | ( | array | $options | ) |
Set object state via options
array | $options |
Definition at line 111 of file Smd.php.
setServices | ( | array | $services | ) |
Overwrite existing services with new ones
array | $services |
Definition at line 338 of file Smd.php.
setTarget | ( | $target | ) |
Set service target
string | $target |
Definition at line 208 of file Smd.php.
setTransport | ( | $transport | ) |
Set transport
string | $transport |
Definition at line 129 of file Smd.php.
toDojoArray | ( | ) |
toJson | ( | ) |
Cast to JSON
Definition at line 464 of file Smd.php.
|
protected |