Ejemplo n.º 1
0
 /**
  * Returns an array containing, for each field, the arary key used for that
  * field in self::$_fields.
  *
  * @return array
  */
 static function &fieldKeys()
 {
     if (!self::$_fieldKeys) {
         self::$_fieldKeys = array('id' => 'id', 'contact_type' => 'contact_type', 'contact_sub_type' => 'contact_sub_type', 'do_not_email' => 'do_not_email', 'do_not_phone' => 'do_not_phone', 'do_not_mail' => 'do_not_mail', 'do_not_sms' => 'do_not_sms', 'do_not_trade' => 'do_not_trade', 'is_opt_out' => 'is_opt_out', 'legal_identifier' => 'legal_identifier', 'external_identifier' => 'external_identifier', 'sort_name' => 'sort_name', 'display_name' => 'display_name', 'nick_name' => 'nick_name', 'legal_name' => 'legal_name', 'image_URL' => 'image_URL', 'preferred_communication_method' => 'preferred_communication_method', 'preferred_language' => 'preferred_language', 'preferred_mail_format' => 'preferred_mail_format', 'hash' => 'hash', 'api_key' => 'api_key', 'source' => 'contact_source', 'first_name' => 'first_name', 'middle_name' => 'middle_name', 'last_name' => 'last_name', 'prefix_id' => 'prefix_id', 'suffix_id' => 'suffix_id', 'formal_title' => 'formal_title', 'communication_style_id' => 'communication_style_id', 'email_greeting_id' => 'email_greeting_id', 'email_greeting_custom' => 'email_greeting_custom', 'email_greeting_display' => 'email_greeting_display', 'postal_greeting_id' => 'postal_greeting_id', 'postal_greeting_custom' => 'postal_greeting_custom', 'postal_greeting_display' => 'postal_greeting_display', 'addressee_id' => 'addressee_id', 'addressee_custom' => 'addressee_custom', 'addressee_display' => 'addressee_display', 'job_title' => 'job_title', 'gender_id' => 'gender_id', 'birth_date' => 'birth_date', 'is_deceased' => 'is_deceased', 'deceased_date' => 'deceased_date', 'household_name' => 'household_name', 'primary_contact_id' => 'primary_contact_id', 'organization_name' => 'organization_name', 'sic_code' => 'sic_code', 'user_unique_id' => 'user_unique_id', 'employer_id' => 'current_employer_id', 'is_deleted' => 'contact_is_deleted', 'created_date' => 'created_date', 'modified_date' => 'modified_date');
     }
     return self::$_fieldKeys;
 }