Jackalope\Transport\DoctrineDBAL\Client::getReferences PHP Method

getReferences() public method

{@inheritDoc}
public getReferences ( $path, $name = null )
    public function getReferences($path, $name = null)
    {
        return $this->getNodeReferences($path, $name, false);
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getReferences($path, $name = null)
 {
     if (empty($this->caches['nodes'])) {
         return parent::getReferences($path, $name);
     }
     $cacheKey = "nodes references: {$path}, {$name}, " . $this->workspaceName;
     $cacheKey = $this->sanitizeKey($cacheKey);
     if (false !== ($result = $this->caches['nodes']->fetch($cacheKey))) {
         return $result;
     }
     $references = parent::getReferences($path, $name);
     $this->caches['nodes']->save($cacheKey, $references);
     return $references;
 }
All Usage Examples Of Jackalope\Transport\DoctrineDBAL\Client::getReferences