public function getNode($name)
    {
        if ($name === 'localhost') {
            $node = new Node('localhost');
            $node->onLocalhost();
            return $node;
        }
        $nodes = $this->getNodes();

        return isset($nodes[$name]) ? $nodes[$name] : null;
    }
public function getNode($name)
    {
        if ($name === 'localhost') {
            $node = new Node('localhost');
            $node->onLocalhost();
            return $node;
        }
        $nodes = $this->getNodes();

        return isset($nodes[$name]) ? $nodes[$name] : null;
    }
public function getNode ( $ name ) { if ( $ name === 'localhost' ) { $ node = new Node ( 'localhost' ) ; $ node -> onLocalhost ( ) ; return $ node ; } $ nodes = $ this -> getNodes ( ) ; return isset ( $ nodes [ $ name ] ) ? $ nodes [ $ name ] : null ; }
Get a node by name

In the special case "localhost" an ad-hoc Node with hostname "localhost" is returned.

@return \TYPO3\Surf\Domain\Model\Node The Node or NULL if no Node with the given name was found
Get a node by name