+ /**
+ * 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;
+ }