269 lines
9.3 KiB
PHP
Executable File
269 lines
9.3 KiB
PHP
Executable File
<?php
|
|
namespace Magento\Framework\Url\RouteParamsResolver;
|
|
|
|
/**
|
|
* Interceptor class for @see \Magento\Framework\Url\RouteParamsResolver
|
|
*/
|
|
class Interceptor extends \Magento\Framework\Url\RouteParamsResolver implements \Magento\Framework\Interception\InterceptorInterface
|
|
{
|
|
use \Magento\Framework\Interception\Interceptor;
|
|
|
|
public function __construct(\Magento\Framework\App\RequestInterface $request, \Magento\Framework\Url\QueryParamsResolverInterface $queryParamsResolver, array $data = [])
|
|
{
|
|
$this->___init();
|
|
parent::__construct($request, $queryParamsResolver, $data);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setRouteParams(array $data, $unsetOldParams = true)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'setRouteParams');
|
|
return $pluginInfo ? $this->___callPlugins('setRouteParams', func_get_args(), $pluginInfo) : parent::setRouteParams($data, $unsetOldParams);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setRouteParam($key, $data)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'setRouteParam');
|
|
return $pluginInfo ? $this->___callPlugins('setRouteParam', func_get_args(), $pluginInfo) : parent::setRouteParam($key, $data);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getRouteParams()
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getRouteParams');
|
|
return $pluginInfo ? $this->___callPlugins('getRouteParams', func_get_args(), $pluginInfo) : parent::getRouteParams();
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getRouteParam($key)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getRouteParam');
|
|
return $pluginInfo ? $this->___callPlugins('getRouteParam', func_get_args(), $pluginInfo) : parent::getRouteParam($key);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function addData(array $arr)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'addData');
|
|
return $pluginInfo ? $this->___callPlugins('addData', func_get_args(), $pluginInfo) : parent::addData($arr);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setData($key, $value = null)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'setData');
|
|
return $pluginInfo ? $this->___callPlugins('setData', func_get_args(), $pluginInfo) : parent::setData($key, $value);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function unsetData($key = null)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'unsetData');
|
|
return $pluginInfo ? $this->___callPlugins('unsetData', func_get_args(), $pluginInfo) : parent::unsetData($key);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getData($key = '', $index = null)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getData');
|
|
return $pluginInfo ? $this->___callPlugins('getData', func_get_args(), $pluginInfo) : parent::getData($key, $index);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getDataByPath($path)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getDataByPath');
|
|
return $pluginInfo ? $this->___callPlugins('getDataByPath', func_get_args(), $pluginInfo) : parent::getDataByPath($path);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getDataByKey($key)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getDataByKey');
|
|
return $pluginInfo ? $this->___callPlugins('getDataByKey', func_get_args(), $pluginInfo) : parent::getDataByKey($key);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setDataUsingMethod($key, $args = [])
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'setDataUsingMethod');
|
|
return $pluginInfo ? $this->___callPlugins('setDataUsingMethod', func_get_args(), $pluginInfo) : parent::setDataUsingMethod($key, $args);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getDataUsingMethod($key, $args = null)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getDataUsingMethod');
|
|
return $pluginInfo ? $this->___callPlugins('getDataUsingMethod', func_get_args(), $pluginInfo) : parent::getDataUsingMethod($key, $args);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function hasData($key = '')
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'hasData');
|
|
return $pluginInfo ? $this->___callPlugins('hasData', func_get_args(), $pluginInfo) : parent::hasData($key);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function toArray(array $keys = [])
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'toArray');
|
|
return $pluginInfo ? $this->___callPlugins('toArray', func_get_args(), $pluginInfo) : parent::toArray($keys);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function convertToArray(array $keys = [])
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'convertToArray');
|
|
return $pluginInfo ? $this->___callPlugins('convertToArray', func_get_args(), $pluginInfo) : parent::convertToArray($keys);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function toXml(array $keys = [], $rootName = 'item', $addOpenTag = false, $addCdata = true)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'toXml');
|
|
return $pluginInfo ? $this->___callPlugins('toXml', func_get_args(), $pluginInfo) : parent::toXml($keys, $rootName, $addOpenTag, $addCdata);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function convertToXml(array $arrAttributes = [], $rootName = 'item', $addOpenTag = false, $addCdata = true)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'convertToXml');
|
|
return $pluginInfo ? $this->___callPlugins('convertToXml', func_get_args(), $pluginInfo) : parent::convertToXml($arrAttributes, $rootName, $addOpenTag, $addCdata);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function toJson(array $keys = [])
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'toJson');
|
|
return $pluginInfo ? $this->___callPlugins('toJson', func_get_args(), $pluginInfo) : parent::toJson($keys);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function convertToJson(array $keys = [])
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'convertToJson');
|
|
return $pluginInfo ? $this->___callPlugins('convertToJson', func_get_args(), $pluginInfo) : parent::convertToJson($keys);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function toString($format = '')
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'toString');
|
|
return $pluginInfo ? $this->___callPlugins('toString', func_get_args(), $pluginInfo) : parent::toString($format);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function __call($method, $args)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, '__call');
|
|
return $pluginInfo ? $this->___callPlugins('__call', func_get_args(), $pluginInfo) : parent::__call($method, $args);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function isEmpty()
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'isEmpty');
|
|
return $pluginInfo ? $this->___callPlugins('isEmpty', func_get_args(), $pluginInfo) : parent::isEmpty();
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function serialize($keys = [], $valueSeparator = '=', $fieldSeparator = ' ', $quote = '"')
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'serialize');
|
|
return $pluginInfo ? $this->___callPlugins('serialize', func_get_args(), $pluginInfo) : parent::serialize($keys, $valueSeparator, $fieldSeparator, $quote);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function debug($data = null, &$objects = [])
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'debug');
|
|
return $pluginInfo ? $this->___callPlugins('debug', func_get_args(), $pluginInfo) : parent::debug($data, $objects);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function offsetSet($offset, $value)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'offsetSet');
|
|
return $pluginInfo ? $this->___callPlugins('offsetSet', func_get_args(), $pluginInfo) : parent::offsetSet($offset, $value);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function offsetExists($offset)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'offsetExists');
|
|
return $pluginInfo ? $this->___callPlugins('offsetExists', func_get_args(), $pluginInfo) : parent::offsetExists($offset);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function offsetUnset($offset)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'offsetUnset');
|
|
return $pluginInfo ? $this->___callPlugins('offsetUnset', func_get_args(), $pluginInfo) : parent::offsetUnset($offset);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function offsetGet($offset)
|
|
{
|
|
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'offsetGet');
|
|
return $pluginInfo ? $this->___callPlugins('offsetGet', func_get_args(), $pluginInfo) : parent::offsetGet($offset);
|
|
}
|
|
}
|