Merge pull request #9779 from WeMoveEU/CRM-19963
[civicrm-core.git] / CRM / ACL / DAO / EntityRole.php
index 88677377a02f2a98131a4e681b9041886ff9c560..5ecda4016a70b9b9147d070895d9c3f4d3c7d2f1 100644 (file)
@@ -30,7 +30,7 @@
  *
  * Generated from xml/schema/CRM/ACL/EntityRole.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:005d4928f36bf24b5e20e13f18f0588d)
+ * (GenCodeChecksum:b6780a8cf74433fd38a0c7f9e6161986)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
@@ -118,6 +118,7 @@ class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO {
           'table_name' => 'civicrm_acl_entity_role',
           'entity' => 'EntityRole',
           'bao' => 'CRM_ACL_BAO_EntityRole',
+          'localizable' => 0,
         ) ,
         'acl_role_id' => array(
           'name' => 'acl_role_id',
@@ -128,6 +129,7 @@ class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO {
           'table_name' => 'civicrm_acl_entity_role',
           'entity' => 'EntityRole',
           'bao' => 'CRM_ACL_BAO_EntityRole',
+          'localizable' => 0,
         ) ,
         'entity_table' => array(
           'name' => 'entity_table',
@@ -140,6 +142,7 @@ class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO {
           'table_name' => 'civicrm_acl_entity_role',
           'entity' => 'EntityRole',
           'bao' => 'CRM_ACL_BAO_EntityRole',
+          'localizable' => 0,
         ) ,
         'entity_id' => array(
           'name' => 'entity_id',
@@ -150,6 +153,7 @@ class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO {
           'table_name' => 'civicrm_acl_entity_role',
           'entity' => 'EntityRole',
           'bao' => 'CRM_ACL_BAO_EntityRole',
+          'localizable' => 0,
         ) ,
         'is_active' => array(
           'name' => 'is_active',
@@ -159,6 +163,7 @@ class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO {
           'table_name' => 'civicrm_acl_entity_role',
           'entity' => 'EntityRole',
           'bao' => 'CRM_ACL_BAO_EntityRole',
+          'localizable' => 0,
         ) ,
       );
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
@@ -215,4 +220,29 @@ class CRM_ACL_DAO_EntityRole extends CRM_Core_DAO {
     $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'acl_entity_role', $prefix, array());
     return $r;
   }
+  /**
+   * Returns the list of indices
+   */
+  public static function indices($localize = TRUE) {
+    $indices = array(
+      'index_role' => array(
+        'name' => 'index_role',
+        'field' => array(
+          0 => 'acl_role_id',
+        ) ,
+        'localizable' => false,
+        'sig' => 'civicrm_acl_entity_role::0::acl_role_id',
+      ) ,
+      'index_entity' => array(
+        'name' => 'index_entity',
+        'field' => array(
+          0 => 'entity_table',
+          1 => 'entity_id',
+        ) ,
+        'localizable' => false,
+        'sig' => 'civicrm_acl_entity_role::0::entity_table::entity_id',
+      ) ,
+    );
+    return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+  }
 }