78 $method =
'set' . ucfirst($key);
81 }
elseif ($key ==
'jsonrpc') {
97 if ((
null === $key) || !is_string($key)) {
98 $index = count($this->_params);
101 $this->_params[$key] =
$value;
129 $this->_params = array();
141 if (array_key_exists(
$index, $this->_params)) {
142 return $this->_params[
$index];
166 if (!preg_match($this->_methodRegex,
$name)) {
167 $this->_isMethodError =
true;
169 $this->_method =
$name;
202 $this->_id = (string)
$name;
225 $this->_version =
'2.0';
227 $this->_version =
'1.0';
250 #require_once 'Zend/Json.php'; 265 if (
null !== (
$id = $this->
getId())) {
266 $jsonArray[
'id'] =
$id;
270 $jsonArray[
'params'] =
$params;
273 $jsonArray[
'jsonrpc'] =
'2.0';
276 #require_once 'Zend/Json.php';
static decode($encodedValue, $objectDecodeType=Zend_Json::TYPE_ARRAY)
elseif(isset( $params[ 'redirect_parent']))
addParam($value, $key=null)
setOptions(array $options)
static encode($valueToEncode, $cycleCheck=false, $options=array())
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
if(!isset($_GET['name'])) $name