CRM-20312 regenerated DAOS with indexes
[civicrm-core.git] / CRM / Core / DAO / Extension.php
index 08c2f70d0dd30762cf0465019422cbd555826b1a..83194dcb07be1fded33b20b3192bf0d645172131 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/Core/Extension.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fdbe27f0b1587c2b4806d98f474e78ed)
+ * (GenCodeChecksum:6fdc48310a3cb4c35b5a3fa3a8aca079)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -288,4 +288,29 @@ class CRM_Core_DAO_Extension extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'extension', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array(
+      'UI_extension_full_name' => array(
+        'name' => 'UI_extension_full_name',
+        'field' => array(
+          0 => 'full_name',
+        ) ,
+        'localizable' => false,
+        'unique' => true,
+        'sig' => 'civicrm_extension::1::full_name',
+      ) ,
+      'UI_extension_name' => array(
+        'name' => 'UI_extension_name',
+        'field' => array(
+          0 => 'name',
+        ) ,
+        'localizable' => false,
+        'sig' => 'civicrm_extension::0::name',
+      ) ,
+    );
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }