From: Aidan Saunders Date: Wed, 5 Apr 2017 03:05:06 +0000 (+1200) Subject: CRM-20312 regenerated DAOS with indexes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e7a6b91ae4e3004b2d097ed318524d2ea7cf3fb0;p=civicrm-core.git CRM-20312 regenerated DAOS with indexes --- diff --git a/CRM/ACL/DAO/ACL.php b/CRM/ACL/DAO/ACL.php index a8910f87f4..a9eaecfe59 100644 --- a/CRM/ACL/DAO/ACL.php +++ b/CRM/ACL/DAO/ACL.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/ACL/ACL.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0d351e0ae594f1db9f53743dfd3c2efb) + * (GenCodeChecksum:e3bf1ea17c74897968f372d4e27c1d2c) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -339,4 +339,20 @@ class CRM_ACL_DAO_ACL extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'acl', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_acl_id' => array( + 'name' => 'index_acl_id', + 'field' => array( + 0 => 'acl_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_acl::0::acl_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/ACL/DAO/Cache.php b/CRM/ACL/DAO/Cache.php index 0393819b8c..16c1af6755 100644 --- a/CRM/ACL/DAO/Cache.php +++ b/CRM/ACL/DAO/Cache.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/ACL/Cache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:160eb4959d8fd0a53ba842f8f32cdbd0) + * (GenCodeChecksum:f65002b394a3b1f9c18de75751364acc) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -204,4 +204,20 @@ class CRM_ACL_DAO_Cache extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'acl_cache', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_acl_id' => array( + 'name' => 'index_acl_id', + 'field' => array( + 0 => 'acl_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_acl_cache::0::acl_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/ACL/DAO/EntityRole.php b/CRM/ACL/DAO/EntityRole.php index 8d8fcdcfb8..5ecda4016a 100644 --- a/CRM/ACL/DAO/EntityRole.php +++ b/CRM/ACL/DAO/EntityRole.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/ACL/EntityRole.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e34346dd9bdc6252228fc4b120eac941) + * (GenCodeChecksum:b6780a8cf74433fd38a0c7f9e6161986) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -220,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; + } } diff --git a/CRM/Activity/DAO/Activity.php b/CRM/Activity/DAO/Activity.php index 840c49e561..8020b61cbe 100644 --- a/CRM/Activity/DAO/Activity.php +++ b/CRM/Activity/DAO/Activity.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Activity/Activity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:930da5a4b8385e51634ab96640875dd5) + * (GenCodeChecksum:b54cc88c35882c1870fcfe97d9a529bc) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -697,4 +697,52 @@ class CRM_Activity_DAO_Activity extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'activity', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_source_record_id' => array( + 'name' => 'UI_source_record_id', + 'field' => array( + 0 => 'source_record_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_activity::0::source_record_id', + ) , + 'UI_activity_type_id' => array( + 'name' => 'UI_activity_type_id', + 'field' => array( + 0 => 'activity_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_activity::0::activity_type_id', + ) , + 'index_medium_id' => array( + 'name' => 'index_medium_id', + 'field' => array( + 0 => 'medium_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_activity::0::medium_id', + ) , + 'index_is_current_revision' => array( + 'name' => 'index_is_current_revision', + 'field' => array( + 0 => 'is_current_revision', + ) , + 'localizable' => false, + 'sig' => 'civicrm_activity::0::is_current_revision', + ) , + 'index_is_deleted' => array( + 'name' => 'index_is_deleted', + 'field' => array( + 0 => 'is_deleted', + ) , + 'localizable' => false, + 'sig' => 'civicrm_activity::0::is_deleted', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Activity/DAO/ActivityContact.php b/CRM/Activity/DAO/ActivityContact.php index 126e271086..bb95eb6fdd 100644 --- a/CRM/Activity/DAO/ActivityContact.php +++ b/CRM/Activity/DAO/ActivityContact.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Activity/ActivityContact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7cf139d8144fc560c03c98cb6ae2a54a) + * (GenCodeChecksum:7a410e20f48318deeb83f3dd1900983a) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -216,4 +216,32 @@ class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'activity_contact', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_activity_contact' => array( + 'name' => 'UI_activity_contact', + 'field' => array( + 0 => 'contact_id', + 1 => 'activity_id', + 2 => 'record_type_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_activity_contact::1::contact_id::activity_id::record_type_id', + ) , + 'index_record_type' => array( + 'name' => 'index_record_type', + 'field' => array( + 0 => 'activity_id', + 1 => 'record_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_activity_contact::0::activity_id::record_type_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Batch/DAO/Batch.php b/CRM/Batch/DAO/Batch.php index 790e0d684b..d3396caf92 100644 --- a/CRM/Batch/DAO/Batch.php +++ b/CRM/Batch/DAO/Batch.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Batch/Batch.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e3fbe72a4b894b117ab5ed4f1765192f) + * (GenCodeChecksum:f1b35f9cc4e12f1d4c2b026aacca7e50) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -470,4 +470,21 @@ class CRM_Batch_DAO_Batch extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'batch', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_batch::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Batch/DAO/EntityBatch.php b/CRM/Batch/DAO/EntityBatch.php index 39a08876be..2ba28e1601 100644 --- a/CRM/Batch/DAO/EntityBatch.php +++ b/CRM/Batch/DAO/EntityBatch.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Batch/EntityBatch.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:db880689cbebab222e9decece8487c1d) + * (GenCodeChecksum:f96c0410a5561b46d8aba0fce509ef6a) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -210,4 +210,32 @@ class CRM_Batch_DAO_EntityBatch extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'entity_batch', $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_entity_batch::0::entity_table::entity_id', + ) , + 'UI_batch_entity' => array( + 'name' => 'UI_batch_entity', + 'field' => array( + 0 => 'batch_id', + 1 => 'entity_id', + 2 => 'entity_table', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_entity_batch::1::batch_id::entity_id::entity_table', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Campaign/DAO/Campaign.php b/CRM/Campaign/DAO/Campaign.php index 61737b8284..2e80da94a1 100644 --- a/CRM/Campaign/DAO/Campaign.php +++ b/CRM/Campaign/DAO/Campaign.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Campaign/Campaign.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e9d9e088056e37eb04e359efcc942c5c) + * (GenCodeChecksum:02b05b18f25c40f15b6992e2f853f5da) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -521,4 +521,37 @@ class CRM_Campaign_DAO_Campaign extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'campaign', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_campaign_type_id' => array( + 'name' => 'UI_campaign_type_id', + 'field' => array( + 0 => 'campaign_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_campaign::0::campaign_type_id', + ) , + 'UI_campaign_status_id' => array( + 'name' => 'UI_campaign_status_id', + 'field' => array( + 0 => 'status_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_campaign::0::status_id', + ) , + 'UI_external_identifier' => array( + 'name' => 'UI_external_identifier', + 'field' => array( + 0 => 'external_identifier', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_campaign::1::external_identifier', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Campaign/DAO/CampaignGroup.php b/CRM/Campaign/DAO/CampaignGroup.php index d8a33bac10..9597c09736 100644 --- a/CRM/Campaign/DAO/CampaignGroup.php +++ b/CRM/Campaign/DAO/CampaignGroup.php @@ -236,4 +236,11 @@ class CRM_Campaign_DAO_CampaignGroup extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'campaign_group', $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; + } } diff --git a/CRM/Campaign/DAO/Survey.php b/CRM/Campaign/DAO/Survey.php index 4508224179..f0c128bd22 100644 --- a/CRM/Campaign/DAO/Survey.php +++ b/CRM/Campaign/DAO/Survey.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Campaign/Survey.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e4d9423883eee80e6f90ccfb0e5a9dd7) + * (GenCodeChecksum:55aa9d31d08f8b5353d42dde1278b7f2) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -510,4 +510,20 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'survey', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_activity_type_id' => array( + 'name' => 'UI_activity_type_id', + 'field' => array( + 0 => 'activity_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_survey::0::activity_type_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Case/DAO/Case.php b/CRM/Case/DAO/Case.php index 611fcec401..dd1bfe3b02 100644 --- a/CRM/Case/DAO/Case.php +++ b/CRM/Case/DAO/Case.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Case/Case.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ec4612a24aed71e99dae33589efc40a0) + * (GenCodeChecksum:e45e7e2a53a945c4659cf393410a9d7a) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -330,4 +330,28 @@ class CRM_Case_DAO_Case extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'case', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_case_type_id' => array( + 'name' => 'index_case_type_id', + 'field' => array( + 0 => 'case_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_case::0::case_type_id', + ) , + 'index_is_deleted' => array( + 'name' => 'index_is_deleted', + 'field' => array( + 0 => 'is_deleted', + ) , + 'localizable' => false, + 'sig' => 'civicrm_case::0::is_deleted', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Case/DAO/CaseActivity.php b/CRM/Case/DAO/CaseActivity.php index 095d4398b7..6645ab4b25 100644 --- a/CRM/Case/DAO/CaseActivity.php +++ b/CRM/Case/DAO/CaseActivity.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Case/CaseActivity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:58cde8198d5fb054a6e3752e61d09d50) + * (GenCodeChecksum:80c6c66652f17c130b2eddcfb32c8f3d) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -188,4 +188,21 @@ class CRM_Case_DAO_CaseActivity extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'case_activity', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_case_activity_id' => array( + 'name' => 'UI_case_activity_id', + 'field' => array( + 0 => 'case_id', + 1 => 'activity_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_case_activity::0::case_id::activity_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Case/DAO/CaseContact.php b/CRM/Case/DAO/CaseContact.php index 60e78d2c4d..95b73b8991 100644 --- a/CRM/Case/DAO/CaseContact.php +++ b/CRM/Case/DAO/CaseContact.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Case/CaseContact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:15085a2da2c504f3157b293dda26d4ab) + * (GenCodeChecksum:449617f59ed0da997f2f1660a3f40bdf) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -191,4 +191,21 @@ class CRM_Case_DAO_CaseContact extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'case_contact', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_case_contact_id' => array( + 'name' => 'UI_case_contact_id', + 'field' => array( + 0 => 'case_id', + 1 => 'contact_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_case_contact::0::case_id::contact_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Case/DAO/CaseType.php b/CRM/Case/DAO/CaseType.php index 645a2c9b8c..ac84133ab9 100644 --- a/CRM/Case/DAO/CaseType.php +++ b/CRM/Case/DAO/CaseType.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Case/CaseType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:003bac8f98db73c4688194dfe394e97d) + * (GenCodeChecksum:a9a547708dfca9da8c4421dd5edac6ac) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -259,4 +259,21 @@ class CRM_Case_DAO_CaseType extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'case_type', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'case_type_name' => array( + 'name' => 'case_type_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_case_type::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/ACLContactCache.php b/CRM/Contact/DAO/ACLContactCache.php index b8e67fb2f8..0a16ea51c1 100644 --- a/CRM/Contact/DAO/ACLContactCache.php +++ b/CRM/Contact/DAO/ACLContactCache.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contact/ACLContactCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2d5f4a293cde82941d7d3aee38a844d7) + * (GenCodeChecksum:09f2e2cc85dd5a51fa2c23ec4f8dc6ee) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -212,4 +212,23 @@ class CRM_Contact_DAO_ACLContactCache extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'acl_contact_cache', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_user_contact_operation' => array( + 'name' => 'UI_user_contact_operation', + 'field' => array( + 0 => 'user_id', + 1 => 'contact_id', + 2 => 'operation', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_acl_contact_cache::1::user_id::contact_id::operation', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/Contact.php b/CRM/Contact/DAO/Contact.php index b3488eb675..ab724755b1 100644 --- a/CRM/Contact/DAO/Contact.php +++ b/CRM/Contact/DAO/Contact.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contact/Contact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d77ca456ce6c4b21e0788e64b7f5effd) + * (GenCodeChecksum:e54412e4bb3c12a009654bab0ef18e2b) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -1411,4 +1411,143 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'contact', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_contact_type' => array( + 'name' => 'index_contact_type', + 'field' => array( + 0 => 'contact_type', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::contact_type', + ) , + 'index_contact_sub_type' => array( + 'name' => 'index_contact_sub_type', + 'field' => array( + 0 => 'contact_sub_type', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::contact_sub_type', + ) , + 'UI_external_identifier' => array( + 'name' => 'UI_external_identifier', + 'field' => array( + 0 => 'external_identifier', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_contact::1::external_identifier', + ) , + 'index_sort_name' => array( + 'name' => 'index_sort_name', + 'field' => array( + 0 => 'sort_name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::sort_name', + ) , + 'index_preferred_communication_method' => array( + 'name' => 'index_preferred_communication_method', + 'field' => array( + 0 => 'preferred_communication_method', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::preferred_communication_method', + ) , + 'index_hash' => array( + 'name' => 'index_hash', + 'field' => array( + 0 => 'hash', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::hash', + ) , + 'index_api_key' => array( + 'name' => 'index_api_key', + 'field' => array( + 0 => 'api_key', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::api_key', + ) , + 'index_first_name' => array( + 'name' => 'index_first_name', + 'field' => array( + 0 => 'first_name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::first_name', + ) , + 'index_last_name' => array( + 'name' => 'index_last_name', + 'field' => array( + 0 => 'last_name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::last_name', + ) , + 'UI_prefix' => array( + 'name' => 'UI_prefix', + 'field' => array( + 0 => 'prefix_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::prefix_id', + ) , + 'UI_suffix' => array( + 'name' => 'UI_suffix', + 'field' => array( + 0 => 'suffix_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::suffix_id', + ) , + 'index_communication_style_id' => array( + 'name' => 'index_communication_style_id', + 'field' => array( + 0 => 'communication_style_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::communication_style_id', + ) , + 'UI_gender' => array( + 'name' => 'UI_gender', + 'field' => array( + 0 => 'gender_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::gender_id', + ) , + 'index_household_name' => array( + 'name' => 'index_household_name', + 'field' => array( + 0 => 'household_name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::household_name', + ) , + 'index_organization_name' => array( + 'name' => 'index_organization_name', + 'field' => array( + 0 => 'organization_name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::organization_name', + ) , + 'index_is_deleted_sort_name' => array( + 'name' => 'index_is_deleted_sort_name', + 'field' => array( + 0 => 'is_deleted', + 1 => 'sort_name', + 2 => 'id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contact::0::is_deleted::sort_name::id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/ContactType.php b/CRM/Contact/DAO/ContactType.php index efd947fa6c..efc21bcb8e 100644 --- a/CRM/Contact/DAO/ContactType.php +++ b/CRM/Contact/DAO/ContactType.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contact/ContactType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:db18ee5f07f619cc32e008747659b0d8) + * (GenCodeChecksum:0323c01f0e0b176df66fe4fa02e0a342) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -281,4 +281,21 @@ class CRM_Contact_DAO_ContactType extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'contact_type', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'contact_type' => array( + 'name' => 'contact_type', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_contact_type::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/DashboardContact.php b/CRM/Contact/DAO/DashboardContact.php index fb3bd4a690..951be62061 100644 --- a/CRM/Contact/DAO/DashboardContact.php +++ b/CRM/Contact/DAO/DashboardContact.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contact/DashboardContact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b02ee36683730f70ab6f1084dd1bfc09) + * (GenCodeChecksum:bcefe0743f9e78a86266236b31f37fe4) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -234,4 +234,22 @@ class CRM_Contact_DAO_DashboardContact extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'dashboard_contact', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_dashboard_id_contact_id' => array( + 'name' => 'index_dashboard_id_contact_id', + 'field' => array( + 0 => 'dashboard_id', + 1 => 'contact_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_dashboard_contact::1::dashboard_id::contact_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/Group.php b/CRM/Contact/DAO/Group.php index 4dc59d3a27..f3a4ad3091 100644 --- a/CRM/Contact/DAO/Group.php +++ b/CRM/Contact/DAO/Group.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contact/Group.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c4c626170ab2e75f6995809f16e718ef) + * (GenCodeChecksum:4c9dfb678f18129fd9d667de3727dfeb) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -486,4 +486,38 @@ class CRM_Contact_DAO_Group extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'group', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_group_type' => array( + 'name' => 'index_group_type', + 'field' => array( + 0 => 'group_type', + ) , + 'localizable' => false, + 'sig' => 'civicrm_group::0::group_type', + ) , + 'UI_title' => array( + 'name' => 'UI_title', + 'field' => array( + 0 => 'title', + ) , + 'localizable' => true, + 'unique' => true, + 'sig' => 'civicrm_group::1::title', + ) , + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_group::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/GroupContact.php b/CRM/Contact/DAO/GroupContact.php index cdcdc163a3..380588a7d3 100644 --- a/CRM/Contact/DAO/GroupContact.php +++ b/CRM/Contact/DAO/GroupContact.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contact/GroupContact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:832e42f213ced8c437cc1cb61bdf087f) + * (GenCodeChecksum:2545d3926c711a25b5075a6ac980ed99) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -256,4 +256,22 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'group_contact', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_contact_group' => array( + 'name' => 'UI_contact_group', + 'field' => array( + 0 => 'contact_id', + 1 => 'group_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_group_contact::1::contact_id::group_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/GroupContactCache.php b/CRM/Contact/DAO/GroupContactCache.php index f915d79e24..d85be450bd 100644 --- a/CRM/Contact/DAO/GroupContactCache.php +++ b/CRM/Contact/DAO/GroupContactCache.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contact/GroupContactCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:41f4797f37f93e950d1503bf08645836) + * (GenCodeChecksum:2ee24826ad267586e2e757ce3b0442a1) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -196,4 +196,22 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'group_contact_cache', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_contact_group' => array( + 'name' => 'UI_contact_group', + 'field' => array( + 0 => 'contact_id', + 1 => 'group_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_group_contact_cache::1::contact_id::group_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/GroupNesting.php b/CRM/Contact/DAO/GroupNesting.php index d09137f619..255e80ac99 100644 --- a/CRM/Contact/DAO/GroupNesting.php +++ b/CRM/Contact/DAO/GroupNesting.php @@ -188,4 +188,11 @@ class CRM_Contact_DAO_GroupNesting extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'group_nesting', $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; + } } diff --git a/CRM/Contact/DAO/GroupOrganization.php b/CRM/Contact/DAO/GroupOrganization.php index 97294bce52..718a2bfda2 100644 --- a/CRM/Contact/DAO/GroupOrganization.php +++ b/CRM/Contact/DAO/GroupOrganization.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contact/GroupOrganization.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:eb0d4093ec10c1851421ec66f88862f7) + * (GenCodeChecksum:8fcd7c11b9077c52f8d932eb20379618) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -196,4 +196,22 @@ class CRM_Contact_DAO_GroupOrganization extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'group_organization', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_group_organization' => array( + 'name' => 'UI_group_organization', + 'field' => array( + 0 => 'group_id', + 1 => 'organization_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_group_organization::1::group_id::organization_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/Relationship.php b/CRM/Contact/DAO/Relationship.php index 8dbb2fef64..5953567a02 100644 --- a/CRM/Contact/DAO/Relationship.php +++ b/CRM/Contact/DAO/Relationship.php @@ -355,4 +355,11 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'relationship', $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; + } } diff --git a/CRM/Contact/DAO/RelationshipType.php b/CRM/Contact/DAO/RelationshipType.php index c48c8c5000..16e0125fe1 100644 --- a/CRM/Contact/DAO/RelationshipType.php +++ b/CRM/Contact/DAO/RelationshipType.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contact/RelationshipType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:cb1dca1fe2365a32f72136f7aeb4b83f) + * (GenCodeChecksum:8fb00d8376af049ce62bc57ca01bc1bf) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -371,4 +371,30 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'relationship_type', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name_a_b' => array( + 'name' => 'UI_name_a_b', + 'field' => array( + 0 => 'name_a_b', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_relationship_type::1::name_a_b', + ) , + 'UI_name_b_a' => array( + 'name' => 'UI_name_b_a', + 'field' => array( + 0 => 'name_b_a', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_relationship_type::1::name_b_a', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contact/DAO/SavedSearch.php b/CRM/Contact/DAO/SavedSearch.php index 741d680ba6..f6d87c8da1 100644 --- a/CRM/Contact/DAO/SavedSearch.php +++ b/CRM/Contact/DAO/SavedSearch.php @@ -253,4 +253,11 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'saved_search', $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; + } } diff --git a/CRM/Contact/DAO/SubscriptionHistory.php b/CRM/Contact/DAO/SubscriptionHistory.php index 9b948f3404..a29c982fb9 100644 --- a/CRM/Contact/DAO/SubscriptionHistory.php +++ b/CRM/Contact/DAO/SubscriptionHistory.php @@ -275,4 +275,11 @@ class CRM_Contact_DAO_SubscriptionHistory extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'subscription_history', $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; + } } diff --git a/CRM/Contribute/DAO/Contribution.php b/CRM/Contribute/DAO/Contribution.php index 5bfadd48bf..e0285ac385 100644 --- a/CRM/Contribute/DAO/Contribution.php +++ b/CRM/Contribute/DAO/Contribution.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contribute/Contribution.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:bff397bf9cf2dc2fef96d7c5ab560158) + * (GenCodeChecksum:59c3615cae90b0580f7d77aa8343b21f) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -887,4 +887,87 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'contribution', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_contrib_payment_instrument_id' => array( + 'name' => 'UI_contrib_payment_instrument_id', + 'field' => array( + 0 => 'payment_instrument_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution::0::payment_instrument_id', + ) , + 'index_total_amount_receive_date' => array( + 'name' => 'index_total_amount_receive_date', + 'field' => array( + 0 => 'total_amount', + 1 => 'receive_date', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution::0::total_amount::receive_date', + ) , + 'index_source' => array( + 'name' => 'index_source', + 'field' => array( + 0 => 'source', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution::0::source', + ) , + 'UI_contrib_trxn_id' => array( + 'name' => 'UI_contrib_trxn_id', + 'field' => array( + 0 => 'trxn_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_contribution::1::trxn_id', + ) , + 'UI_contrib_invoice_id' => array( + 'name' => 'UI_contrib_invoice_id', + 'field' => array( + 0 => 'invoice_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_contribution::1::invoice_id', + ) , + 'index_contribution_status' => array( + 'name' => 'index_contribution_status', + 'field' => array( + 0 => 'contribution_status_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution::0::contribution_status_id', + ) , + 'received_date' => array( + 'name' => 'received_date', + 'field' => array( + 0 => 'receive_date', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution::0::receive_date', + ) , + 'check_number' => array( + 'name' => 'check_number', + 'field' => array( + 0 => 'check_number', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution::0::check_number', + ) , + 'index_creditnote_id' => array( + 'name' => 'index_creditnote_id', + 'field' => array( + 0 => 'creditnote_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution::0::creditnote_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contribute/DAO/ContributionPage.php b/CRM/Contribute/DAO/ContributionPage.php index 2509faea23..27a9fa5c2c 100644 --- a/CRM/Contribute/DAO/ContributionPage.php +++ b/CRM/Contribute/DAO/ContributionPage.php @@ -956,4 +956,11 @@ class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'contribution_page', $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; + } } diff --git a/CRM/Contribute/DAO/ContributionProduct.php b/CRM/Contribute/DAO/ContributionProduct.php index 23e12d0a11..9061090543 100644 --- a/CRM/Contribute/DAO/ContributionProduct.php +++ b/CRM/Contribute/DAO/ContributionProduct.php @@ -318,4 +318,11 @@ class CRM_Contribute_DAO_ContributionProduct extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'contribution_product', $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; + } } diff --git a/CRM/Contribute/DAO/ContributionRecur.php b/CRM/Contribute/DAO/ContributionRecur.php index 25df9f4564..5bdae065b5 100644 --- a/CRM/Contribute/DAO/ContributionRecur.php +++ b/CRM/Contribute/DAO/ContributionRecur.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionRecur.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5318b7daa057426c1bb8cdec6ed1e4b3) + * (GenCodeChecksum:a1007a4585bac4fcb04ce47535aecec0) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -716,4 +716,46 @@ class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'contribution_recur', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_contrib_trxn_id' => array( + 'name' => 'UI_contrib_trxn_id', + 'field' => array( + 0 => 'trxn_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_contribution_recur::1::trxn_id', + ) , + 'UI_contrib_invoice_id' => array( + 'name' => 'UI_contrib_invoice_id', + 'field' => array( + 0 => 'invoice_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_contribution_recur::1::invoice_id', + ) , + 'index_contribution_status' => array( + 'name' => 'index_contribution_status', + 'field' => array( + 0 => 'contribution_status_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution_recur::0::contribution_status_id', + ) , + 'UI_contribution_recur_payment_instrument_id' => array( + 'name' => 'UI_contribution_recur_payment_instrument_id', + 'field' => array( + 0 => 'payment_instrument_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution_recur::0::payment_instrument_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contribute/DAO/ContributionSoft.php b/CRM/Contribute/DAO/ContributionSoft.php index 496235ff9f..2d8f1f692b 100644 --- a/CRM/Contribute/DAO/ContributionSoft.php +++ b/CRM/Contribute/DAO/ContributionSoft.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionSoft.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a0b09af89d31819a5108b277b6ba46eb) + * (GenCodeChecksum:eb1e493dc7ff4da34167ad0828d61fd4) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -345,4 +345,20 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'contribution_soft', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_id' => array( + 'name' => 'index_id', + 'field' => array( + 0 => 'pcp_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_contribution_soft::0::pcp_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Contribute/DAO/Premium.php b/CRM/Contribute/DAO/Premium.php index 1cbda227ac..8de2ba9601 100644 --- a/CRM/Contribute/DAO/Premium.php +++ b/CRM/Contribute/DAO/Premium.php @@ -320,4 +320,11 @@ class CRM_Contribute_DAO_Premium extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'premiums', $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; + } } diff --git a/CRM/Contribute/DAO/PremiumsProduct.php b/CRM/Contribute/DAO/PremiumsProduct.php index 1b4034b7ee..65e0ca3458 100644 --- a/CRM/Contribute/DAO/PremiumsProduct.php +++ b/CRM/Contribute/DAO/PremiumsProduct.php @@ -227,4 +227,11 @@ class CRM_Contribute_DAO_PremiumsProduct extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'premiums_product', $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; + } } diff --git a/CRM/Contribute/DAO/Product.php b/CRM/Contribute/DAO/Product.php index d753f8ca95..fcfdbc7b39 100644 --- a/CRM/Contribute/DAO/Product.php +++ b/CRM/Contribute/DAO/Product.php @@ -514,4 +514,11 @@ class CRM_Contribute_DAO_Product extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'product', $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; + } } diff --git a/CRM/Contribute/DAO/Widget.php b/CRM/Contribute/DAO/Widget.php index a9c71519d5..3c57207f2e 100644 --- a/CRM/Contribute/DAO/Widget.php +++ b/CRM/Contribute/DAO/Widget.php @@ -416,4 +416,11 @@ class CRM_Contribute_DAO_Widget extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'contribution_widget', $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; + } } diff --git a/CRM/Core/DAO/ActionLog.php b/CRM/Core/DAO/ActionLog.php index d84c8dd9b8..56f97ac014 100644 --- a/CRM/Core/DAO/ActionLog.php +++ b/CRM/Core/DAO/ActionLog.php @@ -302,4 +302,11 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'action_log', $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; + } } diff --git a/CRM/Core/DAO/ActionMapping.php b/CRM/Core/DAO/ActionMapping.php index 5923366a78..c4e5387560 100644 --- a/CRM/Core/DAO/ActionMapping.php +++ b/CRM/Core/DAO/ActionMapping.php @@ -279,4 +279,11 @@ class CRM_Core_DAO_ActionMapping extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'action_mapping', $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; + } } diff --git a/CRM/Core/DAO/ActionSchedule.php b/CRM/Core/DAO/ActionSchedule.php index 7fbd77c72a..492e8775fc 100644 --- a/CRM/Core/DAO/ActionSchedule.php +++ b/CRM/Core/DAO/ActionSchedule.php @@ -827,4 +827,11 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'action_schedule', $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; + } } diff --git a/CRM/Core/DAO/Address.php b/CRM/Core/DAO/Address.php index 24d2c67de0..45b5e9bad8 100644 --- a/CRM/Core/DAO/Address.php +++ b/CRM/Core/DAO/Address.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Address.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:9538901568da81bcc055d263793c5177) + * (GenCodeChecksum:459fcbe817baa776e55ab44e3818b8eb) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -814,4 +814,52 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO { )); 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_address::0::location_type_id', + ) , + 'index_is_primary' => array( + 'name' => 'index_is_primary', + 'field' => array( + 0 => 'is_primary', + ) , + 'localizable' => false, + 'sig' => 'civicrm_address::0::is_primary', + ) , + 'index_is_billing' => array( + 'name' => 'index_is_billing', + 'field' => array( + 0 => 'is_billing', + ) , + 'localizable' => false, + 'sig' => 'civicrm_address::0::is_billing', + ) , + 'index_street_name' => array( + 'name' => 'index_street_name', + 'field' => array( + 0 => 'street_name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_address::0::street_name', + ) , + 'index_city' => array( + 'name' => 'index_city', + 'field' => array( + 0 => 'city', + ) , + 'localizable' => false, + 'sig' => 'civicrm_address::0::city', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/AddressFormat.php b/CRM/Core/DAO/AddressFormat.php index bdeebb0c34..0bdaa0e806 100644 --- a/CRM/Core/DAO/AddressFormat.php +++ b/CRM/Core/DAO/AddressFormat.php @@ -153,4 +153,11 @@ class CRM_Core_DAO_AddressFormat extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'address_format', $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; + } } diff --git a/CRM/Core/DAO/AllCoreTables.data.php b/CRM/Core/DAO/AllCoreTables.data.php index f60be7e1a8..f19c832319 100644 --- a/CRM/Core/DAO/AllCoreTables.data.php +++ b/CRM/Core/DAO/AllCoreTables.data.php @@ -24,7 +24,7 @@ | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ */ -// (GenCodeChecksum:f7ba322a546d93ae32325d4925b477f8) +// (GenCodeChecksum:fe1a575dafdc824e3ce8a7e0d7fc49bf) return array( 'CRM_Core_DAO_AddressFormat' => array( 'name' => 'AddressFormat', diff --git a/CRM/Core/DAO/Cache.php b/CRM/Core/DAO/Cache.php index f588c254a8..c0f7a4c2f3 100644 --- a/CRM/Core/DAO/Cache.php +++ b/CRM/Core/DAO/Cache.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Cache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:bd310a3a686583eeeb7e0e91edb50318) + * (GenCodeChecksum:f7e211585872f6ee2e8492ea79bbb22a) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -257,4 +257,23 @@ class CRM_Core_DAO_Cache extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'cache', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_group_path_date' => array( + 'name' => 'UI_group_path_date', + 'field' => array( + 0 => 'group_name', + 1 => 'path', + 2 => 'created_date', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_cache::1::group_name::path::created_date', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Component.php b/CRM/Core/DAO/Component.php index e4cface102..2d9ec940e9 100644 --- a/CRM/Core/DAO/Component.php +++ b/CRM/Core/DAO/Component.php @@ -176,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; + } } diff --git a/CRM/Core/DAO/Country.php b/CRM/Core/DAO/Country.php index e1550ecea9..a0c6317992 100644 --- a/CRM/Core/DAO/Country.php +++ b/CRM/Core/DAO/Country.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Country.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a24c5ddeda39cc2efe1110845d0d9484) + * (GenCodeChecksum:e01f7b6fdc1c22bcf6fbc125ea2d894a) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -298,4 +298,22 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'country', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name_iso_code' => array( + 'name' => 'UI_name_iso_code', + 'field' => array( + 0 => 'name', + 1 => 'iso_code', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_country::1::name::iso_code', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/County.php b/CRM/Core/DAO/County.php index 0b3dce74a0..833e19e120 100644 --- a/CRM/Core/DAO/County.php +++ b/CRM/Core/DAO/County.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/County.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:85404ece3f86dd6b1af99b0756b55331) + * (GenCodeChecksum:deaadd903f7cfee93f6b70fb2e9fc012) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -210,4 +210,22 @@ class CRM_Core_DAO_County extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'county', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name_state_id' => array( + 'name' => 'UI_name_state_id', + 'field' => array( + 0 => 'name', + 1 => 'state_province_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_county::1::name::state_province_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/CustomField.php b/CRM/Core/DAO/CustomField.php index 3b2e51c85a..973f23a734 100644 --- a/CRM/Core/DAO/CustomField.php +++ b/CRM/Core/DAO/CustomField.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/CustomField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1d87d12859ba3e9ad05c151a446710c8) + * (GenCodeChecksum:6c4ced0a0ac204cde5c048d37aee6057) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -661,4 +661,32 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'custom_field', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_label_custom_group_id' => array( + 'name' => 'UI_label_custom_group_id', + 'field' => array( + 0 => 'label', + 1 => 'custom_group_id', + ) , + 'localizable' => true, + 'unique' => true, + 'sig' => 'civicrm_custom_field::1::label::custom_group_id', + ) , + 'UI_name_custom_group_id' => array( + 'name' => 'UI_name_custom_group_id', + 'field' => array( + 0 => 'name', + 1 => 'custom_group_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_custom_field::1::name::custom_group_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/CustomGroup.php b/CRM/Core/DAO/CustomGroup.php index 9205336b05..7b11b4ff8e 100644 --- a/CRM/Core/DAO/CustomGroup.php +++ b/CRM/Core/DAO/CustomGroup.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/CustomGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:9b3c453f7ada933490dc68bc2b45e77b) + * (GenCodeChecksum:5e44d08da1787dd031e8e4b81c1628a5) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -489,4 +489,32 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'custom_group', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_title_extends' => array( + 'name' => 'UI_title_extends', + 'field' => array( + 0 => 'title', + 1 => 'extends', + ) , + 'localizable' => true, + 'unique' => true, + 'sig' => 'civicrm_custom_group::1::title::extends', + ) , + 'UI_name_extends' => array( + 'name' => 'UI_name_extends', + 'field' => array( + 0 => 'name', + 1 => 'extends', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_custom_group::1::name::extends', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Dashboard.php b/CRM/Core/DAO/Dashboard.php index 293427d882..b51fd74332 100644 --- a/CRM/Core/DAO/Dashboard.php +++ b/CRM/Core/DAO/Dashboard.php @@ -330,4 +330,11 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'dashboard', $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; + } } diff --git a/CRM/Core/DAO/Discount.php b/CRM/Core/DAO/Discount.php index 653b0937cf..8edba7e179 100644 --- a/CRM/Core/DAO/Discount.php +++ b/CRM/Core/DAO/Discount.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Discount.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7a25225a1380633ffa2bac34eb7f139c) + * (GenCodeChecksum:1ce69428f948066567e95645cb86254a) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -241,4 +241,31 @@ class CRM_Core_DAO_Discount extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'discount', $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_discount::0::entity_table::entity_id', + ) , + 'index_entity_option_id' => array( + 'name' => 'index_entity_option_id', + 'field' => array( + 0 => 'entity_table', + 1 => 'entity_id', + 2 => 'price_set_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_discount::0::entity_table::entity_id::price_set_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Domain.php b/CRM/Core/DAO/Domain.php index 6ffa37dab0..b59999af9f 100644 --- a/CRM/Core/DAO/Domain.php +++ b/CRM/Core/DAO/Domain.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Domain.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:aab20d05e6c3ebe8f6eb8a7de50190a0) + * (GenCodeChecksum:50edefeb24aa64d2125df018985cd701) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -286,4 +286,21 @@ class CRM_Core_DAO_Domain extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'domain', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_domain::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Email.php b/CRM/Core/DAO/Email.php index 4b8c2959cd..7f02cf5555 100644 --- a/CRM/Core/DAO/Email.php +++ b/CRM/Core/DAO/Email.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Email.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:33bf5e19c3136f4860d3d078a3fbd68d) + * (GenCodeChecksum:08f53d44527d7d174b4aa1bd545b028c) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -372,4 +372,44 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'email', $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_email::0::location_type_id', + ) , + 'UI_email' => array( + 'name' => 'UI_email', + 'field' => array( + 0 => 'email', + ) , + 'localizable' => false, + 'sig' => 'civicrm_email::0::email', + ) , + 'index_is_primary' => array( + 'name' => 'index_is_primary', + 'field' => array( + 0 => 'is_primary', + ) , + 'localizable' => false, + 'sig' => 'civicrm_email::0::is_primary', + ) , + 'index_is_billing' => array( + 'name' => 'index_is_billing', + 'field' => array( + 0 => 'is_billing', + ) , + 'localizable' => false, + 'sig' => 'civicrm_email::0::is_billing', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/EntityFile.php b/CRM/Core/DAO/EntityFile.php index 4bdd2ebf9e..c8c2a55c31 100644 --- a/CRM/Core/DAO/EntityFile.php +++ b/CRM/Core/DAO/EntityFile.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/EntityFile.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:f1092b243ba0c368c41d7b64dc90e115) + * (GenCodeChecksum:354c22131251fde259f5b796e102fccf) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -205,4 +205,31 @@ class CRM_Core_DAO_EntityFile extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'entity_file', $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_entity_file::0::entity_table::entity_id', + ) , + 'index_entity_file_id' => array( + 'name' => 'index_entity_file_id', + 'field' => array( + 0 => 'entity_table', + 1 => 'entity_id', + 2 => 'file_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_entity_file::0::entity_table::entity_id::file_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/EntityTag.php b/CRM/Core/DAO/EntityTag.php index 87538eac8c..ec0eb42f42 100644 --- a/CRM/Core/DAO/EntityTag.php +++ b/CRM/Core/DAO/EntityTag.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/EntityTag.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0a4ce003543cfc6ff15c6807b3ff1106) + * (GenCodeChecksum:cb9ae7d6e83dd7423a431498f8dee5c8) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -217,4 +217,23 @@ class CRM_Core_DAO_EntityTag extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'entity_tag', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_entity_id_entity_table_tag_id' => array( + 'name' => 'UI_entity_id_entity_table_tag_id', + 'field' => array( + 0 => 'entity_id', + 1 => 'entity_table', + 2 => 'tag_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_entity_tag::1::entity_id::entity_table::tag_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Extension.php b/CRM/Core/DAO/Extension.php index 08c2f70d0d..83194dcb07 100644 --- a/CRM/Core/DAO/Extension.php +++ b/CRM/Core/DAO/Extension.php @@ -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; + } } diff --git a/CRM/Core/DAO/File.php b/CRM/Core/DAO/File.php index be191b0329..16f25a604f 100644 --- a/CRM/Core/DAO/File.php +++ b/CRM/Core/DAO/File.php @@ -239,4 +239,11 @@ class CRM_Core_DAO_File extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'file', $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; + } } diff --git a/CRM/Core/DAO/IM.php b/CRM/Core/DAO/IM.php index c2a900a934..ec3883a16e 100644 --- a/CRM/Core/DAO/IM.php +++ b/CRM/Core/DAO/IM.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/IM.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1898c44afea9d407ac2d916b2bc2bb1c) + * (GenCodeChecksum:fe754a68bdda23ca881ac6425750eeba) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -273,4 +273,44 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'im', $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_im::0::location_type_id', + ) , + 'UI_provider_id' => array( + 'name' => 'UI_provider_id', + 'field' => array( + 0 => 'provider_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_im::0::provider_id', + ) , + 'index_is_primary' => array( + 'name' => 'index_is_primary', + 'field' => array( + 0 => 'is_primary', + ) , + 'localizable' => false, + 'sig' => 'civicrm_im::0::is_primary', + ) , + 'index_is_billing' => array( + 'name' => 'index_is_billing', + 'field' => array( + 0 => 'is_billing', + ) , + 'localizable' => false, + 'sig' => 'civicrm_im::0::is_billing', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Job.php b/CRM/Core/DAO/Job.php index ca81225b48..18149b5428 100644 --- a/CRM/Core/DAO/Job.php +++ b/CRM/Core/DAO/Job.php @@ -343,4 +343,11 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'job', $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; + } } diff --git a/CRM/Core/DAO/JobLog.php b/CRM/Core/DAO/JobLog.php index d4beee07d1..caf58d8c82 100644 --- a/CRM/Core/DAO/JobLog.php +++ b/CRM/Core/DAO/JobLog.php @@ -276,4 +276,11 @@ class CRM_Core_DAO_JobLog extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'job_log', $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; + } } diff --git a/CRM/Core/DAO/LocBlock.php b/CRM/Core/DAO/LocBlock.php index 23e137fba0..e4afbe8607 100644 --- a/CRM/Core/DAO/LocBlock.php +++ b/CRM/Core/DAO/LocBlock.php @@ -278,4 +278,11 @@ class CRM_Core_DAO_LocBlock extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'loc_block', $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; + } } diff --git a/CRM/Core/DAO/LocationType.php b/CRM/Core/DAO/LocationType.php index fc4599a7df..4c09e883ef 100644 --- a/CRM/Core/DAO/LocationType.php +++ b/CRM/Core/DAO/LocationType.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/LocationType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1dc879f229f27d2b4381fb98ebc7b734) + * (GenCodeChecksum:630f891b9d0d1621cdbf3254e8536d4f) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -257,4 +257,21 @@ class CRM_Core_DAO_LocationType extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'location_type', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_location_type::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Log.php b/CRM/Core/DAO/Log.php index 77cde3b0fa..3a0b9685d6 100644 --- a/CRM/Core/DAO/Log.php +++ b/CRM/Core/DAO/Log.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Log.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:8ba1221b34b495c2238ecf5197e5a47f) + * (GenCodeChecksum:a286415e35f08ea36fea4774cc744758) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -237,4 +237,21 @@ class CRM_Core_DAO_Log extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'log', $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_log::0::entity_table::entity_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/MailSettings.php b/CRM/Core/DAO/MailSettings.php index 90cb312a21..1af5ad9099 100644 --- a/CRM/Core/DAO/MailSettings.php +++ b/CRM/Core/DAO/MailSettings.php @@ -391,4 +391,11 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mail_settings', $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; + } } diff --git a/CRM/Core/DAO/Managed.php b/CRM/Core/DAO/Managed.php index e188758ab3..d1d2e95178 100644 --- a/CRM/Core/DAO/Managed.php +++ b/CRM/Core/DAO/Managed.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Managed.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1ea17fedbb00e336fb0ed9f830990aed) + * (GenCodeChecksum:49d518366db653a210558061604fb8cf) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -234,4 +234,30 @@ class CRM_Core_DAO_Managed extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'managed', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_managed_module_name' => array( + 'name' => 'UI_managed_module_name', + 'field' => array( + 0 => 'module', + 1 => 'name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_managed::0::module::name', + ) , + 'UI_managed_entity' => array( + 'name' => 'UI_managed_entity', + 'field' => array( + 0 => 'entity_type', + 1 => 'entity_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_managed::0::entity_type::entity_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Mapping.php b/CRM/Core/DAO/Mapping.php index 9fc4863d63..b9d66a767a 100644 --- a/CRM/Core/DAO/Mapping.php +++ b/CRM/Core/DAO/Mapping.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Mapping.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d1765f6068ff03162b649e2cabbcff0b) + * (GenCodeChecksum:6ebbd7d124ddee297d44168f135ce38b) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -196,4 +196,20 @@ class CRM_Core_DAO_Mapping extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mapping', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_mapping::0::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/MappingField.php b/CRM/Core/DAO/MappingField.php index 38f839524f..7b22b73f40 100644 --- a/CRM/Core/DAO/MappingField.php +++ b/CRM/Core/DAO/MappingField.php @@ -401,4 +401,11 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mapping_field', $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; + } } diff --git a/CRM/Core/DAO/Menu.php b/CRM/Core/DAO/Menu.php index c602530698..a2d747e647 100644 --- a/CRM/Core/DAO/Menu.php +++ b/CRM/Core/DAO/Menu.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Menu.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4c287373462fde7a27f6e6b4388f19bf) + * (GenCodeChecksum:d8e5fdbc1e7295d660e44d94a81db6e7) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -502,4 +502,22 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'menu', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_path_domain_id' => array( + 'name' => 'UI_path_domain_id', + 'field' => array( + 0 => 'path', + 1 => 'domain_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_menu::1::path::domain_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/MessageTemplate.php b/CRM/Core/DAO/MessageTemplate.php index b11ff291aa..0cad129c32 100644 --- a/CRM/Core/DAO/MessageTemplate.php +++ b/CRM/Core/DAO/MessageTemplate.php @@ -310,4 +310,11 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'msg_template', $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; + } } diff --git a/CRM/Core/DAO/Navigation.php b/CRM/Core/DAO/Navigation.php index 3e9030d270..296c7f648c 100644 --- a/CRM/Core/DAO/Navigation.php +++ b/CRM/Core/DAO/Navigation.php @@ -334,4 +334,11 @@ class CRM_Core_DAO_Navigation extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'navigation', $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; + } } diff --git a/CRM/Core/DAO/Note.php b/CRM/Core/DAO/Note.php index 9daa0ec195..56c776d517 100644 --- a/CRM/Core/DAO/Note.php +++ b/CRM/Core/DAO/Note.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Note.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ec8b51e4a3440e6fb1979540b5f563cb) + * (GenCodeChecksum:9f5e4f2a7e73840743efc268ffb4dbfd) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -293,4 +293,21 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'note', $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_note::0::entity_table::entity_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/OpenID.php b/CRM/Core/DAO/OpenID.php index ad1ab90828..06192ee60e 100644 --- a/CRM/Core/DAO/OpenID.php +++ b/CRM/Core/DAO/OpenID.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/OpenID.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b249eab35ab06ddd2ff558150552df97) + * (GenCodeChecksum:cf502fe1aae4bbe85faa570c2c341336) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -241,4 +241,29 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'openid', $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_openid::0::location_type_id', + ) , + 'UI_openid' => array( + 'name' => 'UI_openid', + 'field' => array( + 0 => 'openid', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_openid::1::openid', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/OptionGroup.php b/CRM/Core/DAO/OptionGroup.php index 0ea1b514d8..9340fbda9e 100644 --- a/CRM/Core/DAO/OptionGroup.php +++ b/CRM/Core/DAO/OptionGroup.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/OptionGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:378d8ade1b468e91395484a309f98524) + * (GenCodeChecksum:4f26b702ecd914e653257f0676896d87) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -262,4 +262,21 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'option_group', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_option_group::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/OptionValue.php b/CRM/Core/DAO/OptionValue.php index ab4f884c1a..e09985ef66 100644 --- a/CRM/Core/DAO/OptionValue.php +++ b/CRM/Core/DAO/OptionValue.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/OptionValue.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2863f4578cec9183c8577517032d039d) + * (GenCodeChecksum:8cf699b034cbd9d7b8fe0a69250a79ba) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -477,4 +477,30 @@ class CRM_Core_DAO_OptionValue extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'option_value', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_option_group_id_value' => array( + 'name' => 'index_option_group_id_value', + 'field' => array( + 0 => 'value(128)', + 1 => 'option_group_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_option_value::0::value(128)::option_group_id', + ) , + 'index_option_group_id_name' => array( + 'name' => 'index_option_group_id_name', + 'field' => array( + 0 => 'name(128)', + 1 => 'option_group_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_option_value::0::name(128)::option_group_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Persistent.php b/CRM/Core/DAO/Persistent.php index 6f525a0e40..b8b5b1ea36 100644 --- a/CRM/Core/DAO/Persistent.php +++ b/CRM/Core/DAO/Persistent.php @@ -208,4 +208,11 @@ class CRM_Core_DAO_Persistent extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'persistent', $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; + } } diff --git a/CRM/Core/DAO/Phone.php b/CRM/Core/DAO/Phone.php index 3a4d7a5fa8..7c594b5d9c 100644 --- a/CRM/Core/DAO/Phone.php +++ b/CRM/Core/DAO/Phone.php @@ -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'; @@ -333,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; + } } diff --git a/CRM/Core/DAO/PreferencesDate.php b/CRM/Core/DAO/PreferencesDate.php index ec1ed7333b..1f8b3b6602 100644 --- a/CRM/Core/DAO/PreferencesDate.php +++ b/CRM/Core/DAO/PreferencesDate.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/PreferencesDate.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c6c3c0c91ca3f33fa11b89fb6e2dd704) + * (GenCodeChecksum:50b4071bc8734a772c01b450d22f5920) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -242,4 +242,20 @@ class CRM_Core_DAO_PreferencesDate extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'preferences_date', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_name' => array( + 'name' => 'index_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_preferences_date::0::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/PrevNextCache.php b/CRM/Core/DAO/PrevNextCache.php index 2b63942b6d..7ff6035743 100644 --- a/CRM/Core/DAO/PrevNextCache.php +++ b/CRM/Core/DAO/PrevNextCache.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/PrevNextCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c079d78b4553940fd29dd4e1f7e19477) + * (GenCodeChecksum:edf9dd4b38ca08a34dbc6990ac954af2) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -235,4 +235,24 @@ class CRM_Core_DAO_PrevNextCache extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'prevnext_cache', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_all' => array( + 'name' => 'index_all', + 'field' => array( + 0 => 'cacheKey', + 1 => 'entity_id1', + 2 => 'entity_id2', + 3 => 'entity_table', + 4 => 'is_selected', + ) , + 'localizable' => false, + 'sig' => 'civicrm_prevnext_cache::0::cacheKey::entity_id1::entity_id2::entity_table::is_selected', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/PrintLabel.php b/CRM/Core/DAO/PrintLabel.php index 4903513134..c2e379a788 100644 --- a/CRM/Core/DAO/PrintLabel.php +++ b/CRM/Core/DAO/PrintLabel.php @@ -333,4 +333,11 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'print_label', $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; + } } diff --git a/CRM/Core/DAO/RecurringEntity.php b/CRM/Core/DAO/RecurringEntity.php index 52eb34e799..81504b5909 100644 --- a/CRM/Core/DAO/RecurringEntity.php +++ b/CRM/Core/DAO/RecurringEntity.php @@ -205,4 +205,11 @@ class CRM_Core_DAO_RecurringEntity extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'recurring_entity', $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; + } } diff --git a/CRM/Core/DAO/Setting.php b/CRM/Core/DAO/Setting.php index f3ace1c23c..7648107cb6 100644 --- a/CRM/Core/DAO/Setting.php +++ b/CRM/Core/DAO/Setting.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Setting.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:03045a230d0ba9aa60bf9dd4818cb12e) + * (GenCodeChecksum:a9b0b7aaf6ae42696ce402c1ff9acb89) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -300,4 +300,23 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'setting', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_domain_contact_name' => array( + 'name' => 'index_domain_contact_name', + 'field' => array( + 0 => 'domain_id', + 1 => 'contact_id', + 2 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_setting::1::domain_id::contact_id::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/StateProvince.php b/CRM/Core/DAO/StateProvince.php index 5d0ed08e32..ef944d7736 100644 --- a/CRM/Core/DAO/StateProvince.php +++ b/CRM/Core/DAO/StateProvince.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/StateProvince.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:baa81154c9779b2e56e78504e7c9b74c) + * (GenCodeChecksum:7688143f6e0d809b020a3153f60aff7e) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -210,4 +210,22 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'state_province', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name_country_id' => array( + 'name' => 'UI_name_country_id', + 'field' => array( + 0 => 'name', + 1 => 'country_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_state_province::1::name::country_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/StatusPreference.php b/CRM/Core/DAO/StatusPreference.php index 9ce90e47d8..fd3b58477c 100644 --- a/CRM/Core/DAO/StatusPreference.php +++ b/CRM/Core/DAO/StatusPreference.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/StatusPreference.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1499bd12f161a041bdb9ccfd2595cd94) + * (GenCodeChecksum:6a9e433b487d14f9b8e036f8491e6a9c) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -281,4 +281,20 @@ class CRM_Core_DAO_StatusPreference extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'status_pref', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_status_pref_name' => array( + 'name' => 'UI_status_pref_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_status_pref::0::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/SystemLog.php b/CRM/Core/DAO/SystemLog.php index 0fb228fc6c..74b20b4bd0 100644 --- a/CRM/Core/DAO/SystemLog.php +++ b/CRM/Core/DAO/SystemLog.php @@ -242,4 +242,11 @@ class CRM_Core_DAO_SystemLog extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'system_log', $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; + } } diff --git a/CRM/Core/DAO/Tag.php b/CRM/Core/DAO/Tag.php index 4182b963c7..bcbf74b548 100644 --- a/CRM/Core/DAO/Tag.php +++ b/CRM/Core/DAO/Tag.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Tag.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:44541277221c451f8aa93c6170180c44) + * (GenCodeChecksum:eb22ef992569566021a7faeaf43f0c25) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -328,4 +328,21 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'tag', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_tag::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Timezone.php b/CRM/Core/DAO/Timezone.php index 56b22d5f21..de019cb6cc 100644 --- a/CRM/Core/DAO/Timezone.php +++ b/CRM/Core/DAO/Timezone.php @@ -237,4 +237,11 @@ class CRM_Core_DAO_Timezone extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'timezone', $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; + } } diff --git a/CRM/Core/DAO/UFField.php b/CRM/Core/DAO/UFField.php index f24c8a4c28..29e55b4509 100644 --- a/CRM/Core/DAO/UFField.php +++ b/CRM/Core/DAO/UFField.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/UFField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:55945830861723b23a20699aa3d3deef) + * (GenCodeChecksum:4777c5b97760d4bd4b7138468d18ded5) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -471,4 +471,20 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'uf_field', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'IX_website_type_id' => array( + 'name' => 'IX_website_type_id', + 'field' => array( + 0 => 'website_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_uf_field::0::website_type_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/UFGroup.php b/CRM/Core/DAO/UFGroup.php index ca1cea9321..b8cf93ba88 100644 --- a/CRM/Core/DAO/UFGroup.php +++ b/CRM/Core/DAO/UFGroup.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/UFGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4f856c03d64c4ca41521d4591d49e70f) + * (GenCodeChecksum:d716aaa0c1ca4a43bbd533faef6d94c7) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -538,4 +538,21 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'uf_group', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_uf_group::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/UFJoin.php b/CRM/Core/DAO/UFJoin.php index 33e73b3529..a85d2e6e5e 100644 --- a/CRM/Core/DAO/UFJoin.php +++ b/CRM/Core/DAO/UFJoin.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/UFJoin.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:eca8ea8e182d1cd8e3e21770ae28438e) + * (GenCodeChecksum:fde4a7125f1dd6d9e5081b534f151db6) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -285,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; + } } diff --git a/CRM/Core/DAO/UFMatch.php b/CRM/Core/DAO/UFMatch.php index ca85a72994..b81569bbdf 100644 --- a/CRM/Core/DAO/UFMatch.php +++ b/CRM/Core/DAO/UFMatch.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/UFMatch.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:dc761cd7cd2455417d981e8c3542cd28) + * (GenCodeChecksum:c83bd8ebf7ad3a71d2bdaae1767cdcbb) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -245,4 +245,40 @@ class CRM_Core_DAO_UFMatch extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'uf_match', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'I_civicrm_uf_match_uf_id' => array( + 'name' => 'I_civicrm_uf_match_uf_id', + 'field' => array( + 0 => 'uf_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_uf_match::0::uf_id', + ) , + 'UI_uf_name_domain_id' => array( + 'name' => 'UI_uf_name_domain_id', + 'field' => array( + 0 => 'uf_name', + 1 => 'domain_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_uf_match::1::uf_name::domain_id', + ) , + 'UI_contact_domain_id' => array( + 'name' => 'UI_contact_domain_id', + 'field' => array( + 0 => 'contact_id', + 1 => 'domain_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_uf_match::1::contact_id::domain_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Website.php b/CRM/Core/DAO/Website.php index 96b96f1af6..4a7ae32aa5 100644 --- a/CRM/Core/DAO/Website.php +++ b/CRM/Core/DAO/Website.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/Website.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:acc04540983491cf9eac68c43b6d1c87) + * (GenCodeChecksum:7f68af3a95bfdc5dc7421efef27c0511) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -217,4 +217,20 @@ class CRM_Core_DAO_Website extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'website', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_website_type_id' => array( + 'name' => 'UI_website_type_id', + 'field' => array( + 0 => 'website_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_website::0::website_type_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/WordReplacement.php b/CRM/Core/DAO/WordReplacement.php index d7c96f377d..6db5e7df79 100644 --- a/CRM/Core/DAO/WordReplacement.php +++ b/CRM/Core/DAO/WordReplacement.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Core/WordReplacement.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:9e67d9e8dbcc13ce3f943a19c77bbdfa) + * (GenCodeChecksum:550a500d2c0a05672ebf9e2a47d54d69) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -249,4 +249,22 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'word_replacement', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_domain_find' => array( + 'name' => 'UI_domain_find', + 'field' => array( + 0 => 'domain_id', + 1 => 'find_word', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_word_replacement::1::domain_id::find_word', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Core/DAO/Worldregion.php b/CRM/Core/DAO/Worldregion.php index 6630503bdb..81c3f641d6 100644 --- a/CRM/Core/DAO/Worldregion.php +++ b/CRM/Core/DAO/Worldregion.php @@ -159,4 +159,11 @@ class CRM_Core_DAO_Worldregion extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'worldregion', $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; + } } diff --git a/CRM/Cxn/DAO/Cxn.php b/CRM/Cxn/DAO/Cxn.php index dde95b3c4c..42778d9a85 100644 --- a/CRM/Cxn/DAO/Cxn.php +++ b/CRM/Cxn/DAO/Cxn.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Cxn/Cxn.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5293636371f8d0062ac30e2626739e63) + * (GenCodeChecksum:7837c80596c2e6d8682a48cffcb6a4d3) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -308,4 +308,30 @@ class CRM_Cxn_DAO_Cxn extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'cxn', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_appid' => array( + 'name' => 'UI_appid', + 'field' => array( + 0 => 'app_guid', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_cxn::1::app_guid', + ) , + 'UI_keypair_cxnid' => array( + 'name' => 'UI_keypair_cxnid', + 'field' => array( + 0 => 'cxn_guid', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_cxn::1::cxn_guid', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Dedupe/DAO/Exception.php b/CRM/Dedupe/DAO/Exception.php index 1b9208d3ab..3b6b7e52b1 100644 --- a/CRM/Dedupe/DAO/Exception.php +++ b/CRM/Dedupe/DAO/Exception.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Dedupe/Exception.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5ab409ab490ba266b8cff7ba387624fa) + * (GenCodeChecksum:5e9f138ebec5aa2fcfd30120dffacdf5) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -186,4 +186,22 @@ class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'dedupe_exception', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_contact_id1_contact_id2' => array( + 'name' => 'UI_contact_id1_contact_id2', + 'field' => array( + 0 => 'contact_id1', + 1 => 'contact_id2', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_dedupe_exception::1::contact_id1::contact_id2', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Dedupe/DAO/Rule.php b/CRM/Dedupe/DAO/Rule.php index 4ece690fb4..924e230f52 100644 --- a/CRM/Dedupe/DAO/Rule.php +++ b/CRM/Dedupe/DAO/Rule.php @@ -246,4 +246,11 @@ class CRM_Dedupe_DAO_Rule extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'dedupe_rule', $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; + } } diff --git a/CRM/Dedupe/DAO/RuleGroup.php b/CRM/Dedupe/DAO/RuleGroup.php index 1fba441ffe..b662b02795 100644 --- a/CRM/Dedupe/DAO/RuleGroup.php +++ b/CRM/Dedupe/DAO/RuleGroup.php @@ -267,4 +267,11 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'dedupe_rule_group', $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; + } } diff --git a/CRM/Event/Cart/DAO/Cart.php b/CRM/Event/Cart/DAO/Cart.php index 9cc495770e..568bb3f0e1 100644 --- a/CRM/Event/Cart/DAO/Cart.php +++ b/CRM/Event/Cart/DAO/Cart.php @@ -182,4 +182,11 @@ class CRM_Event_Cart_DAO_Cart extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'event_carts', $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; + } } diff --git a/CRM/Event/Cart/DAO/EventInCart.php b/CRM/Event/Cart/DAO/EventInCart.php index cf2411f60f..3178c52bde 100644 --- a/CRM/Event/Cart/DAO/EventInCart.php +++ b/CRM/Event/Cart/DAO/EventInCart.php @@ -186,4 +186,11 @@ class CRM_Event_Cart_DAO_EventInCart extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'events_in_carts', $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; + } } diff --git a/CRM/Event/DAO/Event.php b/CRM/Event/DAO/Event.php index b4aa0495ce..54734c3b05 100644 --- a/CRM/Event/DAO/Event.php +++ b/CRM/Event/DAO/Event.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Event/Event.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d83e7e01c63245b818500f9eb0e98502) + * (GenCodeChecksum:6c0950f3a5f6305f8d7e0a05d4703018) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -1571,4 +1571,36 @@ class CRM_Event_DAO_Event extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'event', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_event_type_id' => array( + 'name' => 'index_event_type_id', + 'field' => array( + 0 => 'event_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_event::0::event_type_id', + ) , + 'index_participant_listing_id' => array( + 'name' => 'index_participant_listing_id', + 'field' => array( + 0 => 'participant_listing_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_event::0::participant_listing_id', + ) , + 'index_parent_event_id' => array( + 'name' => 'index_parent_event_id', + 'field' => array( + 0 => 'parent_event_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_event::0::parent_event_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Event/DAO/Participant.php b/CRM/Event/DAO/Participant.php index 1511d10c7d..9142d60ba4 100644 --- a/CRM/Event/DAO/Participant.php +++ b/CRM/Event/DAO/Participant.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Event/Participant.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:cb95d1337bbf4098362e0808dbbdeabf) + * (GenCodeChecksum:89138cc7e79eac37b1b499084956428f) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -580,4 +580,28 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'participant', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_status_id' => array( + 'name' => 'index_status_id', + 'field' => array( + 0 => 'status_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_participant::0::status_id', + ) , + 'index_role_id' => array( + 'name' => 'index_role_id', + 'field' => array( + 0 => 'role_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_participant::0::role_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Event/DAO/ParticipantPayment.php b/CRM/Event/DAO/ParticipantPayment.php index 5dc8a4c8a7..ca92fc99c0 100644 --- a/CRM/Event/DAO/ParticipantPayment.php +++ b/CRM/Event/DAO/ParticipantPayment.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Event/ParticipantPayment.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:6e45de066d601172a59c64752f11558a) + * (GenCodeChecksum:293a5e4f208de9a01639960975850cd4) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -188,4 +188,22 @@ class CRM_Event_DAO_ParticipantPayment extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'participant_payment', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_contribution_participant' => array( + 'name' => 'UI_contribution_participant', + 'field' => array( + 0 => 'contribution_id', + 1 => 'participant_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_participant_payment::1::contribution_id::participant_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Event/DAO/ParticipantStatusType.php b/CRM/Event/DAO/ParticipantStatusType.php index 76a4245c7e..a902d4432f 100644 --- a/CRM/Event/DAO/ParticipantStatusType.php +++ b/CRM/Event/DAO/ParticipantStatusType.php @@ -291,4 +291,11 @@ class CRM_Event_DAO_ParticipantStatusType extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'participant_status_type', $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; + } } diff --git a/CRM/Financial/DAO/Currency.php b/CRM/Financial/DAO/Currency.php index b0b322365b..52cf12bedc 100644 --- a/CRM/Financial/DAO/Currency.php +++ b/CRM/Financial/DAO/Currency.php @@ -228,4 +228,11 @@ class CRM_Financial_DAO_Currency extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'currency', $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; + } } diff --git a/CRM/Financial/DAO/EntityFinancialAccount.php b/CRM/Financial/DAO/EntityFinancialAccount.php index 1352373442..db09e2fce5 100644 --- a/CRM/Financial/DAO/EntityFinancialAccount.php +++ b/CRM/Financial/DAO/EntityFinancialAccount.php @@ -243,4 +243,11 @@ class CRM_Financial_DAO_EntityFinancialAccount extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'entity_financial_account', $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; + } } diff --git a/CRM/Financial/DAO/EntityFinancialTrxn.php b/CRM/Financial/DAO/EntityFinancialTrxn.php index 8311bb3380..dc94113815 100644 --- a/CRM/Financial/DAO/EntityFinancialTrxn.php +++ b/CRM/Financial/DAO/EntityFinancialTrxn.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Financial/EntityFinancialTrxn.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ebf620763b584524906dc13f45a3fbdf) + * (GenCodeChecksum:8650c2685e9d125bed6f9b65ce208621) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -232,4 +232,28 @@ class CRM_Financial_DAO_EntityFinancialTrxn extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'entity_financial_trxn', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_entity_financial_trxn_entity_table' => array( + 'name' => 'UI_entity_financial_trxn_entity_table', + 'field' => array( + 0 => 'entity_table', + ) , + 'localizable' => false, + 'sig' => 'civicrm_entity_financial_trxn::0::entity_table', + ) , + 'UI_entity_financial_trxn_entity_id' => array( + 'name' => 'UI_entity_financial_trxn_entity_id', + 'field' => array( + 0 => 'entity_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_entity_financial_trxn::0::entity_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Financial/DAO/FinancialAccount.php b/CRM/Financial/DAO/FinancialAccount.php index 9a39b56df5..ec43d41a2f 100644 --- a/CRM/Financial/DAO/FinancialAccount.php +++ b/CRM/Financial/DAO/FinancialAccount.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Financial/FinancialAccount.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:693d827c5ef7f0f4644ce9c71041c1e3) + * (GenCodeChecksum:4b1497d1607b10f8eec89c101665cd1d) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -409,4 +409,21 @@ class CRM_Financial_DAO_FinancialAccount extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'financial_account', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_financial_account::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Financial/DAO/FinancialItem.php b/CRM/Financial/DAO/FinancialItem.php index d15a5becdb..82d71822af 100644 --- a/CRM/Financial/DAO/FinancialItem.php +++ b/CRM/Financial/DAO/FinancialItem.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Financial/FinancialItem.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:009860f02e86ddf541f553766597e0c6) + * (GenCodeChecksum:95e199969f4ff93ccae635fb7e0d30f2) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -364,4 +364,37 @@ class CRM_Financial_DAO_FinancialItem extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'financial_item', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'IX_created_date' => array( + 'name' => 'IX_created_date', + 'field' => array( + 0 => 'created_date', + ) , + 'localizable' => false, + 'sig' => 'civicrm_financial_item::0::created_date', + ) , + 'IX_transaction_date' => array( + 'name' => 'IX_transaction_date', + 'field' => array( + 0 => 'transaction_date', + ) , + 'localizable' => false, + 'sig' => 'civicrm_financial_item::0::transaction_date', + ) , + 'index_entity_id_entity_table' => array( + 'name' => 'index_entity_id_entity_table', + 'field' => array( + 0 => 'entity_id', + 1 => 'entity_table', + ) , + 'localizable' => false, + 'sig' => 'civicrm_financial_item::0::entity_id::entity_table', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Financial/DAO/FinancialTrxn.php b/CRM/Financial/DAO/FinancialTrxn.php index 82b9a890ac..ba5d1961b9 100644 --- a/CRM/Financial/DAO/FinancialTrxn.php +++ b/CRM/Financial/DAO/FinancialTrxn.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Financial/FinancialTrxn.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:84188ea8db9380a96a74a4e577cb8b93) + * (GenCodeChecksum:68f0081011769a1c3286c7d7a74324e3) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -497,4 +497,36 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'financial_trxn', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_ftrxn_trxn_id' => array( + 'name' => 'UI_ftrxn_trxn_id', + 'field' => array( + 0 => 'trxn_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_financial_trxn::0::trxn_id', + ) , + 'UI_ftrxn_payment_instrument_id' => array( + 'name' => 'UI_ftrxn_payment_instrument_id', + 'field' => array( + 0 => 'payment_instrument_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_financial_trxn::0::payment_instrument_id', + ) , + 'UI_ftrxn_check_number' => array( + 'name' => 'UI_ftrxn_check_number', + 'field' => array( + 0 => 'check_number', + ) , + 'localizable' => false, + 'sig' => 'civicrm_financial_trxn::0::check_number', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Financial/DAO/FinancialType.php b/CRM/Financial/DAO/FinancialType.php index 57cd5eecc4..3be6e3a6cf 100644 --- a/CRM/Financial/DAO/FinancialType.php +++ b/CRM/Financial/DAO/FinancialType.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Financial/FinancialType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:286b2e763395441774d1a91db61da8ca) + * (GenCodeChecksum:9d787931917508983d68631821eea721) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -228,4 +228,21 @@ class CRM_Financial_DAO_FinancialType extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'financial_type', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_id' => array( + 'name' => 'UI_id', + 'field' => array( + 0 => 'id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_financial_type::1::id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Financial/DAO/PaymentProcessor.php b/CRM/Financial/DAO/PaymentProcessor.php index cf099bd5d6..7047ecfae3 100644 --- a/CRM/Financial/DAO/PaymentProcessor.php +++ b/CRM/Financial/DAO/PaymentProcessor.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Financial/PaymentProcessor.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d638c879011835041875c04db5831748) + * (GenCodeChecksum:0e75917439817823f9c6d99cd640ff98) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -538,4 +538,23 @@ class CRM_Financial_DAO_PaymentProcessor extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'payment_processor', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name_test_domain_id' => array( + 'name' => 'UI_name_test_domain_id', + 'field' => array( + 0 => 'name', + 1 => 'is_test', + 2 => 'domain_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_payment_processor::1::name::is_test::domain_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Financial/DAO/PaymentProcessorType.php b/CRM/Financial/DAO/PaymentProcessorType.php index 0be63085f5..f98f34e9d4 100644 --- a/CRM/Financial/DAO/PaymentProcessorType.php +++ b/CRM/Financial/DAO/PaymentProcessorType.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Financial/PaymentProcessorType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:db09edc5cc1a18facd824b62fe4d4061) + * (GenCodeChecksum:b47064fa57473507062b1e69983ccc52) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -508,4 +508,21 @@ class CRM_Financial_DAO_PaymentProcessorType extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'payment_processor_type', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_payment_processor_type::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Financial/DAO/PaymentToken.php b/CRM/Financial/DAO/PaymentToken.php index 498aa9f9ef..d5fe14b10f 100644 --- a/CRM/Financial/DAO/PaymentToken.php +++ b/CRM/Financial/DAO/PaymentToken.php @@ -364,4 +364,11 @@ class CRM_Financial_DAO_PaymentToken extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'payment_token', $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; + } } diff --git a/CRM/Friend/DAO/Friend.php b/CRM/Friend/DAO/Friend.php index 849e9bbd35..186a78673f 100644 --- a/CRM/Friend/DAO/Friend.php +++ b/CRM/Friend/DAO/Friend.php @@ -327,4 +327,11 @@ class CRM_Friend_DAO_Friend extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'tell_friend', $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; + } } diff --git a/CRM/Grant/DAO/Grant.php b/CRM/Grant/DAO/Grant.php index 0e2b41ae67..f5a4372a52 100644 --- a/CRM/Grant/DAO/Grant.php +++ b/CRM/Grant/DAO/Grant.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Grant/Grant.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2abbee941ab414e5e67978a55a5bb2ee) + * (GenCodeChecksum:600fc71093543f1c7b31ad663f2325c6) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -507,4 +507,28 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'grant', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_grant_type_id' => array( + 'name' => 'index_grant_type_id', + 'field' => array( + 0 => 'grant_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_grant::0::grant_type_id', + ) , + 'index_status_id' => array( + 'name' => 'index_status_id', + 'field' => array( + 0 => 'status_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_grant::0::status_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Mailing/DAO/BouncePattern.php b/CRM/Mailing/DAO/BouncePattern.php index 1b8db53db7..4901666cca 100644 --- a/CRM/Mailing/DAO/BouncePattern.php +++ b/CRM/Mailing/DAO/BouncePattern.php @@ -185,4 +185,11 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_bounce_pattern', $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; + } } diff --git a/CRM/Mailing/DAO/BounceType.php b/CRM/Mailing/DAO/BounceType.php index a7be1c630f..0c358e49d2 100644 --- a/CRM/Mailing/DAO/BounceType.php +++ b/CRM/Mailing/DAO/BounceType.php @@ -189,4 +189,11 @@ class CRM_Mailing_DAO_BounceType extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_bounce_type', $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; + } } diff --git a/CRM/Mailing/DAO/Component.php b/CRM/Mailing/DAO/Component.php index ad1942964d..589a09268b 100644 --- a/CRM/Mailing/DAO/Component.php +++ b/CRM/Mailing/DAO/Component.php @@ -267,4 +267,11 @@ class CRM_Mailing_DAO_Component extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_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; + } } diff --git a/CRM/Mailing/DAO/Mailing.php b/CRM/Mailing/DAO/Mailing.php index 1cb8d05983..b3f9bc0ec6 100644 --- a/CRM/Mailing/DAO/Mailing.php +++ b/CRM/Mailing/DAO/Mailing.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Mailing/Mailing.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3711bcf18e92336fdc0a4c81af169de6) + * (GenCodeChecksum:22b978860c196afa0de69fab862907e8) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -948,4 +948,20 @@ class CRM_Mailing_DAO_Mailing extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_hash' => array( + 'name' => 'index_hash', + 'field' => array( + 0 => 'hash', + ) , + 'localizable' => false, + 'sig' => 'civicrm_mailing::0::hash', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Mailing/DAO/MailingAB.php b/CRM/Mailing/DAO/MailingAB.php index f3163deb70..71a82aa655 100644 --- a/CRM/Mailing/DAO/MailingAB.php +++ b/CRM/Mailing/DAO/MailingAB.php @@ -374,4 +374,11 @@ class CRM_Mailing_DAO_MailingAB extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_abtest', $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; + } } diff --git a/CRM/Mailing/DAO/MailingGroup.php b/CRM/Mailing/DAO/MailingGroup.php index fd0caa9280..acf0d827e2 100644 --- a/CRM/Mailing/DAO/MailingGroup.php +++ b/CRM/Mailing/DAO/MailingGroup.php @@ -263,4 +263,11 @@ class CRM_Mailing_DAO_MailingGroup extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_group', $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; + } } diff --git a/CRM/Mailing/DAO/MailingJob.php b/CRM/Mailing/DAO/MailingJob.php index af8ec20a56..c0714bc882 100644 --- a/CRM/Mailing/DAO/MailingJob.php +++ b/CRM/Mailing/DAO/MailingJob.php @@ -324,4 +324,11 @@ class CRM_Mailing_DAO_MailingJob extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_job', $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; + } } diff --git a/CRM/Mailing/DAO/Recipients.php b/CRM/Mailing/DAO/Recipients.php index 2c4d38f33a..327369db4a 100644 --- a/CRM/Mailing/DAO/Recipients.php +++ b/CRM/Mailing/DAO/Recipients.php @@ -224,4 +224,11 @@ class CRM_Mailing_DAO_Recipients extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_recipients', $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; + } } diff --git a/CRM/Mailing/DAO/Spool.php b/CRM/Mailing/DAO/Spool.php index 8e2dea42ff..026d2ff81b 100644 --- a/CRM/Mailing/DAO/Spool.php +++ b/CRM/Mailing/DAO/Spool.php @@ -247,4 +247,11 @@ class CRM_Mailing_DAO_Spool extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_spool', $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; + } } diff --git a/CRM/Mailing/DAO/TrackableURL.php b/CRM/Mailing/DAO/TrackableURL.php index e2e346b09e..687cb86376 100644 --- a/CRM/Mailing/DAO/TrackableURL.php +++ b/CRM/Mailing/DAO/TrackableURL.php @@ -184,4 +184,11 @@ class CRM_Mailing_DAO_TrackableURL extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_trackable_url', $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; + } } diff --git a/CRM/Mailing/Event/DAO/Bounce.php b/CRM/Mailing/Event/DAO/Bounce.php index 4e880410dc..4d20e61b53 100644 --- a/CRM/Mailing/Event/DAO/Bounce.php +++ b/CRM/Mailing/Event/DAO/Bounce.php @@ -226,4 +226,11 @@ class CRM_Mailing_Event_DAO_Bounce extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_bounce', $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; + } } diff --git a/CRM/Mailing/Event/DAO/Confirm.php b/CRM/Mailing/Event/DAO/Confirm.php index 4722adf9cb..c31c0f232b 100644 --- a/CRM/Mailing/Event/DAO/Confirm.php +++ b/CRM/Mailing/Event/DAO/Confirm.php @@ -184,4 +184,11 @@ class CRM_Mailing_Event_DAO_Confirm extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_confirm', $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; + } } diff --git a/CRM/Mailing/Event/DAO/Delivered.php b/CRM/Mailing/Event/DAO/Delivered.php index 2b997813ef..6c1ec8bb31 100644 --- a/CRM/Mailing/Event/DAO/Delivered.php +++ b/CRM/Mailing/Event/DAO/Delivered.php @@ -184,4 +184,11 @@ class CRM_Mailing_Event_DAO_Delivered extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_delivered', $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; + } } diff --git a/CRM/Mailing/Event/DAO/Forward.php b/CRM/Mailing/Event/DAO/Forward.php index 26ac259c84..af2785e8b7 100644 --- a/CRM/Mailing/Event/DAO/Forward.php +++ b/CRM/Mailing/Event/DAO/Forward.php @@ -202,4 +202,11 @@ class CRM_Mailing_Event_DAO_Forward extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_forward', $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; + } } diff --git a/CRM/Mailing/Event/DAO/Opened.php b/CRM/Mailing/Event/DAO/Opened.php index 030fccd837..71bd1dbf56 100644 --- a/CRM/Mailing/Event/DAO/Opened.php +++ b/CRM/Mailing/Event/DAO/Opened.php @@ -184,4 +184,11 @@ class CRM_Mailing_Event_DAO_Opened extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_opened', $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; + } } diff --git a/CRM/Mailing/Event/DAO/Queue.php b/CRM/Mailing/Event/DAO/Queue.php index 27c5a9e4a2..29c4448ee4 100644 --- a/CRM/Mailing/Event/DAO/Queue.php +++ b/CRM/Mailing/Event/DAO/Queue.php @@ -243,4 +243,11 @@ class CRM_Mailing_Event_DAO_Queue extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_queue', $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; + } } diff --git a/CRM/Mailing/Event/DAO/Reply.php b/CRM/Mailing/Event/DAO/Reply.php index 1b4a21f363..d1965a5a34 100644 --- a/CRM/Mailing/Event/DAO/Reply.php +++ b/CRM/Mailing/Event/DAO/Reply.php @@ -184,4 +184,11 @@ class CRM_Mailing_Event_DAO_Reply extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_reply', $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; + } } diff --git a/CRM/Mailing/Event/DAO/Subscribe.php b/CRM/Mailing/Event/DAO/Subscribe.php index 017445a67c..286353fc1c 100644 --- a/CRM/Mailing/Event/DAO/Subscribe.php +++ b/CRM/Mailing/Event/DAO/Subscribe.php @@ -230,4 +230,11 @@ class CRM_Mailing_Event_DAO_Subscribe extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_subscribe', $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; + } } diff --git a/CRM/Mailing/Event/DAO/TrackableURLOpen.php b/CRM/Mailing/Event/DAO/TrackableURLOpen.php index 49d9dcaeda..4c6d9e7793 100644 --- a/CRM/Mailing/Event/DAO/TrackableURLOpen.php +++ b/CRM/Mailing/Event/DAO/TrackableURLOpen.php @@ -203,4 +203,11 @@ class CRM_Mailing_Event_DAO_TrackableURLOpen extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_trackable_url_open', $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; + } } diff --git a/CRM/Mailing/Event/DAO/Unsubscribe.php b/CRM/Mailing/Event/DAO/Unsubscribe.php index 8984c6dbad..9bdbdaac50 100644 --- a/CRM/Mailing/Event/DAO/Unsubscribe.php +++ b/CRM/Mailing/Event/DAO/Unsubscribe.php @@ -201,4 +201,11 @@ class CRM_Mailing_Event_DAO_Unsubscribe extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mailing_event_unsubscribe', $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; + } } diff --git a/CRM/Member/DAO/Membership.php b/CRM/Member/DAO/Membership.php index c6e1975486..99ab3cbc78 100644 --- a/CRM/Member/DAO/Membership.php +++ b/CRM/Member/DAO/Membership.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Member/Membership.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4d1ebbf7062cc793f845bfa84e0c0230) + * (GenCodeChecksum:1a9ebe9e0d3ab9247f2a3dda32bab22a) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -503,4 +503,20 @@ class CRM_Member_DAO_Membership extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'membership', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_owner_membership_id' => array( + 'name' => 'index_owner_membership_id', + 'field' => array( + 0 => 'owner_membership_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_membership::0::owner_membership_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Member/DAO/MembershipBlock.php b/CRM/Member/DAO/MembershipBlock.php index 427790c862..f20ca244a4 100644 --- a/CRM/Member/DAO/MembershipBlock.php +++ b/CRM/Member/DAO/MembershipBlock.php @@ -358,4 +358,11 @@ class CRM_Member_DAO_MembershipBlock extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'membership_block', $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; + } } diff --git a/CRM/Member/DAO/MembershipLog.php b/CRM/Member/DAO/MembershipLog.php index 896f5b1da2..8b7f6b986e 100644 --- a/CRM/Member/DAO/MembershipLog.php +++ b/CRM/Member/DAO/MembershipLog.php @@ -286,4 +286,11 @@ class CRM_Member_DAO_MembershipLog extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'membership_log', $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; + } } diff --git a/CRM/Member/DAO/MembershipPayment.php b/CRM/Member/DAO/MembershipPayment.php index 11b3df489d..73af131b1e 100644 --- a/CRM/Member/DAO/MembershipPayment.php +++ b/CRM/Member/DAO/MembershipPayment.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Member/MembershipPayment.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0ccf0d7294a2039689712b93dd6e9bab) + * (GenCodeChecksum:f5961822475bf3b83377d72f9ed34b07) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -185,4 +185,22 @@ class CRM_Member_DAO_MembershipPayment extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'membership_payment', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_contribution_membership' => array( + 'name' => 'UI_contribution_membership', + 'field' => array( + 0 => 'contribution_id', + 1 => 'membership_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_membership_payment::1::contribution_id::membership_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Member/DAO/MembershipStatus.php b/CRM/Member/DAO/MembershipStatus.php index ccd19e7f1f..3d7f1d8daf 100644 --- a/CRM/Member/DAO/MembershipStatus.php +++ b/CRM/Member/DAO/MembershipStatus.php @@ -401,4 +401,11 @@ class CRM_Member_DAO_MembershipStatus extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'membership_status', $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; + } } diff --git a/CRM/Member/DAO/MembershipType.php b/CRM/Member/DAO/MembershipType.php index 0e91224182..b0e32cc43b 100644 --- a/CRM/Member/DAO/MembershipType.php +++ b/CRM/Member/DAO/MembershipType.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Member/MembershipType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b4605635cee3e92e4fe8fa2915e3c14b) + * (GenCodeChecksum:22af2c3f87df3ad7cf2002c145f53cc6) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -538,4 +538,20 @@ class CRM_Member_DAO_MembershipType extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'membership_type', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_relationship_type_id' => array( + 'name' => 'index_relationship_type_id', + 'field' => array( + 0 => 'relationship_type_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_membership_type::0::relationship_type_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/PCP/DAO/PCP.php b/CRM/PCP/DAO/PCP.php index 2aa6767c28..576079ad20 100644 --- a/CRM/PCP/DAO/PCP.php +++ b/CRM/PCP/DAO/PCP.php @@ -449,4 +449,11 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'pcp', $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; + } } diff --git a/CRM/PCP/DAO/PCPBlock.php b/CRM/PCP/DAO/PCPBlock.php index 794c49ff41..f3a4f7a7c2 100644 --- a/CRM/PCP/DAO/PCPBlock.php +++ b/CRM/PCP/DAO/PCPBlock.php @@ -370,4 +370,11 @@ class CRM_PCP_DAO_PCPBlock extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'pcp_block', $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; + } } diff --git a/CRM/Pledge/DAO/Pledge.php b/CRM/Pledge/DAO/Pledge.php index 11c0b54da9..8ee1a482d3 100644 --- a/CRM/Pledge/DAO/Pledge.php +++ b/CRM/Pledge/DAO/Pledge.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Pledge/Pledge.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:93d3db6cf90649f6bc070d1b72def5af) + * (GenCodeChecksum:d323ed81c70c68905fc53ffd849a9e81) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -652,4 +652,20 @@ class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'pledge', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_status' => array( + 'name' => 'index_status', + 'field' => array( + 0 => 'status_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_pledge::0::status_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Pledge/DAO/PledgeBlock.php b/CRM/Pledge/DAO/PledgeBlock.php index f13814b172..a8b3fa8405 100644 --- a/CRM/Pledge/DAO/PledgeBlock.php +++ b/CRM/Pledge/DAO/PledgeBlock.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Pledge/PledgeBlock.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7d41ef2735585fe5dddadb9a8f63a7fd) + * (GenCodeChecksum:27ee8365a58c51c15fcf0ae78b2f5f32) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -323,4 +323,21 @@ class CRM_Pledge_DAO_PledgeBlock extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'pledge_block', $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_pledge_block::0::entity_table::entity_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Pledge/DAO/PledgePayment.php b/CRM/Pledge/DAO/PledgePayment.php index 09c7f27016..c51fc033df 100644 --- a/CRM/Pledge/DAO/PledgePayment.php +++ b/CRM/Pledge/DAO/PledgePayment.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Pledge/PledgePayment.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:09fc3071c5172648ed851790f09873b6) + * (GenCodeChecksum:37953335e5e08db4328298ec003c97a8) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -356,4 +356,29 @@ class CRM_Pledge_DAO_PledgePayment extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'pledge_payment', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_contribution_pledge' => array( + 'name' => 'index_contribution_pledge', + 'field' => array( + 0 => 'contribution_id', + 1 => 'pledge_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_pledge_payment::0::contribution_id::pledge_id', + ) , + 'index_status' => array( + 'name' => 'index_status', + 'field' => array( + 0 => 'status_id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_pledge_payment::0::status_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Price/DAO/LineItem.php b/CRM/Price/DAO/LineItem.php index b7250f121a..2f05c853d1 100644 --- a/CRM/Price/DAO/LineItem.php +++ b/CRM/Price/DAO/LineItem.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Price/LineItem.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:8ecde6a576075d58db3c53106b9d4d1c) + * (GenCodeChecksum:db7c7e55df64ed93a7152b5297d13d25) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -433,4 +433,34 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'line_item', $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_line_item::0::entity_table::entity_id', + ) , + 'UI_line_item_value' => array( + 'name' => 'UI_line_item_value', + 'field' => array( + 0 => 'entity_table', + 1 => 'entity_id', + 2 => 'contribution_id', + 3 => 'price_field_value_id', + 4 => 'price_field_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_line_item::1::entity_table::entity_id::contribution_id::price_field_value_id::price_field_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Price/DAO/PriceField.php b/CRM/Price/DAO/PriceField.php index 62e53bfa6c..b9af981d79 100644 --- a/CRM/Price/DAO/PriceField.php +++ b/CRM/Price/DAO/PriceField.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Price/PriceField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:be63f35bc5c1c8258ec2e6dc1befd377) + * (GenCodeChecksum:6ee89c3106c27af4ca96897826a2ef8c) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -482,4 +482,20 @@ class CRM_Price_DAO_PriceField extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'price_field', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_name' => array( + 'name' => 'index_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'sig' => 'civicrm_price_field::0::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Price/DAO/PriceFieldValue.php b/CRM/Price/DAO/PriceFieldValue.php index ce202a3a40..2b3a301f8a 100644 --- a/CRM/Price/DAO/PriceFieldValue.php +++ b/CRM/Price/DAO/PriceFieldValue.php @@ -489,4 +489,11 @@ class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'price_field_value', $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; + } } diff --git a/CRM/Price/DAO/PriceSet.php b/CRM/Price/DAO/PriceSet.php index 66d3117164..e310a831a8 100644 --- a/CRM/Price/DAO/PriceSet.php +++ b/CRM/Price/DAO/PriceSet.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Price/PriceSet.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0b3a382a33511312a5f3b909f214345d) + * (GenCodeChecksum:7250a5af1e713fc047875f2cc22443ff) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -414,4 +414,21 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'price_set', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_name' => array( + 'name' => 'UI_name', + 'field' => array( + 0 => 'name', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_price_set::1::name', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Price/DAO/PriceSetEntity.php b/CRM/Price/DAO/PriceSetEntity.php index 8f5a7ac479..41da550b55 100644 --- a/CRM/Price/DAO/PriceSetEntity.php +++ b/CRM/Price/DAO/PriceSetEntity.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Price/PriceSetEntity.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:da96598372bdbc553ae76312db786c2c) + * (GenCodeChecksum:6113d40ca79159b19d2c915aeb620e7c) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -206,4 +206,22 @@ class CRM_Price_DAO_PriceSetEntity extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'price_set_entity', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'UI_entity' => array( + 'name' => 'UI_entity', + 'field' => array( + 0 => 'entity_table', + 1 => 'entity_id', + ) , + 'localizable' => false, + 'unique' => true, + 'sig' => 'civicrm_price_set_entity::1::entity_table::entity_id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Queue/DAO/QueueItem.php b/CRM/Queue/DAO/QueueItem.php index fd48bfbd1b..8f688be708 100644 --- a/CRM/Queue/DAO/QueueItem.php +++ b/CRM/Queue/DAO/QueueItem.php @@ -30,7 +30,7 @@ * * Generated from xml/schema/CRM/Queue/QueueItem.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a7927e0d742d5a5600ffe80c75d90bf6) + * (GenCodeChecksum:6ca85e3a41502dda3e60a1c53a83c67f) */ require_once 'CRM/Core/DAO.php'; require_once 'CRM/Utils/Type.php'; @@ -230,4 +230,22 @@ class CRM_Queue_DAO_QueueItem extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'queue_item', $prefix, array()); return $r; } + /** + * Returns the list of indices + */ + public static function indices($localize = TRUE) { + $indices = array( + 'index_queueids' => array( + 'name' => 'index_queueids', + 'field' => array( + 0 => 'queue_name', + 1 => 'weight', + 2 => 'id', + ) , + 'localizable' => false, + 'sig' => 'civicrm_queue_item::0::queue_name::weight::id', + ) , + ); + return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; + } } diff --git a/CRM/Report/DAO/ReportInstance.php b/CRM/Report/DAO/ReportInstance.php index c090f21113..dbf8e30875 100644 --- a/CRM/Report/DAO/ReportInstance.php +++ b/CRM/Report/DAO/ReportInstance.php @@ -562,4 +562,11 @@ class CRM_Report_DAO_ReportInstance extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'report_instance', $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; + } } diff --git a/CRM/SMS/DAO/Provider.php b/CRM/SMS/DAO/Provider.php index b4e0103b7b..732e619b08 100644 --- a/CRM/SMS/DAO/Provider.php +++ b/CRM/SMS/DAO/Provider.php @@ -342,4 +342,11 @@ class CRM_SMS_DAO_Provider extends CRM_Core_DAO { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'sms_provider', $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; + } }