public function getTarget($nb_site_target)
    {
        $nb_site_target_id = nb_getMixedValue($nb_site_target, 'nb_site_target_id');

        return (is_numeric($nb_site_target_id) || nb_isValidGUID($nb_site_target_id))
               ? $this->nb_site_target_list->getItem($nb_site_target_id)->setSite($this)
               : null
        ;
    }
public function getTarget($nb_site_target)
    {
        $nb_site_target_id = nb_getMixedValue($nb_site_target, 'nb_site_target_id');

        return (is_numeric($nb_site_target_id) || nb_isValidGUID($nb_site_target_id))
               ? $this->nb_site_target_list->getItem($nb_site_target_id)->setSite($this)
               : null
        ;
    }
public function getTarget ( $ nb_site_target ) { $ nb_site_target_id = nb_getMixedValue ( $ nb_site_target , 'nb_site_target_id' ) ; return ( is_numeric ( $ nb_site_target_id ) || nb_isValidGUID ( $ nb_site_target_id ) ) ? $ this -> nb_site_target_list -> getItem ( $ nb_site_target_id ) -> setSite ( $ this ) : null ; }
Gets a Target item from the list of targets loaded in the Site.
@param mixed $nb_site_target An instance that contains a field named 'nb_site_target_id' or an Id.
@return CNabuSiteTarget Returns the requested target if exists or null if not.
Gets a Target item from the list of targets loaded in the Site .