CRM-20312 regenerated DAOS with indexes
[civicrm-core.git] / CRM / Core / DAO / UFJoin.php
index 4ae5f57834547b170d3bf9a23662fd8bc05415f3..a85d2e6e5e732d8c9f5048a9c84211ea2e0edd6b 100644 (file)
@@ -3,7 +3,7 @@
 +--------------------------------------------------------------------+
 | CiviCRM version 4.7                                                |
 +--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2016                                |
+| Copyright CiviCRM LLC (c) 2004-2017                                |
 +--------------------------------------------------------------------+
 | This file is a part of CiviCRM.                                    |
 |                                                                    |
 */
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
  *
  * Generated from xml/schema/CRM/Core/UFJoin.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0c93775718d7f983d457974f5a733491)
+ * (GenCodeChecksum:fde4a7125f1dd6d9e5081b534f151db6)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Core_DAO_UFJoin constructor.
+ */
 class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
   /**
-   * static instance to hold the table name
+   * Static instance to hold the table name.
    *
    * @var string
    */
   static $_tableName = 'civicrm_uf_join';
   /**
-   * static value to see if we should log any modifications to
-   * this table in the civicrm_log table
+   * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var boolean
    */
@@ -97,16 +99,14 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
    */
   public $module_data;
   /**
-   * class constructor
-   *
-   * @return civicrm_uf_join
+   * Class constructor.
    */
   function __construct() {
     $this->__table = 'civicrm_uf_join';
     parent::__construct();
   }
   /**
-   * Returns foreign keys and entity references
+   * Returns foreign keys and entity references.
    *
    * @return array
    *   [CRM_Core_Reference_Interface]
@@ -134,6 +134,10 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'title' => ts('UF Join ID') ,
           'description' => 'Unique table ID',
           'required' => true,
+          'table_name' => 'civicrm_uf_join',
+          'entity' => 'UFJoin',
+          'bao' => 'CRM_Core_BAO_UFJoin',
+          'localizable' => 0,
         ) ,
         'is_active' => array(
           'name' => 'is_active',
@@ -141,6 +145,10 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'title' => ts('Profile Use is active') ,
           'description' => 'Is this join currently active?',
           'default' => '1',
+          'table_name' => 'civicrm_uf_join',
+          'entity' => 'UFJoin',
+          'bao' => 'CRM_Core_BAO_UFJoin',
+          'localizable' => 0,
         ) ,
         'module' => array(
           'name' => 'module',
@@ -150,6 +158,10 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'required' => true,
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
+          'table_name' => 'civicrm_uf_join',
+          'entity' => 'UFJoin',
+          'bao' => 'CRM_Core_BAO_UFJoin',
+          'localizable' => 0,
         ) ,
         'entity_table' => array(
           'name' => 'entity_table',
@@ -158,6 +170,10 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'description' => 'Name of table where item being referenced is stored. Modules which only need a single collection of uf_join instances may choose not to populate entity_table and entity_id.',
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
+          'table_name' => 'civicrm_uf_join',
+          'entity' => 'UFJoin',
+          'bao' => 'CRM_Core_BAO_UFJoin',
+          'localizable' => 0,
           'pseudoconstant' => array(
             'callback' => 'CRM_Core_BAO_UFJoin::entityTables',
           )
@@ -167,6 +183,10 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Profile Entity ID') ,
           'description' => 'Foreign key to the referenced item.',
+          'table_name' => 'civicrm_uf_join',
+          'entity' => 'UFJoin',
+          'bao' => 'CRM_Core_BAO_UFJoin',
+          'localizable' => 0,
         ) ,
         'weight' => array(
           'name' => 'weight',
@@ -175,6 +195,10 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'description' => 'Controls display order when multiple user framework groups are setup for concurrent display.',
           'required' => true,
           'default' => '1',
+          'table_name' => 'civicrm_uf_join',
+          'entity' => 'UFJoin',
+          'bao' => 'CRM_Core_BAO_UFJoin',
+          'localizable' => 0,
         ) ,
         'uf_group_id' => array(
           'name' => 'uf_group_id',
@@ -182,6 +206,10 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'title' => ts('Profile ID') ,
           'description' => 'Which form does this field belong to.',
           'required' => true,
+          'table_name' => 'civicrm_uf_join',
+          'entity' => 'UFJoin',
+          'bao' => 'CRM_Core_BAO_UFJoin',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_UFGroup',
           'html' => array(
             'type' => 'Select',
@@ -197,6 +225,10 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_LONGTEXT,
           'title' => ts('Profile Use Data') ,
           'description' => 'Json serialized array of data used by the ufjoin.module',
+          'table_name' => 'civicrm_uf_join',
+          'entity' => 'UFJoin',
+          'bao' => 'CRM_Core_BAO_UFJoin',
+          'localizable' => 0,
         ) ,
       );
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
@@ -253,4 +285,21 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'uf_join', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array(
+      'index_entity' => array(
+        'name' => 'index_entity',
+        'field' => array(
+          0 => 'entity_table',
+          1 => 'entity_id',
+        ) ,
+        'localizable' => false,
+        'sig' => 'civicrm_uf_join::0::entity_table::entity_id',
+      ) ,
+    );
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }