public function validateCustomer($nb_customer)
    {
        $nb_customer_id = nb_getMixedValue($nb_customer, NABU_CUSTOMER_FIELD_ID);
        return ($this instanceof CNabuDataObject) &&
               (is_numeric($nb_customer_id) || nb_isValidGUID($nb_customer_id)) &&
               $this->isValueEqualThan(NABU_CUSTOMER_FIELD_ID, $nb_customer_id)
        ;
    }
public function validateCustomer($nb_customer)
    {
        $nb_customer_id = nb_getMixedValue($nb_customer, NABU_CUSTOMER_FIELD_ID);
        return ($this instanceof CNabuDataObject) &&
               (is_numeric($nb_customer_id) || nb_isValidGUID($nb_customer_id)) &&
               $this->isValueEqualThan(NABU_CUSTOMER_FIELD_ID, $nb_customer_id)
        ;
    }
public function validateCustomer ( $ nb_customer ) { $ nb_customer_id = nb_getMixedValue ( $ nb_customer , NABU_CUSTOMER_FIELD_ID ) ; return ( $ this instanceof CNabuDataObject ) && ( is_numeric ( $ nb_customer_id ) || nb_isValidGUID ( $ nb_customer_id ) ) && $ this -> isValueEqualThan ( NABU_CUSTOMER_FIELD_ID , $ nb_customer_id ) ; }
Checks if the object is owned by the customer passed as param.
@param mixed $nb_customer object containing the field nb_customer_id or an scalar value containing
the customer ID.
@return bool Returns true if $nb_customer is a valid customer ID and is the owner of the object.
Checks if the object is owned by the customer passed as param .