getWeakReferences() public method

Returns the path of all accessible WEAKREFERENCE properties in the workspace that point to the node
public getWeakReferences ( string $path, string $name = null ) : array
$path string absolute path to the node we need the references to
$name string name of referring WEAKREFERENCE properties to be returned; if null then all referring WEAKREFERENCEs are returned
return array
 /**
  * {@inheritDoc}
  */
 public function getWeakReferences($path, $name = null)
 {
     $this->logger->startCall(__FUNCTION__, func_get_args());
     $result = $this->transport->getWeakReferences($path, $name);
     $this->logger->stopCall();
     return $result;
 }
Example #2
0
 /**
  * Returns all accessible WEAKREFERENCE properties in the workspace that
  * point to the node
  *
  * @param string $path the path of the referenced node
  * @param string $name name of referring WEAKREFERENCE properties to be
  *      returned; if null then all referring WEAKREFERENCEs are returned
  * @return ArrayIterator
  */
 public function getWeakReferences($path, $name = null)
 {
     // TODO: should we not use getFetchPath() ?
     $references = $this->transport->getWeakReferences($this->resolveBackendPath($path), $name);
     // path guaranteed to be normalized and absolute
     return $this->pathArrayToPropertiesIterator($references);
 }
Example #3
0
 /**
  * Returns all accessible WEAKREFERENCE properties in the workspace that
  * point to the node
  *
  * @param string $path the path of the referenced node
  * @param string $name name of referring WEAKREFERENCE properties to be
  *      returned; if null then all referring WEAKREFERENCEs are returned
  *
  * @return ArrayIterator
  *
  * @see Node::getWeakReferences()
  */
 public function getWeakReferences($path, $name = null)
 {
     $references = $this->transport->getWeakReferences($this->getFetchPath($path, 'Node'), $name);
     return $this->pathArrayToPropertiesIterator($references);
 }