Sulu\Component\PHPCR\SessionManager\SessionManagerInterface::getWebspaceNode PHP 메소드

getWebspaceNode() 공개 메소드

Returns the webspace node for given webspace.
사용 중단: Do not use anymore, because the node is always returned from the default session, although multiple sessions can exist
public getWebspaceNode ( $webspaceKey ) : PHPCR\NodeInterface
리턴 PHPCR\NodeInterface
    public function getWebspaceNode($webspaceKey);

Usage Example

예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function loadStringByWildcard($webspaceKey, $wildcard)
 {
     $webspaceNode = $this->deprecatedSessionManager->getWebspaceNode($webspaceKey);
     $properties = $webspaceNode->getProperties($this->getPropertyName($wildcard));
     $data = [];
     foreach ($properties as $property) {
         $data[substr($property->getName(), 9)] = $property->getString();
     }
     return $data;
 }