Merge pull request #10012 from agh1/crm-20297
[civicrm-core.git] / CRM / Grant / DAO / Grant.php
index 1ee123d0e0c6cc3d96cd0ce9ea2617b06af356d3..f5a4372a529eeb4c5c34e3340de68abb1aad9f14 100644 (file)
  *
  * Generated from xml/schema/CRM/Grant/Grant.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:38ec42e92df1109ae3a0fe337852fbd5)
+ * (GenCodeChecksum:600fc71093543f1c7b31ad663f2325c6)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Grant_DAO_Grant constructor.
+ */
 class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
   /**
-   * static instance to hold the table name
+   * Static instance to hold the table name.
    *
    * @var string
    */
   static $_tableName = 'civicrm_grant';
   /**
-   * static value to see if we should log any modifications to
-   * this table in the civicrm_log table
+   * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var boolean
    */
@@ -139,16 +141,14 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
    */
   public $financial_type_id;
   /**
-   * class constructor
-   *
-   * @return civicrm_grant
+   * Class constructor.
    */
   function __construct() {
     $this->__table = 'civicrm_grant';
     parent::__construct();
   }
   /**
-   * Returns foreign keys and entity references
+   * Returns foreign keys and entity references.
    *
    * @return array
    *   [CRM_Core_Reference_Interface]
@@ -181,6 +181,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => true,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
         ) ,
         'grant_contact_id' => array(
           'name' => 'contact_id',
@@ -192,6 +196,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'where' => 'civicrm_grant.contact_id',
           'headerPattern' => '',
           'dataPattern' => '',
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
           'html' => array(
             'type' => 'EntityRef',
@@ -206,6 +214,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'where' => 'civicrm_grant.application_received_date',
           'headerPattern' => '',
           'dataPattern' => '',
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
         ) ,
         'decision_date' => array(
           'name' => 'decision_date',
@@ -217,6 +229,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => true,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select Date',
           ) ,
@@ -231,6 +247,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => true,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select Date',
           ) ,
@@ -240,6 +260,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_DATE,
           'title' => ts('Grant Due Date') ,
           'description' => 'Date on which grant report is due.',
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select Date',
           ) ,
@@ -254,6 +278,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => true,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'CheckBox',
           ) ,
@@ -268,6 +296,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'where' => 'civicrm_grant.grant_type_id',
           'headerPattern' => '',
           'dataPattern' => '',
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select',
           ) ,
@@ -291,6 +323,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '/^\d+(\.\d{2})?$/',
           'export' => true,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Text',
           ) ,
@@ -304,6 +340,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
             20,
             2
           ) ,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Text',
           ) ,
@@ -322,6 +362,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '/^\d+(\.\d{2})?$/',
           'export' => true,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Text',
           ) ,
@@ -334,6 +378,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'required' => true,
           'maxlength' => 3,
           'size' => CRM_Utils_Type::FOUR,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select',
           ) ,
@@ -356,6 +404,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => true,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'TextArea',
           ) ,
@@ -371,6 +423,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => false,
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Select',
           ) ,
@@ -385,6 +441,10 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'title' => ts('Financial Type') ,
           'description' => 'FK to Financial Type.',
           'default' => 'NULL',
+          'table_name' => 'civicrm_grant',
+          'entity' => 'Grant',
+          'bao' => 'CRM_Grant_BAO_Grant',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
           'pseudoconstant' => array(
             'table' => 'civicrm_financial_type',
@@ -447,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;
+  }
 }