CRM-20312 regenerated DAOS with indexes
[civicrm-core.git] / CRM / Core / DAO / Phone.php
index 602f4ee916a85332319dc6e9b75b9e935328e682..7c594b5d9cb1f659e0aa1c0b97b79565260ea5e6 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Core/Phone.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:aed6082497eb601fdc249c7a361204a8)
+ * (GenCodeChecksum:661faad4886dd1a40784d465b906f447)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -148,6 +148,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
         ) ,
         'contact_id' => array(
           'name' => 'contact_id',
@@ -157,6 +158,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
         ) ,
         'location_type_id' => array(
@@ -167,6 +169,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select',
           ) ,
@@ -184,6 +187,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
         ) ,
         'is_billing' => array(
           'name' => 'is_billing',
@@ -193,6 +197,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
         ) ,
         'mobile_provider_id' => array(
           'name' => 'mobile_provider_id',
@@ -202,6 +207,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
         ) ,
         'phone' => array(
           'name' => 'phone',
@@ -218,6 +224,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Text',
           ) ,
@@ -237,6 +244,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Text',
           ) ,
@@ -251,6 +259,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
         ) ,
         'phone_type_id' => array(
           'name' => 'phone_type_id',
@@ -260,6 +269,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
           'table_name' => 'civicrm_phone',
           'entity' => 'Phone',
           'bao' => 'CRM_Core_BAO_Phone',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select',
           ) ,
@@ -323,4 +333,52 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'phone', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array(
+      'index_location_type' => array(
+        'name' => 'index_location_type',
+        'field' => array(
+          0 => 'location_type_id',
+        ) ,
+        'localizable' => false,
+        'sig' => 'civicrm_phone::0::location_type_id',
+      ) ,
+      'index_is_primary' => array(
+        'name' => 'index_is_primary',
+        'field' => array(
+          0 => 'is_primary',
+        ) ,
+        'localizable' => false,
+        'sig' => 'civicrm_phone::0::is_primary',
+      ) ,
+      'index_is_billing' => array(
+        'name' => 'index_is_billing',
+        'field' => array(
+          0 => 'is_billing',
+        ) ,
+        'localizable' => false,
+        'sig' => 'civicrm_phone::0::is_billing',
+      ) ,
+      'UI_mobile_provider_id' => array(
+        'name' => 'UI_mobile_provider_id',
+        'field' => array(
+          0 => 'mobile_provider_id',
+        ) ,
+        'localizable' => false,
+        'sig' => 'civicrm_phone::0::mobile_provider_id',
+      ) ,
+      'index_phone_numeric' => array(
+        'name' => 'index_phone_numeric',
+        'field' => array(
+          0 => 'phone_numeric',
+        ) ,
+        'localizable' => false,
+        'sig' => 'civicrm_phone::0::phone_numeric',
+      ) ,
+    );
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }