public function getRootPageId()
    {
        $rootPageId = 0;

        if (empty($this->rootLineArray)) {
            return $rootPageId;
        }

        foreach ($this->rootLineArray as $page) {
            if (Site::isRootPage($page)) {
                $rootPageId = $page['uid'];
            }
        }

        return $rootPageId;
    }
public function getRootPageId()
    {
        $rootPageId = 0;

        if (empty($this->rootLineArray)) {
            return $rootPageId;
        }

        foreach ($this->rootLineArray as $page) {
            if (Site::isRootPage($page)) {
                $rootPageId = $page['uid'];
            }
        }

        return $rootPageId;
    }
public function getRootPageId ( ) { $ rootPageId = 0 ; if ( empty ( $ this -> rootLineArray ) ) { return $ rootPageId ; } foreach ( $ this -> rootLineArray as $ page ) { if ( Site :: isRootPage ( $ page ) ) { $ rootPageId = $ page [ 'uid' ] ; } } return $ rootPageId ; }
Returns the rootPageId as integer if a rootpage is given,
if non is given 0 will be returned

@return integer
Returns the rootPageId as integer if a rootpage is given if non is given 0 will be returned