var/cache/website/dev/ContainerIgDv0Tx/Session_21c865b.php line 100

Open in your IDE?
  1. <?php
  2. namespace ContainerIgDv0Tx;
  3. include_once \dirname(__DIR__, 5).'/vendor/phpcr/phpcr/src/PHPCR/SessionInterface.php';
  4. include_once \dirname(__DIR__, 5).'/vendor/sulu/sulu/src/Sulu/Bundle/DocumentManagerBundle/Session/Session.php';
  5. class Session_21c865b extends \Sulu\Bundle\DocumentManagerBundle\Session\Session implements \ProxyManager\Proxy\VirtualProxyInterface
  6. {
  7. /**
  8. * @var \Sulu\Bundle\DocumentManagerBundle\Session\Session|null wrapped object, if the proxy is initialized
  9. */
  10. private $valueHolder6b0ae = null;
  11. /**
  12. * @var \Closure|null initializer responsible for generating the wrapped object
  13. */
  14. private $initializer9fd68 = null;
  15. /**
  16. * @var bool[] map of public properties of the parent class
  17. */
  18. private static $publicProperties7d3c4 = [
  19. ];
  20. public function getRepository()
  21. {
  22. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getRepository', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  23. return $this->valueHolder6b0ae->getRepository();
  24. }
  25. public function getUserID()
  26. {
  27. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getUserID', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  28. return $this->valueHolder6b0ae->getUserID();
  29. }
  30. public function getAttributeNames()
  31. {
  32. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getAttributeNames', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  33. return $this->valueHolder6b0ae->getAttributeNames();
  34. }
  35. public function getAttribute($name)
  36. {
  37. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getAttribute', array('name' => $name), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  38. return $this->valueHolder6b0ae->getAttribute($name);
  39. }
  40. public function getWorkspace()
  41. {
  42. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getWorkspace', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  43. return $this->valueHolder6b0ae->getWorkspace();
  44. }
  45. public function getRootNode()
  46. {
  47. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getRootNode', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  48. return $this->valueHolder6b0ae->getRootNode();
  49. }
  50. public function impersonate(\PHPCR\CredentialsInterface $credentials)
  51. {
  52. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'impersonate', array('credentials' => $credentials), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  53. return $this->valueHolder6b0ae->impersonate($credentials);
  54. }
  55. public function getNodeByIdentifier($id)
  56. {
  57. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getNodeByIdentifier', array('id' => $id), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  58. return $this->valueHolder6b0ae->getNodeByIdentifier($id);
  59. }
  60. public function getNodesByIdentifier($ids)
  61. {
  62. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getNodesByIdentifier', array('ids' => $ids), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  63. return $this->valueHolder6b0ae->getNodesByIdentifier($ids);
  64. }
  65. public function getItem($absPath)
  66. {
  67. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getItem', array('absPath' => $absPath), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  68. return $this->valueHolder6b0ae->getItem($absPath);
  69. }
  70. public function getNode($absPath, $depthHint = -1)
  71. {
  72. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getNode', array('absPath' => $absPath, 'depthHint' => $depthHint), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  73. return $this->valueHolder6b0ae->getNode($absPath, $depthHint);
  74. }
  75. public function getNodes($absPaths)
  76. {
  77. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getNodes', array('absPaths' => $absPaths), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  78. return $this->valueHolder6b0ae->getNodes($absPaths);
  79. }
  80. public function getProperty($absPath)
  81. {
  82. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getProperty', array('absPath' => $absPath), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  83. return $this->valueHolder6b0ae->getProperty($absPath);
  84. }
  85. public function getProperties($absPaths)
  86. {
  87. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getProperties', array('absPaths' => $absPaths), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  88. return $this->valueHolder6b0ae->getProperties($absPaths);
  89. }
  90. public function itemExists($absPath)
  91. {
  92. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'itemExists', array('absPath' => $absPath), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  93. return $this->valueHolder6b0ae->itemExists($absPath);
  94. }
  95. public function nodeExists($absPath)
  96. {
  97. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'nodeExists', array('absPath' => $absPath), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  98. return $this->valueHolder6b0ae->nodeExists($absPath);
  99. }
  100. public function propertyExists($absPath)
  101. {
  102. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'propertyExists', array('absPath' => $absPath), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  103. return $this->valueHolder6b0ae->propertyExists($absPath);
  104. }
  105. public function move($srcAbsPath, $destAbsPath)
  106. {
  107. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'move', array('srcAbsPath' => $srcAbsPath, 'destAbsPath' => $destAbsPath), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  108. return $this->valueHolder6b0ae->move($srcAbsPath, $destAbsPath);
  109. }
  110. public function removeItem($absPath)
  111. {
  112. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'removeItem', array('absPath' => $absPath), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  113. return $this->valueHolder6b0ae->removeItem($absPath);
  114. }
  115. public function save()
  116. {
  117. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'save', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  118. return $this->valueHolder6b0ae->save();
  119. }
  120. public function refresh($keepChanges)
  121. {
  122. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'refresh', array('keepChanges' => $keepChanges), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  123. return $this->valueHolder6b0ae->refresh($keepChanges);
  124. }
  125. public function hasPendingChanges()
  126. {
  127. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'hasPendingChanges', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  128. return $this->valueHolder6b0ae->hasPendingChanges();
  129. }
  130. public function hasPermission($absPath, $actions)
  131. {
  132. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'hasPermission', array('absPath' => $absPath, 'actions' => $actions), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  133. return $this->valueHolder6b0ae->hasPermission($absPath, $actions);
  134. }
  135. public function checkPermission($absPath, $actions)
  136. {
  137. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'checkPermission', array('absPath' => $absPath, 'actions' => $actions), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  138. return $this->valueHolder6b0ae->checkPermission($absPath, $actions);
  139. }
  140. public function hasCapability($methodName, $target, array $arguments)
  141. {
  142. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'hasCapability', array('methodName' => $methodName, 'target' => $target, 'arguments' => $arguments), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  143. return $this->valueHolder6b0ae->hasCapability($methodName, $target, $arguments);
  144. }
  145. public function importXML($parentAbsPath, $uri, $uuidBehavior)
  146. {
  147. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'importXML', array('parentAbsPath' => $parentAbsPath, 'uri' => $uri, 'uuidBehavior' => $uuidBehavior), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  148. return $this->valueHolder6b0ae->importXML($parentAbsPath, $uri, $uuidBehavior);
  149. }
  150. public function exportSystemView($absPath, $stream, $skipBinary, $noRecurse)
  151. {
  152. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'exportSystemView', array('absPath' => $absPath, 'stream' => $stream, 'skipBinary' => $skipBinary, 'noRecurse' => $noRecurse), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  153. return $this->valueHolder6b0ae->exportSystemView($absPath, $stream, $skipBinary, $noRecurse);
  154. }
  155. public function exportDocumentView($absPath, $stream, $skipBinary, $noRecurse)
  156. {
  157. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'exportDocumentView', array('absPath' => $absPath, 'stream' => $stream, 'skipBinary' => $skipBinary, 'noRecurse' => $noRecurse), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  158. return $this->valueHolder6b0ae->exportDocumentView($absPath, $stream, $skipBinary, $noRecurse);
  159. }
  160. public function setNamespacePrefix($prefix, $uri)
  161. {
  162. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'setNamespacePrefix', array('prefix' => $prefix, 'uri' => $uri), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  163. return $this->valueHolder6b0ae->setNamespacePrefix($prefix, $uri);
  164. }
  165. public function getNamespacePrefixes()
  166. {
  167. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getNamespacePrefixes', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  168. return $this->valueHolder6b0ae->getNamespacePrefixes();
  169. }
  170. public function getNamespaceURI($prefix)
  171. {
  172. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getNamespaceURI', array('prefix' => $prefix), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  173. return $this->valueHolder6b0ae->getNamespaceURI($prefix);
  174. }
  175. public function getNamespacePrefix($uri)
  176. {
  177. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getNamespacePrefix', array('uri' => $uri), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  178. return $this->valueHolder6b0ae->getNamespacePrefix($uri);
  179. }
  180. public function logout()
  181. {
  182. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'logout', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  183. return $this->valueHolder6b0ae->logout();
  184. }
  185. public function isLive()
  186. {
  187. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'isLive', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  188. return $this->valueHolder6b0ae->isLive();
  189. }
  190. public function getAccessControlManager()
  191. {
  192. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getAccessControlManager', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  193. return $this->valueHolder6b0ae->getAccessControlManager();
  194. }
  195. public function getRetentionManager()
  196. {
  197. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'getRetentionManager', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  198. return $this->valueHolder6b0ae->getRetentionManager();
  199. }
  200. /**
  201. * Constructor for lazy initialization
  202. *
  203. * @param \Closure|null $initializer
  204. */
  205. public static function staticProxyConstructor($initializer)
  206. {
  207. static $reflection;
  208. $reflection = $reflection ?? new \ReflectionClass(__CLASS__);
  209. $instance = $reflection->newInstanceWithoutConstructor();
  210. \Closure::bind(function (\Sulu\Bundle\DocumentManagerBundle\Session\Session $instance) {
  211. unset($instance->inner);
  212. }, $instance, 'Sulu\\Bundle\\DocumentManagerBundle\\Session\\Session')->__invoke($instance);
  213. $instance->initializer9fd68 = $initializer;
  214. return $instance;
  215. }
  216. public function __construct(\PHPCR\SessionInterface $inner)
  217. {
  218. static $reflection;
  219. if (! $this->valueHolder6b0ae) {
  220. $reflection = $reflection ?? new \ReflectionClass('Sulu\\Bundle\\DocumentManagerBundle\\Session\\Session');
  221. $this->valueHolder6b0ae = $reflection->newInstanceWithoutConstructor();
  222. \Closure::bind(function (\Sulu\Bundle\DocumentManagerBundle\Session\Session $instance) {
  223. unset($instance->inner);
  224. }, $this, 'Sulu\\Bundle\\DocumentManagerBundle\\Session\\Session')->__invoke($this);
  225. }
  226. $this->valueHolder6b0ae->__construct($inner);
  227. }
  228. public function & __get($name)
  229. {
  230. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, '__get', ['name' => $name], $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  231. if (isset(self::$publicProperties7d3c4[$name])) {
  232. return $this->valueHolder6b0ae->$name;
  233. }
  234. $realInstanceReflection = new \ReflectionClass('Sulu\\Bundle\\DocumentManagerBundle\\Session\\Session');
  235. if (! $realInstanceReflection->hasProperty($name)) {
  236. $targetObject = $this->valueHolder6b0ae;
  237. $backtrace = debug_backtrace(false, 1);
  238. trigger_error(
  239. sprintf(
  240. 'Undefined property: %s::$%s in %s on line %s',
  241. $realInstanceReflection->getName(),
  242. $name,
  243. $backtrace[0]['file'],
  244. $backtrace[0]['line']
  245. ),
  246. \E_USER_NOTICE
  247. );
  248. return $targetObject->$name;
  249. }
  250. $targetObject = $this->valueHolder6b0ae;
  251. $accessor = function & () use ($targetObject, $name) {
  252. return $targetObject->$name;
  253. };
  254. $backtrace = debug_backtrace(true, 2);
  255. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  256. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  257. $returnValue = & $accessor();
  258. return $returnValue;
  259. }
  260. public function __set($name, $value)
  261. {
  262. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, '__set', array('name' => $name, 'value' => $value), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  263. $realInstanceReflection = new \ReflectionClass('Sulu\\Bundle\\DocumentManagerBundle\\Session\\Session');
  264. if (! $realInstanceReflection->hasProperty($name)) {
  265. $targetObject = $this->valueHolder6b0ae;
  266. $targetObject->$name = $value;
  267. return $targetObject->$name;
  268. }
  269. $targetObject = $this->valueHolder6b0ae;
  270. $accessor = function & () use ($targetObject, $name, $value) {
  271. $targetObject->$name = $value;
  272. return $targetObject->$name;
  273. };
  274. $backtrace = debug_backtrace(true, 2);
  275. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  276. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  277. $returnValue = & $accessor();
  278. return $returnValue;
  279. }
  280. public function __isset($name)
  281. {
  282. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, '__isset', array('name' => $name), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  283. $realInstanceReflection = new \ReflectionClass('Sulu\\Bundle\\DocumentManagerBundle\\Session\\Session');
  284. if (! $realInstanceReflection->hasProperty($name)) {
  285. $targetObject = $this->valueHolder6b0ae;
  286. return isset($targetObject->$name);
  287. }
  288. $targetObject = $this->valueHolder6b0ae;
  289. $accessor = function () use ($targetObject, $name) {
  290. return isset($targetObject->$name);
  291. };
  292. $backtrace = debug_backtrace(true, 2);
  293. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  294. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  295. $returnValue = $accessor();
  296. return $returnValue;
  297. }
  298. public function __unset($name)
  299. {
  300. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, '__unset', array('name' => $name), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  301. $realInstanceReflection = new \ReflectionClass('Sulu\\Bundle\\DocumentManagerBundle\\Session\\Session');
  302. if (! $realInstanceReflection->hasProperty($name)) {
  303. $targetObject = $this->valueHolder6b0ae;
  304. unset($targetObject->$name);
  305. return;
  306. }
  307. $targetObject = $this->valueHolder6b0ae;
  308. $accessor = function () use ($targetObject, $name) {
  309. unset($targetObject->$name);
  310. return;
  311. };
  312. $backtrace = debug_backtrace(true, 2);
  313. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  314. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  315. $accessor();
  316. }
  317. public function __clone()
  318. {
  319. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, '__clone', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  320. $this->valueHolder6b0ae = clone $this->valueHolder6b0ae;
  321. }
  322. public function __sleep()
  323. {
  324. $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, '__sleep', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  325. return array('valueHolder6b0ae');
  326. }
  327. public function __wakeup()
  328. {
  329. \Closure::bind(function (\Sulu\Bundle\DocumentManagerBundle\Session\Session $instance) {
  330. unset($instance->inner);
  331. }, $this, 'Sulu\\Bundle\\DocumentManagerBundle\\Session\\Session')->__invoke($this);
  332. }
  333. public function setProxyInitializer(?\Closure $initializer = null) : void
  334. {
  335. $this->initializer9fd68 = $initializer;
  336. }
  337. public function getProxyInitializer() : ?\Closure
  338. {
  339. return $this->initializer9fd68;
  340. }
  341. public function initializeProxy() : bool
  342. {
  343. return $this->initializer9fd68 && ($this->initializer9fd68->__invoke($valueHolder6b0ae, $this, 'initializeProxy', array(), $this->initializer9fd68) || 1) && $this->valueHolder6b0ae = $valueHolder6b0ae;
  344. }
  345. public function isProxyInitialized() : bool
  346. {
  347. return null !== $this->valueHolder6b0ae;
  348. }
  349. public function getWrappedValueHolderValue()
  350. {
  351. return $this->valueHolder6b0ae;
  352. }
  353. }
  354. if (!\class_exists('Session_21c865b', false)) {
  355. \class_alias(__NAMESPACE__.'\\Session_21c865b', 'Session_21c865b', false);
  356. }