public function getIContact($force = false)
    {
        if ($this->nb_icontact === null || $force) {
            $this->nb_icontact = null;
            if ($this instanceof CNabuDataObject &&
                !$this->isBuiltIn()
                && $this->isValueNumeric(NABU_ICONTACT_FIELD_ID)
            ) {
                $nb_icontact = new CNabuIContact($this->getValue(NABU_ICONTACT_FIELD_ID));
                if ($nb_icontact->isFetched()) {
                    $this->nb_icontact = $nb_icontact;
                }
            }
        }

        return $this->nb_icontact;
    }
public function getIContact($force = false)
    {
        if ($this->nb_icontact === null || $force) {
            $this->nb_icontact = null;
            if ($this instanceof CNabuDataObject &&
                !$this->isBuiltIn()
                && $this->isValueNumeric(NABU_ICONTACT_FIELD_ID)
            ) {
                $nb_icontact = new CNabuIContact($this->getValue(NABU_ICONTACT_FIELD_ID));
                if ($nb_icontact->isFetched()) {
                    $this->nb_icontact = $nb_icontact;
                }
            }
        }

        return $this->nb_icontact;
    }
public function getIContact ( $ force = false ) { if ( $ this -> nb_icontact === null || $ force ) { $ this -> nb_icontact = null ; if ( $ this instanceof CNabuDataObject && ! $ this -> isBuiltIn ( ) && $ this -> isValueNumeric ( NABU_ICONTACT_FIELD_ID ) ) { $ nb_icontact = new CNabuIContact ( $ this -> getValue ( NABU_ICONTACT_FIELD_ID ) ) ; if ( $ nb_icontact -> isFetched ( ) ) { $ this -> nb_icontact = $ nb_icontact ; } } } return $ this -> nb_icontact ; }
Gets the iContact instance that owns this object.
@param bool $force If true forces to reload IContact from the database.
@return CNabuIContact Returns the iContact instance if exists or null if not.
Gets the iContact instance that owns this object .