public function addRootSiteMap(CNabuSiteMap $nb_site_map)
    {
        $nb_site = $this->nb_engine->getHTTPServer()->getSite();
        if ($nb_site instanceof CNabuSite) {
            return $nb_site->addSiteMap($nb_site_map);
        } else {
            throw new ENabuCoreException(ENabuCoreException::ERROR_SITE_NOT_INSTANTIATED);
        }
    }
public function addRootSiteMap(CNabuSiteMap $nb_site_map)
    {
        $nb_site = $this->nb_engine->getHTTPServer()->getSite();
        if ($nb_site instanceof CNabuSite) {
            return $nb_site->addSiteMap($nb_site_map);
        } else {
            throw new ENabuCoreException(ENabuCoreException::ERROR_SITE_NOT_INSTANTIATED);
        }
    }
public function addRootSiteMap ( CNabuSiteMap $ nb_site_map ) { $ nb_site = $ this -> nb_engine -> getHTTPServer ( ) -> getSite ( ) ; if ( $ nb_site instanceof CNabuSite ) { return $ nb_site -> addSiteMap ( $ nb_site_map ) ; } else { throw new ENabuCoreException ( ENabuCoreException :: ERROR_SITE_NOT_INSTANTIATED ) ; } }
Add an existing Site Map root node.
@param CNabuSiteMap $nb_site_map The Site Map node to be added to root nodes.
@return CNabuSiteMap Returns the Site Map instance passed as param in $nb_site_map.
@throws ENabuCoreException Throws this exception when the Site is not initialized.
Add an existing Site Map root node .