Merge pull request #18493 from mlutfy/campaignReportDefaults
[civicrm-core.git] / CRM / Contact / DAO / Contact.php
index 08668b27399710d9e094cf89331f237ad363639e..c585b127039b72171f6e390c44967ce5a1900020 100644 (file)
@@ -6,13 +6,15 @@
  *
  * Generated from xml/schema/CRM/Contact/Contact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:da59563e28c0229228f7c2baa20caabf)
+ * (GenCodeChecksum:f118596cceae71668861504b7316afa7)
  */
 
 /**
  * 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.
@@ -395,9 +397,12 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contacts') : ts('Contact');
   }
 
   /**
@@ -1214,7 +1219,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
         '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',
@@ -1227,6 +1232,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'localizable' => 0,
           'html' => [
             'type' => 'Select',
+            'label' => ts("Gender"),
           ],
           'pseudoconstant' => [
             'optionGroupName' => 'gender',
@@ -1399,7 +1405,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
         'current_employer_id' => [
           'name' => 'employer_id',
           'type' => CRM_Utils_Type::T_INT,
-          'title' => ts('Current Employer'),
+          'title' => ts('Current Employer ID'),
           'description' => ts('OPTIONAL FK to civicrm_contact record.'),
           'where' => 'civicrm_contact.employer_id',
           'export' => TRUE,
@@ -1411,6 +1417,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO {
           'FKClassName' => 'CRM_Contact_DAO_Contact',
           'html' => [
             'type' => 'EntityRef',
+            'label' => ts("Current Employer"),
           ],
           'add' => '2.1',
         ],