public function getProspect($nb_prospect)
    {
        $retval = false;

        if (is_numeric($nb_prospect_id = nb_getMixedValue($nb_prospect, NABU_ICONTACT_PROSPECT_FIELD_ID))) {
            $retval = $this->nb_icontact_prospect_list->getItem($nb_prospect_id);
        }

        return $retval;
    }
public function getProspect($nb_prospect)
    {
        $retval = false;

        if (is_numeric($nb_prospect_id = nb_getMixedValue($nb_prospect, NABU_ICONTACT_PROSPECT_FIELD_ID))) {
            $retval = $this->nb_icontact_prospect_list->getItem($nb_prospect_id);
        }

        return $retval;
    }
public function getProspect ( $ nb_prospect ) { $ retval = false ; if ( is_numeric ( $ nb_prospect_id = nb_getMixedValue ( $ nb_prospect , NABU_ICONTACT_PROSPECT_FIELD_ID ) ) ) { $ retval = $ this -> nb_icontact_prospect_list -> getItem ( $ nb_prospect_id ) ; } return $ retval ; }
Get a Prospect by his Id.
@param mixed $nb_prospect A CNabuDataObject containing a field named nb_icontact_prospect_id or a valid Id.
@return CNabuIContactProspect|false Returns a valid instance if found or false if none exists.
Get a Prospect by his Id .