Example #1
0
 /**
  * Our own version of the alfresco session getNode where it actually
  * gets the node instead of just querying a cache. 
  *
  * @param string $id
  */
 public function getNode($id)
 {
     if (!$this->getConnection()) {
         return null;
     }
     $node = $this->alfresco->getNode($this->spacesStore, $id);
     /* @var $node Node */
     if ($node) {
         return $node;
     }
     $nodes = $this->alfresco->query($this->spacesStore, '@sys:node-uuid:"' . $id . '"');
     return isset($nodes[0]) ? $nodes[0] : null;
 }