protected function addTarget(CNabuSiteTarget $nb_site_target, $default = false)
    {
        $nb_site = $this->nb_engine->getHTTPServer()->getSite();
        if ($nb_site instanceof CNabuSite) {
            return $nb_site->addTarget($nb_site_target, $default);
        } else {
            throw new ENabuCoreException(ENabuCoreException::ERROR_SITE_NOT_INSTANTIATED);
        }
    }
protected function addTarget(CNabuSiteTarget $nb_site_target, $default = false)
    {
        $nb_site = $this->nb_engine->getHTTPServer()->getSite();
        if ($nb_site instanceof CNabuSite) {
            return $nb_site->addTarget($nb_site_target, $default);
        } else {
            throw new ENabuCoreException(ENabuCoreException::ERROR_SITE_NOT_INSTANTIATED);
        }
    }
protected function addTarget ( CNabuSiteTarget $ nb_site_target , $ default = false ) { $ nb_site = $ this -> nb_engine -> getHTTPServer ( ) -> getSite ( ) ; if ( $ nb_site instanceof CNabuSite ) { return $ nb_site -> addTarget ( $ nb_site_target , $ default ) ; } else { throw new ENabuCoreException ( ENabuCoreException :: ERROR_SITE_NOT_INSTANTIATED ) ; } }
Adds an existing Site Target instance to the list of targets.
@param CNabuSiteTarget $nb_site_target The Site Target instance to be added.
@return CNabuSiteTarget Returns the instance target passed as param in $nb_site_target.
@throws ENabuCoreException Throws an exception if the Site is not initialized.
Adds an existing Site Target instance to the list of targets .