public function isEmailAddressPrimaryType($emailID) {

        // Must we accept "primary" email type only?
        if (!Config::get('lasallecrmlistmanagement.listmgmt_emails_in_list_primary_type_only')) {
            return false;
        }

        // "primary" type is #1
        if ($this->getEmailType($emailID) != 1) {
            return false;
        }

        return true;
    }
public function isEmailAddressPrimaryType($emailID) {

        // Must we accept "primary" email type only?
        if (!Config::get('lasallecrmlistmanagement.listmgmt_emails_in_list_primary_type_only')) {
            return false;
        }

        // "primary" type is #1
        if ($this->getEmailType($emailID) != 1) {
            return false;
        }

        return true;
    }
public function isEmailAddressPrimaryType ( $ emailID ) { // Must we accept "primary" email type only? if ( ! Config :: get ( 'lasallecrmlistmanagement.listmgmt_emails_in_list_primary_type_only' ) ) { return false ; } // "primary" type is #1 if ( $ this -> getEmailType ( $ emailID ) != 1 ) { return false ; } return true ; }
Is the email type "primary" AND must we accept "primary" type only?

Both conditions must be true to return true

@param   int    $emailID       Emails db table's ID
@return  bool
Is the email type primary AND must we accept primary type only?