public function addRootSiteMapForTarget(CNabuSiteTarget $nb_site_target, $order, CNabuRole $nb_role = null)
    {
        if ($nb_role === null) {
            $nb_role = $this->nb_engine->getHTTPServer()->getSite()->getDefaultRole();
        }

        $nb_site_map = new CNabuBuiltInSiteMap();
        $nb_site_map->setSiteTarget($nb_site_target)
            ->setOrder($order)
        ;

        return $this->addRootSiteMap($nb_site_map);
    }
public function addRootSiteMapForTarget(CNabuSiteTarget $nb_site_target, $order, CNabuRole $nb_role = null)
    {
        if ($nb_role === null) {
            $nb_role = $this->nb_engine->getHTTPServer()->getSite()->getDefaultRole();
        }

        $nb_site_map = new CNabuBuiltInSiteMap();
        $nb_site_map->setSiteTarget($nb_site_target)
            ->setOrder($order)
        ;

        return $this->addRootSiteMap($nb_site_map);
    }
public function addRootSiteMapForTarget ( CNabuSiteTarget $ nb_site_target , $ order , CNabuRole $ nb_role = null ) { if ( $ nb_role === null ) { $ nb_role = $ this -> nb_engine -> getHTTPServer ( ) -> getSite ( ) -> getDefaultRole ( ) ; } $ nb_site_map = new CNabuBuiltInSiteMap ( ) ; $ nb_site_map -> setSiteTarget ( $ nb_site_target ) -> setOrder ( $ order ) ; return $ this -> addRootSiteMap ( $ nb_site_map ) ; }
Adds a new Site Map root node of type Target.
@param CNabuSiteTarget $nb_site_target
@param int $order Order for the node.
@param CNabuRole $nb_role Default role for this Site Map. If null, uses the default Role of the Site.
@return CNabuBuiltInSiteMap Returns the created instance
Adds a new Site Map root node of type Target .