getReferences() public method

Returns the path of all accessible REFERENCE properties in the workspace that point to the node
public getReferences ( string $path, string $name = null ) : array
$path string absolute path to the node we need the references to
$name string name of referring REFERENCE properties to be returned; if null then all referring REFERENCEs are returned
return array
コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function getReferences($path, $name = null)
 {
     $this->logger->startCall(__FUNCTION__, func_get_args());
     $result = $this->transport->getReferences($path, $name);
     $this->logger->stopCall();
     return $result;
 }
コード例 #2
0
ファイル: ObjectManager.php プロジェクト: ruflin/jackalope
 /**
  * Returns all accessible REFERENCE properties in the workspace that point
  * to the node
  *
  * @param string $path the path of the referenced node
  * @param string $name name of referring REFERENCE properties to be
  *      returned; if null then all referring REFERENCEs are returned
  *
  * @return ArrayIterator
  *
  * @see Node::getReferences()
  */
 public function getReferences($path, $name = null)
 {
     // TODO: should we not use getFetchPath() ?
     $references = $this->transport->getReferences($this->resolveBackendPath($path), $name);
     // path guaranteed to be normalized and absolute
     return $this->pathArrayToPropertiesIterator($references);
 }
コード例 #3
0
ファイル: ObjectManager.php プロジェクト: nikophil/cmf-tests
 /**
  * Returns all accessible REFERENCE properties in the workspace that point
  * to the node
  *
  * @param string $path the path of the referenced node
  * @param string $name name of referring REFERENCE properties to be
  *      returned; if null then all referring REFERENCEs are returned
  *
  * @return ArrayIterator
  *
  * @see Node::getReferences()
  */
 public function getReferences($path, $name = null)
 {
     $references = $this->transport->getReferences($this->getFetchPath($path, 'Node'), $name);
     return $this->pathArrayToPropertiesIterator($references);
 }