113 $methods = get_class_methods($this);
115 $method =
'set' . ucfirst($key);
131 if (!in_array($transport, $this->_transportTypes)) {
132 #require_once 'Zend/Json/Server/Exception.php'; 135 $this->_transport = $transport;
157 if (!in_array($envelopeType, $this->_envelopeTypes)) {
158 #require_once 'Zend/Json/Server/Exception.php'; 161 $this->_envelope = $envelopeType;
184 if (!preg_match($this->_contentTypeRegex,
$type)) {
185 #require_once 'Zend/Json/Server/Exception.php'; 188 $this->_contentType =
$type;
210 $this->_target = (string)
$target;
232 $this->_id = (string)
$id;
276 $this->_dojoCompatible = (bool) $flag;
298 #require_once 'Zend/Json/Server/Smd/Service.php'; 306 #require_once 'Zend/Json/Server/Exception.php'; 310 if (array_key_exists(
$name, $this->_services)) {
311 #require_once 'Zend/Json/Server/Exception.php'; 340 $this->_services = array();
352 if (array_key_exists(
$name, $this->_services)) {
353 return $this->_services[
$name];
376 if (array_key_exists(
$name, $this->_services)) {
377 unset($this->_services[
$name]);
398 $service = compact(
'transport',
'envelope',
'contentType',
'SMDVersion');
403 if (
null !== (
$id = $this->
getId())) {
408 if (!empty($services)) {
410 foreach ($services as
$name => $svc) {
411 $svc->setEnvelope($envelope);
428 $serviceType =
'JSON-RPC';
429 $service = compact(
'SMDVersion',
'serviceType');
434 if (!empty($services)) {
436 foreach ($services as
$name => $svc) {
442 foreach ($svc->getParams() as $param) {
443 $paramName = array_key_exists(
'name', $param) ? $param[
'name'] : $param[
'type'];
445 'name' => $paramName,
446 'type' => $param[
'type'],
466 #require_once 'Zend/Json.php';
elseif(isset( $params[ 'redirect_parent']))
setDescription($description)
setEnvelope($envelopeType)
setServices(array $services)
static encode($valueToEncode, $cycleCheck=false, $options=array())
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
addServices(array $services)
setOptions(array $options)
if(!isset($_GET['name'])) $name