public function getNodeRef($nodeId, $lang = null)
    {
        $this->initNodeVersions();

        $lang = $lang ?: $this->currentLocale->getCurrentLocale();

        return isset($this->nodeRefs[$lang][$nodeId]) ? $this->nodeRefs[$lang][$nodeId] : null;
    }
public function getNodeRef($nodeId, $lang = null)
    {
        $this->initNodeVersions();

        $lang = $lang ?: $this->currentLocale->getCurrentLocale();

        return isset($this->nodeRefs[$lang][$nodeId]) ? $this->nodeRefs[$lang][$nodeId] : null;
    }
public function getNodeRef ( $ nodeId , $ lang = null ) { $ this -> initNodeVersions ( ) ; $ lang = $ lang ? : $ this -> currentLocale -> getCurrentLocale ( ) ; return isset ( $ this -> nodeRefs [ $ lang ] [ $ nodeId ] ) ? $ this -> nodeRefs [ $ lang ] [ $ nodeId ] : null ; }
Gets Page Id for given Node Id

@param integer $nodeId
@param string  $lang

@return int|null
Gets Page Id for given Node Id