public function addTarget(CNabuSiteTarget $nb_site_target, $default = false)
    {
        $nb_site_target->setSite($this);

        if ($default) {
            $this->setDefaultTarget($nb_site_target);
        }

        return $this->nb_site_target_list->addItem($nb_site_target);
    }
public function addTarget(CNabuSiteTarget $nb_site_target, $default = false)
    {
        $nb_site_target->setSite($this);

        if ($default) {
            $this->setDefaultTarget($nb_site_target);
        }

        return $this->nb_site_target_list->addItem($nb_site_target);
    }
public function addTarget ( CNabuSiteTarget $ nb_site_target , $ default = false ) { $ nb_site_target -> setSite ( $ this ) ; if ( $ default ) { $ this -> setDefaultTarget ( $ nb_site_target ) ; } return $ this -> nb_site_target_list -> addItem ( $ nb_site_target ) ; }
Add a target to a site.
@param CNabuSiteTarget $nb_site_target Target to add to site.
@param bool $default If true sets the target as the default target for this site.
@return CNabuSiteTarget Returns the inserted target.
Add a target to a site .