public function setCTATarget(CNabuSiteTarget $nb_site_target = null)
    {
        if ($nb_site_target instanceof CNabuSiteTarget) {
            $this->setTargetUseURI(CNabuSiteTargetLink::USE_URI_TRANSLATED);
            $this->transferValue($nb_site_target, 'nb_site_target_id', 'nb_site_target_cta_target_id');
        } else {
            $this->setTargetUseURI(CNabuSiteTargetLink::USE_URI_NONE);
            $this->setTargetId(null);
        }
        $this->nb_site_target_destination = $nb_site_target;

        return $this;
    }
public function setCTATarget(CNabuSiteTarget $nb_site_target = null)
    {
        if ($nb_site_target instanceof CNabuSiteTarget) {
            $this->setTargetUseURI(CNabuSiteTargetLink::USE_URI_TRANSLATED);
            $this->transferValue($nb_site_target, 'nb_site_target_id', 'nb_site_target_cta_target_id');
        } else {
            $this->setTargetUseURI(CNabuSiteTargetLink::USE_URI_NONE);
            $this->setTargetId(null);
        }
        $this->nb_site_target_destination = $nb_site_target;

        return $this;
    }
public function setCTATarget ( CNabuSiteTarget $ nb_site_target = null ) { if ( $ nb_site_target instanceof CNabuSiteTarget ) { $ this -> setTargetUseURI ( CNabuSiteTargetLink :: USE_URI_TRANSLATED ) ; $ this -> transferValue ( $ nb_site_target , 'nb_site_target_id' , 'nb_site_target_cta_target_id' ) ; } else { $ this -> setTargetUseURI ( CNabuSiteTargetLink :: USE_URI_NONE ) ; $ this -> setTargetId ( null ) ; } $ this -> nb_site_target_destination = $ nb_site_target ; return $ this ; }
Sets the CTA Target object. Updates nb_site_target_cta_target_id and nb_site_target_cta_use_uri to proper values.
@param CNabuSiteTarget|null $nb_site_target If $nb_site_target contains an instance then sets this instance
as the CTA Target else sets the CTA Target as none.
@return CNabuSiteTargetCTA Returns the self instance to grant cascade setters mechanism.
Sets the CTA Target object . Updates nb_site_target_cta_target_id and nb_site_target_cta_use_uri to proper values .