<?php
class LocationService_fd6e046 extends \eZ\Publish\Core\Repository\LocationService implements \ProxyManager\Proxy\VirtualProxyInterface
{
/**
* @var \Closure|null initializer responsible for generating the wrapped object
*/
private $valueHoldere39e4 = null;
/**
* @var \Closure|null initializer responsible for generating the wrapped object
*/
private $initializeraa1bb = null;
/**
* @var bool[] map of public properties of the parent class
*/
private static $publicProperties1a37c = [
];
public function copySubtree(\eZ\Publish\API\Repository\Values\Content\Location $subtree, \eZ\Publish\API\Repository\Values\Content\Location $targetParentLocation)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'copySubtree', array('subtree' => $subtree, 'targetParentLocation' => $targetParentLocation), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->copySubtree($subtree, $targetParentLocation);
}
public function loadLocation($locationId, ?array $prioritizedLanguages = null, ?bool $useAlwaysAvailable = null)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'loadLocation', array('locationId' => $locationId, 'prioritizedLanguages' => $prioritizedLanguages, 'useAlwaysAvailable' => $useAlwaysAvailable), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->loadLocation($locationId, $prioritizedLanguages, $useAlwaysAvailable);
}
public function loadLocationList(array $locationIds, ?array $prioritizedLanguages = null, ?bool $useAlwaysAvailable = null) : iterable
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'loadLocationList', array('locationIds' => $locationIds, 'prioritizedLanguages' => $prioritizedLanguages, 'useAlwaysAvailable' => $useAlwaysAvailable), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->loadLocationList($locationIds, $prioritizedLanguages, $useAlwaysAvailable);
}
public function loadLocationByRemoteId($remoteId, ?array $prioritizedLanguages = null, ?bool $useAlwaysAvailable = null)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'loadLocationByRemoteId', array('remoteId' => $remoteId, 'prioritizedLanguages' => $prioritizedLanguages, 'useAlwaysAvailable' => $useAlwaysAvailable), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->loadLocationByRemoteId($remoteId, $prioritizedLanguages, $useAlwaysAvailable);
}
public function loadLocations(\eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, ?\eZ\Publish\API\Repository\Values\Content\Location $rootLocation = null, ?array $prioritizedLanguages = null)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'loadLocations', array('contentInfo' => $contentInfo, 'rootLocation' => $rootLocation, 'prioritizedLanguages' => $prioritizedLanguages), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->loadLocations($contentInfo, $rootLocation, $prioritizedLanguages);
}
public function loadLocationChildren(\eZ\Publish\API\Repository\Values\Content\Location $location, $offset = 0, $limit = 25, ?array $prioritizedLanguages = null)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'loadLocationChildren', array('location' => $location, 'offset' => $offset, 'limit' => $limit, 'prioritizedLanguages' => $prioritizedLanguages), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->loadLocationChildren($location, $offset, $limit, $prioritizedLanguages);
}
public function loadParentLocationsForDraftContent(\eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo, ?array $prioritizedLanguages = null)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'loadParentLocationsForDraftContent', array('versionInfo' => $versionInfo, 'prioritizedLanguages' => $prioritizedLanguages), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->loadParentLocationsForDraftContent($versionInfo, $prioritizedLanguages);
}
public function getLocationChildCount(\eZ\Publish\API\Repository\Values\Content\Location $location)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'getLocationChildCount', array('location' => $location), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->getLocationChildCount($location);
}
public function createLocation(\eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct $locationCreateStruct)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'createLocation', array('contentInfo' => $contentInfo, 'locationCreateStruct' => $locationCreateStruct), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->createLocation($contentInfo, $locationCreateStruct);
}
public function updateLocation(\eZ\Publish\API\Repository\Values\Content\Location $location, \eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct $locationUpdateStruct)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'updateLocation', array('location' => $location, 'locationUpdateStruct' => $locationUpdateStruct), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->updateLocation($location, $locationUpdateStruct);
}
public function swapLocation(\eZ\Publish\API\Repository\Values\Content\Location $location1, \eZ\Publish\API\Repository\Values\Content\Location $location2)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'swapLocation', array('location1' => $location1, 'location2' => $location2), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->swapLocation($location1, $location2);
}
public function hideLocation(\eZ\Publish\API\Repository\Values\Content\Location $location)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'hideLocation', array('location' => $location), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->hideLocation($location);
}
public function unhideLocation(\eZ\Publish\API\Repository\Values\Content\Location $location)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'unhideLocation', array('location' => $location), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->unhideLocation($location);
}
public function moveSubtree(\eZ\Publish\API\Repository\Values\Content\Location $location, \eZ\Publish\API\Repository\Values\Content\Location $newParentLocation)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'moveSubtree', array('location' => $location, 'newParentLocation' => $newParentLocation), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->moveSubtree($location, $newParentLocation);
}
public function deleteLocation(\eZ\Publish\API\Repository\Values\Content\Location $location)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'deleteLocation', array('location' => $location), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->deleteLocation($location);
}
public function newLocationCreateStruct($parentLocationId, ?\eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType = null)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'newLocationCreateStruct', array('parentLocationId' => $parentLocationId, 'contentType' => $contentType), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->newLocationCreateStruct($parentLocationId, $contentType);
}
public function newLocationUpdateStruct()
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'newLocationUpdateStruct', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->newLocationUpdateStruct();
}
public function getAllLocationsCount() : int
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'getAllLocationsCount', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->getAllLocationsCount();
}
public function loadAllLocations(int $offset = 0, int $limit = 25) : array
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'loadAllLocations', array('offset' => $offset, 'limit' => $limit), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->loadAllLocations($offset, $limit);
}
/**
* Constructor for lazy initialization
*
* @param \Closure|null $initializer
*/
public static function staticProxyConstructor($initializer)
{
static $reflection;
$reflection = $reflection ?? $reflection = new \ReflectionClass(__CLASS__);
$instance = $reflection->newInstanceWithoutConstructor();
unset($instance->repository, $instance->persistenceHandler, $instance->settings, $instance->domainMapper, $instance->nameSchemaService, $instance->permissionCriterionResolver);
\Closure::bind(function (\eZ\Publish\Core\Repository\LocationService $instance) {
unset($instance->logger);
}, $instance, 'eZ\\Publish\\Core\\Repository\\LocationService')->__invoke($instance);
$instance->initializeraa1bb = $initializer;
return $instance;
}
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)
{
static $reflection;
if (! $this->valueHoldere39e4) {
$reflection = $reflection ?: new \ReflectionClass('eZ\\Publish\\Core\\Repository\\LocationService');
$this->valueHoldere39e4 = $reflection->newInstanceWithoutConstructor();
unset($this->repository, $this->persistenceHandler, $this->settings, $this->domainMapper, $this->nameSchemaService, $this->permissionCriterionResolver);
\Closure::bind(function (\eZ\Publish\Core\Repository\LocationService $instance) {
unset($instance->logger);
}, $this, 'eZ\\Publish\\Core\\Repository\\LocationService')->__invoke($this);
}
$this->valueHoldere39e4->__construct($repository, $handler, $domainMapper, $nameSchemaService, $permissionCriterionResolver, $settings, $logger);
}
public function & __get($name)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__get', ['name' => $name], $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
if (isset(self::$publicProperties1a37c[$name])) {
return $this->valueHoldere39e4->$name;
}
$realInstanceReflection = new \ReflectionClass(get_parent_class($this));
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHoldere39e4;
$backtrace = debug_backtrace(false);
trigger_error(
sprintf(
'Undefined property: %s::$%s in %s on line %s',
get_parent_class($this),
$name,
$backtrace[0]['file'],
$backtrace[0]['line']
),
\E_USER_NOTICE
);
return $targetObject->$name;
return;
}
$targetObject = $this->valueHoldere39e4;
$accessor = function & () use ($targetObject, $name) {
return $targetObject->$name;
};
$backtrace = debug_backtrace(true);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = & $accessor();
return $returnValue;
}
public function __set($name, $value)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__set', array('name' => $name, 'value' => $value), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
$realInstanceReflection = new \ReflectionClass(get_parent_class($this));
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHoldere39e4;
return $targetObject->$name = $value;
return;
}
$targetObject = $this->valueHoldere39e4;
$accessor = function & () use ($targetObject, $name, $value) {
return $targetObject->$name = $value;
};
$backtrace = debug_backtrace(true);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = & $accessor();
return $returnValue;
}
public function __isset($name)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__isset', array('name' => $name), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
$realInstanceReflection = new \ReflectionClass(get_parent_class($this));
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHoldere39e4;
return isset($targetObject->$name);
return;
}
$targetObject = $this->valueHoldere39e4;
$accessor = function () use ($targetObject, $name) {
return isset($targetObject->$name);
};
$backtrace = debug_backtrace(true);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = $accessor();
return $returnValue;
}
public function __unset($name)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__unset', array('name' => $name), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
$realInstanceReflection = new \ReflectionClass(get_parent_class($this));
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHoldere39e4;
unset($targetObject->$name);
return;
}
$targetObject = $this->valueHoldere39e4;
$accessor = function () use ($targetObject, $name) {
unset($targetObject->$name);
};
$backtrace = debug_backtrace(true);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = $accessor();
return $returnValue;
}
public function __clone()
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__clone', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
$this->valueHoldere39e4 = clone $this->valueHoldere39e4;
}
public function __sleep()
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__sleep', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return array('valueHoldere39e4');
}
public function __wakeup()
{
unset($this->repository, $this->persistenceHandler, $this->settings, $this->domainMapper, $this->nameSchemaService, $this->permissionCriterionResolver);
\Closure::bind(function (\eZ\Publish\Core\Repository\LocationService $instance) {
unset($instance->logger);
}, $this, 'eZ\\Publish\\Core\\Repository\\LocationService')->__invoke($this);
}
public function setProxyInitializer(\Closure $initializer = null)
{
$this->initializeraa1bb = $initializer;
}
public function getProxyInitializer()
{
return $this->initializeraa1bb;
}
public function initializeProxy() : bool
{
return $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'initializeProxy', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
}
public function isProxyInitialized() : bool
{
return null !== $this->valueHoldere39e4;
}
public function getWrappedValueHolderValue() : ?object
{
return $this->valueHoldere39e4;
}
}