123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\View\Layout;
- /**
- * Proxy class for @see \Magento\Framework\View\Layout
- * @SuppressWarnings(PHPMD.ExcessivePublicCount)
- */
- class Proxy extends \Magento\Framework\View\Layout implements \Magento\Framework\ObjectManager\NoninterceptableInterface
- {
- /**
- * Object Manager instance
- *
- * @var \Magento\Framework\ObjectManagerInterface
- */
- protected $_objectManager = null;
- /**
- * Proxied instance name
- *
- * @var string
- */
- protected $_instanceName = null;
- /**
- * Proxied instance
- *
- * @var \Magento\Framework\View\Layout
- */
- protected $_subject = null;
- /**
- * Instance shareability flag
- *
- * @var bool
- */
- protected $_isShared = null;
- /**
- * Proxy constructor
- *
- * @param \Magento\Framework\ObjectManagerInterface $objectManager
- * @param string $instanceName
- * @param bool $shared
- */
- public function __construct(
- \Magento\Framework\ObjectManagerInterface $objectManager,
- $instanceName = \Magento\Framework\View\Layout::class,
- $shared = true
- ) {
- $this->_objectManager = $objectManager;
- $this->_instanceName = $instanceName;
- $this->_isShared = $shared;
- }
- /**
- * @return array
- */
- public function __sleep()
- {
- return ['_subject', '_isShared'];
- }
- /**
- * Retrieve ObjectManager from global scope
- *
- * @return void
- */
- public function __wakeup()
- {
- $this->_objectManager = \Magento\Framework\App\ObjectManager::getInstance();
- }
- /**
- * Clone proxied instance
- *
- * @return void
- */
- public function __clone()
- {
- $this->_subject = clone $this->_getSubject();
- }
- /**
- * Get proxied instance
- *
- * @return \Magento\Framework\View\Layout
- */
- protected function _getSubject()
- {
- if (!$this->_subject) {
- $this->_subject = true === $this->_isShared
- ? $this->_objectManager->get($this->_instanceName)
- : $this->_objectManager->create($this->_instanceName);
- }
- return $this->_subject;
- }
- /**
- * {@inheritdoc}
- */
- public function setGeneratorPool(\Magento\Framework\View\Layout\GeneratorPool $generatorPool)
- {
- return $this->_getSubject()->setGeneratorPool($generatorPool);
- }
- /**
- * {@inheritdoc}
- */
- public function setBuilder(\Magento\Framework\View\Layout\BuilderInterface $builder)
- {
- return $this->_getSubject()->setBuilder($builder);
- }
- /**
- * {@inheritdoc}
- */
- public function publicBuild()
- {
- $this->_getSubject()->publicBuild();
- }
- /**
- * {@inheritdoc}
- */
- public function getUpdate()
- {
- return $this->_getSubject()->getUpdate();
- }
- /**
- * {@inheritdoc}
- */
- public function generateXml()
- {
- return $this->_getSubject()->generateXml();
- }
- /**
- * {@inheritdoc}
- */
- public function generateElements()
- {
- $this->_getSubject()->generateElements();
- }
- /**
- * {@inheritdoc}
- */
- public function getChildBlock($parentName, $alias)
- {
- return $this->_getSubject()->getChildBlock($parentName, $alias);
- }
- /**
- * {@inheritdoc}
- */
- public function setChild($parentName, $elementName, $alias)
- {
- return $this->_getSubject()->setChild($parentName, $elementName, $alias);
- }
- /**
- * {@inheritdoc}
- */
- public function reorderChild($parentName, $childName, $offsetOrSibling, $after = true)
- {
- $this->_getSubject()->reorderChild($parentName, $childName, $offsetOrSibling, $after);
- }
- /**
- * {@inheritdoc}
- */
- public function unsetChild($parentName, $alias)
- {
- return $this->_getSubject()->unsetChild($parentName, $alias);
- }
- /**
- * {@inheritdoc}
- */
- public function getChildNames($parentName)
- {
- return $this->_getSubject()->getChildNames($parentName);
- }
- /**
- * {@inheritdoc}
- */
- public function getChildBlocks($parentName)
- {
- return $this->_getSubject()->getChildBlocks($parentName);
- }
- /**
- * {@inheritdoc}
- */
- public function getChildName($parentName, $alias)
- {
- return $this->_getSubject()->getChildName($parentName, $alias);
- }
- /**
- * {@inheritdoc}
- */
- public function renderElement($name, $useCache = true)
- {
- return $this->_getSubject()->renderElement($name, $useCache);
- }
- /**
- * {@inheritdoc}
- */
- public function renderNonCachedElement($name)
- {
- return $this->_getSubject()->renderNonCachedElement($name);
- }
- /**
- * {@inheritdoc}
- */
- public function addToParentGroup($blockName, $parentGroupName)
- {
- return $this->_getSubject()->addToParentGroup($blockName, $parentGroupName);
- }
- /**
- * {@inheritdoc}
- */
- public function getGroupChildNames($blockName, $groupName)
- {
- return $this->_getSubject()->getGroupChildNames($blockName, $groupName);
- }
- /**
- * {@inheritdoc}
- */
- public function hasElement($name)
- {
- return $this->_getSubject()->hasElement($name);
- }
- /**
- * {@inheritdoc}
- */
- public function getElementProperty($name, $attribute)
- {
- return $this->_getSubject()->getElementProperty($name, $attribute);
- }
- /**
- * {@inheritdoc}
- */
- public function isBlock($name)
- {
- return $this->_getSubject()->isBlock($name);
- }
- /**
- * {@inheritdoc}
- */
- public function isUiComponent($name)
- {
- return $this->_getSubject()->isUiComponent($name);
- }
- /**
- * {@inheritdoc}
- */
- public function isContainer($name)
- {
- return $this->_getSubject()->isContainer($name);
- }
- /**
- * {@inheritdoc}
- */
- public function isManipulationAllowed($name)
- {
- return $this->_getSubject()->isManipulationAllowed($name);
- }
- /**
- * {@inheritdoc}
- */
- public function setBlock($name, $block)
- {
- return $this->_getSubject()->setBlock($name, $block);
- }
- /**
- * {@inheritdoc}
- */
- public function unsetElement($name)
- {
- return $this->_getSubject()->unsetElement($name);
- }
- /**
- * {@inheritdoc}
- */
- public function createBlock($type, $name = '', array $arguments = [])
- {
- return $this->_getSubject()->createBlock($type, $name, $arguments);
- }
- /**
- * {@inheritdoc}
- */
- public function addBlock($block, $name = '', $parent = '', $alias = '')
- {
- return $this->_getSubject()->addBlock($block, $name, $parent, $alias);
- }
- /**
- * {@inheritdoc}
- */
- public function addContainer($name, $label, array $options = [], $parent = '', $alias = '')
- {
- $this->_getSubject()->addContainer($name, $label, $options, $parent, $alias);
- }
- /**
- * {@inheritdoc}
- */
- public function renameElement($oldName, $newName)
- {
- return $this->_getSubject()->renameElement($oldName, $newName);
- }
- /**
- * {@inheritdoc}
- */
- public function getAllBlocks()
- {
- return $this->_getSubject()->getAllBlocks();
- }
- /**
- * {@inheritdoc}
- */
- public function getBlock($name)
- {
- return $this->_getSubject()->getBlock($name);
- }
- /**
- * {@inheritdoc}
- */
- public function getUiComponent($name)
- {
- return $this->_getSubject()->getUiComponent($name);
- }
- /**
- * {@inheritdoc}
- */
- public function getParentName($childName)
- {
- return $this->_getSubject()->getParentName($childName);
- }
- /**
- * {@inheritdoc}
- */
- public function getElementAlias($name)
- {
- return $this->_getSubject()->getElementAlias($name);
- }
- /**
- * {@inheritdoc}
- */
- public function addOutputElement($name)
- {
- return $this->_getSubject()->addOutputElement($name);
- }
- /**
- * {@inheritdoc}
- */
- public function removeOutputElement($name)
- {
- return $this->_getSubject()->removeOutputElement($name);
- }
- /**
- * {@inheritdoc}
- */
- public function getOutput()
- {
- return $this->_getSubject()->getOutput();
- }
- /**
- * {@inheritdoc}
- */
- public function getMessagesBlock()
- {
- return $this->_getSubject()->getMessagesBlock();
- }
- /**
- * {@inheritdoc}
- */
- public function getBlockSingleton($type)
- {
- return $this->_getSubject()->getBlockSingleton($type);
- }
- /**
- * {@inheritdoc}
- */
- public function addAdjustableRenderer($namespace, $staticType, $dynamicType, $type, $template, $data = [])
- {
- return $this->_getSubject()->addAdjustableRenderer(
- $namespace,
- $staticType,
- $dynamicType,
- $type,
- $template,
- $data
- );
- }
- /**
- * {@inheritdoc}
- */
- public function getRendererOptions($namespace, $staticType, $dynamicType)
- {
- return $this->_getSubject()->getRendererOptions($namespace, $staticType, $dynamicType);
- }
- /**
- * {@inheritdoc}
- */
- public function executeRenderer($namespace, $staticType, $dynamicType, $data = [])
- {
- $this->_getSubject()->executeRenderer($namespace, $staticType, $dynamicType, $data);
- }
- /**
- * {@inheritdoc}
- */
- public function initMessages($messageGroups = [])
- {
- $this->_getSubject()->initMessages($messageGroups);
- }
- /**
- * {@inheritdoc}
- */
- public function isCacheable()
- {
- return $this->_getSubject()->isCacheable();
- }
- /**
- * {@inheritdoc}
- */
- public function isPrivate()
- {
- return $this->_getSubject()->isPrivate();
- }
- /**
- * {@inheritdoc}
- */
- public function setIsPrivate($isPrivate = true)
- {
- return $this->_getSubject()->setIsPrivate($isPrivate);
- }
- /**
- * {@inheritdoc}
- */
- public function getReaderContext()
- {
- return $this->_getSubject()->getReaderContext();
- }
- /**
- * {@inheritdoc}
- */
- public function setXml(\Magento\Framework\Simplexml\Element $node)
- {
- return $this->_getSubject()->setXml($node);
- }
- /**
- * {@inheritdoc}
- */
- public function getNode($path = null)
- {
- return $this->_getSubject()->getNode($path);
- }
- /**
- * {@inheritdoc}
- */
- public function getXpath($xpath)
- {
- return $this->_getSubject()->getXpath($xpath);
- }
- /**
- * {@inheritdoc}
- */
- public function getXmlString()
- {
- return $this->_getSubject()->getXmlString();
- }
- /**
- * {@inheritdoc}
- */
- public function loadFile($filePath)
- {
- return $this->_getSubject()->loadFile($filePath);
- }
- /**
- * {@inheritdoc}
- */
- public function loadString($string)
- {
- return $this->_getSubject()->loadString($string);
- }
- /**
- * {@inheritdoc}
- */
- public function loadDom(\DOMNode $dom)
- {
- return $this->_getSubject()->loadDom($dom);
- }
- /**
- * {@inheritdoc}
- */
- public function setNode($path, $value, $overwrite = true)
- {
- return $this->_getSubject()->setNode($path, $value, $overwrite);
- }
- /**
- * {@inheritdoc}
- */
- public function applyExtends()
- {
- return $this->_getSubject()->applyExtends();
- }
- /**
- * {@inheritdoc}
- */
- public function processFileData($text)
- {
- return $this->_getSubject()->processFileData($text);
- }
- /**
- * {@inheritdoc}
- */
- public function extend(\Magento\Framework\Simplexml\Config $config, $overwrite = true)
- {
- return $this->_getSubject()->extend($config, $overwrite);
- }
- }
|