Merge pull request #11017 from seamuslee001/CRM-21212
[civicrm-core.git] / CRM / Core / DAO / Component.php
index 259a65fd52cbc97e547e18518446fb8ed067dd16..2d9ec940e9fb30da3fd46c443c29fa85ca6944bd 100644 (file)
  *
  * Generated from xml/schema/CRM/Core/Component.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:139dcaac103194eb41070ed8d7753d90)
+ * (GenCodeChecksum:14ca0040d5a5656fd5dd91ad60a8ac89)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Core_DAO_Component constructor.
+ */
 class CRM_Core_DAO_Component extends CRM_Core_DAO {
   /**
-   * static instance to hold the table name
+   * Static instance to hold the table name.
    *
    * @var string
    */
   static $_tableName = 'civicrm_component';
   /**
-   * 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
    */
@@ -68,9 +70,7 @@ class CRM_Core_DAO_Component extends CRM_Core_DAO {
    */
   public $namespace;
   /**
-   * class constructor
-   *
-   * @return civicrm_component
+   * Class constructor.
    */
   function __construct() {
     $this->__table = 'civicrm_component';
@@ -89,6 +89,10 @@ class CRM_Core_DAO_Component extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'description' => 'Component ID',
           'required' => true,
+          'table_name' => 'civicrm_component',
+          'entity' => 'Component',
+          'bao' => 'CRM_Core_DAO_Component',
+          'localizable' => 0,
         ) ,
         'name' => array(
           'name' => 'name',
@@ -98,6 +102,10 @@ class CRM_Core_DAO_Component extends CRM_Core_DAO {
           'required' => true,
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
+          'table_name' => 'civicrm_component',
+          'entity' => 'Component',
+          'bao' => 'CRM_Core_DAO_Component',
+          'localizable' => 0,
         ) ,
         'namespace' => array(
           'name' => 'namespace',
@@ -108,6 +116,10 @@ class CRM_Core_DAO_Component extends CRM_Core_DAO {
     ',
           'maxlength' => 128,
           'size' => CRM_Utils_Type::HUGE,
+          'table_name' => 'civicrm_component',
+          'entity' => 'Component',
+          'bao' => 'CRM_Core_DAO_Component',
+          'localizable' => 0,
         ) ,
       );
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
@@ -164,4 +176,11 @@ class CRM_Core_DAO_Component extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'component', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array();
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }