var/cache/dev/ContainerXos7vnb/LocationService_fd6e046.php line 34

Open in your IDE?
  1. <?php
  2. class LocationService_fd6e046 extends \eZ\Publish\Core\Repository\LocationService implements \ProxyManager\Proxy\VirtualProxyInterface
  3. {
  4.     /**
  5.      * @var \Closure|null initializer responsible for generating the wrapped object
  6.      */
  7.     private $valueHoldere39e4 null;
  8.     /**
  9.      * @var \Closure|null initializer responsible for generating the wrapped object
  10.      */
  11.     private $initializeraa1bb null;
  12.     /**
  13.      * @var bool[] map of public properties of the parent class
  14.      */
  15.     private static $publicProperties1a37c = [
  16.         
  17.     ];
  18.     public function copySubtree(\eZ\Publish\API\Repository\Values\Content\Location $subtree, \eZ\Publish\API\Repository\Values\Content\Location $targetParentLocation)
  19.     {
  20.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'copySubtree', array('subtree' => $subtree'targetParentLocation' => $targetParentLocation), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  21.         return $this->valueHoldere39e4->copySubtree($subtree$targetParentLocation);
  22.     }
  23.     public function loadLocation($locationId, ?array $prioritizedLanguages null, ?bool $useAlwaysAvailable null)
  24.     {
  25.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'loadLocation', array('locationId' => $locationId'prioritizedLanguages' => $prioritizedLanguages'useAlwaysAvailable' => $useAlwaysAvailable), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  26.         return $this->valueHoldere39e4->loadLocation($locationId$prioritizedLanguages$useAlwaysAvailable);
  27.     }
  28.     public function loadLocationList(array $locationIds, ?array $prioritizedLanguages null, ?bool $useAlwaysAvailable null) : iterable
  29.     {
  30.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'loadLocationList', array('locationIds' => $locationIds'prioritizedLanguages' => $prioritizedLanguages'useAlwaysAvailable' => $useAlwaysAvailable), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  31.         return $this->valueHoldere39e4->loadLocationList($locationIds$prioritizedLanguages$useAlwaysAvailable);
  32.     }
  33.     public function loadLocationByRemoteId($remoteId, ?array $prioritizedLanguages null, ?bool $useAlwaysAvailable null)
  34.     {
  35.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'loadLocationByRemoteId', array('remoteId' => $remoteId'prioritizedLanguages' => $prioritizedLanguages'useAlwaysAvailable' => $useAlwaysAvailable), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  36.         return $this->valueHoldere39e4->loadLocationByRemoteId($remoteId$prioritizedLanguages$useAlwaysAvailable);
  37.     }
  38.     public function loadLocations(\eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, ?\eZ\Publish\API\Repository\Values\Content\Location $rootLocation null, ?array $prioritizedLanguages null)
  39.     {
  40.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'loadLocations', array('contentInfo' => $contentInfo'rootLocation' => $rootLocation'prioritizedLanguages' => $prioritizedLanguages), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  41.         return $this->valueHoldere39e4->loadLocations($contentInfo$rootLocation$prioritizedLanguages);
  42.     }
  43.     public function loadLocationChildren(\eZ\Publish\API\Repository\Values\Content\Location $location$offset 0$limit 25, ?array $prioritizedLanguages null)
  44.     {
  45.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'loadLocationChildren', array('location' => $location'offset' => $offset'limit' => $limit'prioritizedLanguages' => $prioritizedLanguages), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  46.         return $this->valueHoldere39e4->loadLocationChildren($location$offset$limit$prioritizedLanguages);
  47.     }
  48.     public function loadParentLocationsForDraftContent(\eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo, ?array $prioritizedLanguages null)
  49.     {
  50.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'loadParentLocationsForDraftContent', array('versionInfo' => $versionInfo'prioritizedLanguages' => $prioritizedLanguages), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  51.         return $this->valueHoldere39e4->loadParentLocationsForDraftContent($versionInfo$prioritizedLanguages);
  52.     }
  53.     public function getLocationChildCount(\eZ\Publish\API\Repository\Values\Content\Location $location)
  54.     {
  55.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'getLocationChildCount', array('location' => $location), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  56.         return $this->valueHoldere39e4->getLocationChildCount($location);
  57.     }
  58.     public function createLocation(\eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct $locationCreateStruct)
  59.     {
  60.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'createLocation', array('contentInfo' => $contentInfo'locationCreateStruct' => $locationCreateStruct), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  61.         return $this->valueHoldere39e4->createLocation($contentInfo$locationCreateStruct);
  62.     }
  63.     public function updateLocation(\eZ\Publish\API\Repository\Values\Content\Location $location, \eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct $locationUpdateStruct)
  64.     {
  65.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'updateLocation', array('location' => $location'locationUpdateStruct' => $locationUpdateStruct), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  66.         return $this->valueHoldere39e4->updateLocation($location$locationUpdateStruct);
  67.     }
  68.     public function swapLocation(\eZ\Publish\API\Repository\Values\Content\Location $location1, \eZ\Publish\API\Repository\Values\Content\Location $location2)
  69.     {
  70.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'swapLocation', array('location1' => $location1'location2' => $location2), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  71.         return $this->valueHoldere39e4->swapLocation($location1$location2);
  72.     }
  73.     public function hideLocation(\eZ\Publish\API\Repository\Values\Content\Location $location)
  74.     {
  75.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'hideLocation', array('location' => $location), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  76.         return $this->valueHoldere39e4->hideLocation($location);
  77.     }
  78.     public function unhideLocation(\eZ\Publish\API\Repository\Values\Content\Location $location)
  79.     {
  80.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'unhideLocation', array('location' => $location), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  81.         return $this->valueHoldere39e4->unhideLocation($location);
  82.     }
  83.     public function moveSubtree(\eZ\Publish\API\Repository\Values\Content\Location $location, \eZ\Publish\API\Repository\Values\Content\Location $newParentLocation)
  84.     {
  85.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'moveSubtree', array('location' => $location'newParentLocation' => $newParentLocation), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  86.         return $this->valueHoldere39e4->moveSubtree($location$newParentLocation);
  87.     }
  88.     public function deleteLocation(\eZ\Publish\API\Repository\Values\Content\Location $location)
  89.     {
  90.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'deleteLocation', array('location' => $location), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  91.         return $this->valueHoldere39e4->deleteLocation($location);
  92.     }
  93.     public function newLocationCreateStruct($parentLocationId, ?\eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType null)
  94.     {
  95.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'newLocationCreateStruct', array('parentLocationId' => $parentLocationId'contentType' => $contentType), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  96.         return $this->valueHoldere39e4->newLocationCreateStruct($parentLocationId$contentType);
  97.     }
  98.     public function newLocationUpdateStruct()
  99.     {
  100.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'newLocationUpdateStruct', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  101.         return $this->valueHoldere39e4->newLocationUpdateStruct();
  102.     }
  103.     public function getAllLocationsCount() : int
  104.     {
  105.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'getAllLocationsCount', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  106.         return $this->valueHoldere39e4->getAllLocationsCount();
  107.     }
  108.     public function loadAllLocations(int $offset 0int $limit 25) : array
  109.     {
  110.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'loadAllLocations', array('offset' => $offset'limit' => $limit), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  111.         return $this->valueHoldere39e4->loadAllLocations($offset$limit);
  112.     }
  113.     /**
  114.      * Constructor for lazy initialization
  115.      *
  116.      * @param \Closure|null $initializer
  117.      */
  118.     public static function staticProxyConstructor($initializer)
  119.     {
  120.         static $reflection;
  121.         $reflection $reflection ?? $reflection = new \ReflectionClass(__CLASS__);
  122.         $instance $reflection->newInstanceWithoutConstructor();
  123.         unset($instance->repository$instance->persistenceHandler$instance->settings$instance->domainMapper$instance->nameSchemaService$instance->permissionCriterionResolver);
  124.         \Closure::bind(function (\eZ\Publish\Core\Repository\LocationService $instance) {
  125.             unset($instance->logger);
  126.         }, $instance'eZ\\Publish\\Core\\Repository\\LocationService')->__invoke($instance);
  127.         $instance->initializeraa1bb $initializer;
  128.         return $instance;
  129.     }
  130.     public function __construct(\eZ\Publish\API\Repository\Repository $repository, \eZ\Publish\SPI\Persistence\Handler $handler, \eZ\Publish\Core\Repository\Helper\DomainMapper $domainMapper, \eZ\Publish\Core\Repository\Helper\NameSchemaService $nameSchemaService, \eZ\Publish\API\Repository\PermissionCriterionResolver $permissionCriterionResolver, array $settings = [], ?\Psr\Log\LoggerInterface $logger null)
  131.     {
  132.         static $reflection;
  133.         if (! $this->valueHoldere39e4) {
  134.             $reflection $reflection ?: new \ReflectionClass('eZ\\Publish\\Core\\Repository\\LocationService');
  135.             $this->valueHoldere39e4 $reflection->newInstanceWithoutConstructor();
  136.         unset($this->repository$this->persistenceHandler$this->settings$this->domainMapper$this->nameSchemaService$this->permissionCriterionResolver);
  137.         \Closure::bind(function (\eZ\Publish\Core\Repository\LocationService $instance) {
  138.             unset($instance->logger);
  139.         }, $this'eZ\\Publish\\Core\\Repository\\LocationService')->__invoke($this);
  140.         }
  141.         $this->valueHoldere39e4->__construct($repository$handler$domainMapper$nameSchemaService$permissionCriterionResolver$settings$logger);
  142.     }
  143.     public function & __get($name)
  144.     {
  145.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'__get', ['name' => $name], $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  146.         if (isset(self::$publicProperties1a37c[$name])) {
  147.             return $this->valueHoldere39e4->$name;
  148.         }
  149.         $realInstanceReflection = new \ReflectionClass(get_parent_class($this));
  150.         if (! $realInstanceReflection->hasProperty($name)) {
  151.             $targetObject $this->valueHoldere39e4;
  152.             $backtrace debug_backtrace(false);
  153.             trigger_error(
  154.                 sprintf(
  155.                     'Undefined property: %s::$%s in %s on line %s',
  156.                     get_parent_class($this),
  157.                     $name,
  158.                     $backtrace[0]['file'],
  159.                     $backtrace[0]['line']
  160.                 ),
  161.                 \E_USER_NOTICE
  162.             );
  163.             return $targetObject->$name;
  164.             return;
  165.         }
  166.         $targetObject $this->valueHoldere39e4;
  167.         $accessor = function & () use ($targetObject$name) {
  168.             return $targetObject->$name;
  169.         };
  170.         $backtrace debug_backtrace(true);
  171.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  172.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  173.         $returnValue = & $accessor();
  174.         return $returnValue;
  175.     }
  176.     public function __set($name$value)
  177.     {
  178.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'__set', array('name' => $name'value' => $value), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  179.         $realInstanceReflection = new \ReflectionClass(get_parent_class($this));
  180.         if (! $realInstanceReflection->hasProperty($name)) {
  181.             $targetObject $this->valueHoldere39e4;
  182.             return $targetObject->$name $value;
  183.             return;
  184.         }
  185.         $targetObject $this->valueHoldere39e4;
  186.         $accessor = function & () use ($targetObject$name$value) {
  187.             return $targetObject->$name $value;
  188.         };
  189.         $backtrace debug_backtrace(true);
  190.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  191.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  192.         $returnValue = & $accessor();
  193.         return $returnValue;
  194.     }
  195.     public function __isset($name)
  196.     {
  197.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'__isset', array('name' => $name), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  198.         $realInstanceReflection = new \ReflectionClass(get_parent_class($this));
  199.         if (! $realInstanceReflection->hasProperty($name)) {
  200.             $targetObject $this->valueHoldere39e4;
  201.             return isset($targetObject->$name);
  202.             return;
  203.         }
  204.         $targetObject $this->valueHoldere39e4;
  205.         $accessor = function () use ($targetObject$name) {
  206.             return isset($targetObject->$name);
  207.         };
  208.         $backtrace debug_backtrace(true);
  209.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  210.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  211.         $returnValue $accessor();
  212.         return $returnValue;
  213.     }
  214.     public function __unset($name)
  215.     {
  216.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'__unset', array('name' => $name), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  217.         $realInstanceReflection = new \ReflectionClass(get_parent_class($this));
  218.         if (! $realInstanceReflection->hasProperty($name)) {
  219.             $targetObject $this->valueHoldere39e4;
  220.             unset($targetObject->$name);
  221.             return;
  222.         }
  223.         $targetObject $this->valueHoldere39e4;
  224.         $accessor = function () use ($targetObject$name) {
  225.             unset($targetObject->$name);
  226.         };
  227.         $backtrace debug_backtrace(true);
  228.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  229.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  230.         $returnValue $accessor();
  231.         return $returnValue;
  232.     }
  233.     public function __clone()
  234.     {
  235.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'__clone', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  236.         $this->valueHoldere39e4 = clone $this->valueHoldere39e4;
  237.     }
  238.     public function __sleep()
  239.     {
  240.         $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'__sleep', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  241.         return array('valueHoldere39e4');
  242.     }
  243.     public function __wakeup()
  244.     {
  245.         unset($this->repository$this->persistenceHandler$this->settings$this->domainMapper$this->nameSchemaService$this->permissionCriterionResolver);
  246.         \Closure::bind(function (\eZ\Publish\Core\Repository\LocationService $instance) {
  247.             unset($instance->logger);
  248.         }, $this'eZ\\Publish\\Core\\Repository\\LocationService')->__invoke($this);
  249.     }
  250.     public function setProxyInitializer(\Closure $initializer null)
  251.     {
  252.         $this->initializeraa1bb $initializer;
  253.     }
  254.     public function getProxyInitializer()
  255.     {
  256.         return $this->initializeraa1bb;
  257.     }
  258.     public function initializeProxy() : bool
  259.     {
  260.         return $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4$this'initializeProxy', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 $valueHoldere39e4;
  261.     }
  262.     public function isProxyInitialized() : bool
  263.     {
  264.         return null !== $this->valueHoldere39e4;
  265.     }
  266.     public function getWrappedValueHolderValue() : ?object
  267.     {
  268.         return $this->valueHoldere39e4;
  269.     }
  270. }