src/Budkit/Datastore/Model/Graph.php
public function getNode($nodeId)
    {
        static $instance = array();
        if (isset($instance[$nodeId]))
            return $instance[$nodeId];
        $nodes = $this->nodeSet;
        if (empty($nodes))
            return NULL;
        foreach ($nodes as $node):
            if ($node->getId() == $nodeId):
                $instance[$nodeId] = &$node;
                break;
            endif;
        endforeach;
        return NULL;
    }
public function getNode($nodeId)
    {
        static $instance = array();
        if (isset($instance[$nodeId]))
            return $instance[$nodeId];
        $nodes = $this->nodeSet;
        if (empty($nodes))
            return NULL;
        foreach ($nodes as $node):
            if ($node->getId() == $nodeId):
                $instance[$nodeId] = &$node;
                break;
            endif;
        endforeach;
        return NULL;
    }
public function getNode ( $ nodeId ) { static $ instance = array ( ) ; if ( isset ( $ instance [ $ nodeId ] ) ) return $ instance [ $ nodeId ] ; $ nodes = $ this -> nodeSet ; if ( empty ( $ nodes ) ) return NULL ; foreach ( $ nodes as $ node ) : if ( $ node -> getId ( ) == $ nodeId ) : $ instance [ $ nodeId ] = & $ node ; break ; endif ; endforeach ; return NULL ; }
Returns a node object if exists in graph

@param type $nodeId case sensitive ID of the node requested
@return object $node if found;
Returns a node object if exists in graph