*
* Generated from xml/schema/CRM/Contact/Contact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6d8b87302a9cecf71150fc71ca3879dd)
+ * (GenCodeChecksum:7f796d14a0de2afa9ec1d5b658ab9329)
*/
/**
* Database access object for the Contact entity.
*/
class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
+ const EXT = 'civicrm';
+ const TABLE_ADDED = '1.1';
/**
* Static instance to hold the table name.
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'localizable' => 0,
+ 'add' => '1.1',
],
'contact_type' => [
'name' => 'contact_type',
'labelColumn' => 'label',
'condition' => 'parent_id IS NULL',
],
+ 'add' => '1.1',
],
'contact_sub_type' => [
'name' => 'contact_sub_type',
'labelColumn' => 'label',
'condition' => 'parent_id IS NOT NULL',
],
+ 'add' => '1.5',
],
'do_not_email' => [
'name' => 'do_not_email',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.1',
],
'do_not_phone' => [
'name' => 'do_not_phone',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.1',
],
'do_not_mail' => [
'name' => 'do_not_mail',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.1',
],
'do_not_sms' => [
'name' => 'do_not_sms',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '3.0',
],
'do_not_trade' => [
'name' => 'do_not_trade',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.1',
],
'is_opt_out' => [
'name' => 'is_opt_out',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.1',
],
'legal_identifier' => [
'name' => 'legal_identifier',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'external_identifier' => [
'name' => 'external_identifier',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'sort_name' => [
'name' => 'sort_name',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'display_name' => [
'name' => 'display_name',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'nick_name' => [
'name' => 'nick_name',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'legal_name' => [
'name' => 'legal_name',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'image_URL' => [
'name' => 'image_URL',
'html' => [
'type' => 'File',
],
+ 'add' => '1.1',
],
'preferred_communication_method' => [
'name' => 'preferred_communication_method',
'optionGroupName' => 'preferred_communication_method',
'optionEditPath' => 'civicrm/admin/options/preferred_communication_method',
],
+ 'add' => '1.1',
],
'preferred_language' => [
'name' => 'preferred_language',
'keyColumn' => 'name',
'optionEditPath' => 'civicrm/admin/options/languages',
],
+ 'add' => '3.2',
],
'preferred_mail_format' => [
'name' => 'preferred_mail_format',
'pseudoconstant' => [
'callback' => 'CRM_Core_SelectValues::pmf',
],
+ 'add' => '1.1',
],
'hash' => [
'name' => 'hash',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'localizable' => 0,
+ 'add' => '1.1',
],
'api_key' => [
'name' => 'api_key',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'localizable' => 0,
+ 'add' => '2.2',
],
'contact_source' => [
'name' => 'source',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'first_name' => [
'name' => 'first_name',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'middle_name' => [
'name' => 'middle_name',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'last_name' => [
'name' => 'last_name',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'prefix_id' => [
'name' => 'prefix_id',
'optionGroupName' => 'individual_prefix',
'optionEditPath' => 'civicrm/admin/options/individual_prefix',
],
+ 'add' => '1.2',
],
'suffix_id' => [
'name' => 'suffix_id',
'optionGroupName' => 'individual_suffix',
'optionEditPath' => 'civicrm/admin/options/individual_suffix',
],
+ 'add' => '1.2',
],
'formal_title' => [
'name' => 'formal_title',
'html' => [
'type' => 'Text',
],
+ 'add' => '4.5',
],
'communication_style_id' => [
'name' => 'communication_style_id',
'optionGroupName' => 'communication_style',
'optionEditPath' => 'civicrm/admin/options/communication_style',
],
+ 'add' => '4.4',
],
'email_greeting_id' => [
'name' => 'email_greeting_id',
'optionGroupName' => 'email_greeting',
'optionEditPath' => 'civicrm/admin/options/email_greeting',
],
+ 'add' => '3.0',
],
'email_greeting_custom' => [
'name' => 'email_greeting_custom',
'html' => [
'type' => 'Text',
],
+ 'add' => '3.0',
],
'email_greeting_display' => [
'name' => 'email_greeting_display',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'localizable' => 0,
+ 'add' => '3.0',
],
'postal_greeting_id' => [
'name' => 'postal_greeting_id',
'optionGroupName' => 'postal_greeting',
'optionEditPath' => 'civicrm/admin/options/postal_greeting',
],
+ 'add' => '3.0',
],
'postal_greeting_custom' => [
'name' => 'postal_greeting_custom',
'html' => [
'type' => 'Text',
],
+ 'add' => '3.0',
],
'postal_greeting_display' => [
'name' => 'postal_greeting_display',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'localizable' => 0,
+ 'add' => '3.0',
],
'addressee_id' => [
'name' => 'addressee_id',
'optionGroupName' => 'addressee',
'optionEditPath' => 'civicrm/admin/options/addressee',
],
+ 'add' => '3.0',
],
'addressee_custom' => [
'name' => 'addressee_custom',
'html' => [
'type' => 'Text',
],
+ 'add' => '3.0',
],
'addressee_display' => [
'name' => 'addressee_display',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'localizable' => 0,
+ 'add' => '3.0',
],
'job_title' => [
'name' => 'job_title',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'gender_id' => [
'name' => 'gender_id',
'type' => CRM_Utils_Type::T_INT,
- 'title' => ts('Gender'),
+ 'title' => ts('Gender ID'),
'description' => ts('FK to gender ID'),
'import' => TRUE,
'where' => 'civicrm_contact.gender_id',
'localizable' => 0,
'html' => [
'type' => 'Select',
+ 'label' => ts("Gender"),
],
'pseudoconstant' => [
'optionGroupName' => 'gender',
'optionEditPath' => 'civicrm/admin/options/gender',
],
+ 'add' => '1.2',
],
'birth_date' => [
'name' => 'birth_date',
'type' => 'Select Date',
'formatType' => 'birth',
],
+ 'add' => '1.1',
],
'is_deceased' => [
'name' => 'is_deceased',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.1',
],
'deceased_date' => [
'name' => 'deceased_date',
'type' => 'Select Date',
'formatType' => 'birth',
],
+ 'add' => '1.5',
],
'household_name' => [
'name' => 'household_name',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'primary_contact_id' => [
'name' => 'primary_contact_id',
'bao' => 'CRM_Contact_BAO_Contact',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
+ 'add' => '1.1',
],
'organization_name' => [
'name' => 'organization_name',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'sic_code' => [
'name' => 'sic_code',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'user_unique_id' => [
'name' => 'user_unique_id',
'html' => [
'type' => 'Text',
],
+ 'add' => '2.0',
],
'current_employer_id' => [
'name' => 'employer_id',
'html' => [
'type' => 'EntityRef',
],
+ 'add' => '2.1',
],
'contact_is_deleted' => [
'name' => 'is_deleted',
'required' => TRUE,
'where' => 'civicrm_contact.is_deleted',
'export' => TRUE,
+ 'permission' => [
+ 'access deleted contacts',
+ ],
'default' => '0',
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '3.2',
],
'created_date' => [
'name' => 'created_date',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'localizable' => 0,
+ 'add' => '4.3',
],
'modified_date' => [
'name' => 'modified_date',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'localizable' => 0,
+ 'add' => '4.3',
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);