Declare API Key as a protected field for future use
[civicrm-core.git] / CRM / Grant / DAO / Grant.php
index 03b5e1814cf231c0c725392b9a4ac41d7e274dfc..1ec1adbef61bb822eecc22484ba4f463a9c1433a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Grant/Grant.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ea60d8cd875ca924d3cc34b4282c8a8a)
+ * (GenCodeChecksum:e8021ad180172c83225951d078a53c36)
  */
 
 /**
@@ -19,14 +19,14 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_grant';
+  public static $_tableName = 'civicrm_grant';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = TRUE;
+  public static $_log = TRUE;
 
   /**
    * Unique Grant id
@@ -149,7 +149,7 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
    */
   public static function getReferenceColumns() {
     if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
@@ -173,8 +173,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'required' => TRUE,
           'import' => TRUE,
           'where' => 'civicrm_grant.id',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => TRUE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
@@ -187,10 +185,8 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'title' => ts('Contact ID'),
           'description' => ts('Contact ID of contact record given grant belongs to.'),
           'required' => TRUE,
-          'export' => TRUE,
           'where' => 'civicrm_grant.contact_id',
-          'headerPattern' => '',
-          'dataPattern' => '',
+          'export' => TRUE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
           'bao' => 'CRM_Grant_BAO_Grant',
@@ -207,8 +203,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'description' => ts('Date on which grant application was received by donor.'),
           'import' => TRUE,
           'where' => 'civicrm_grant.application_received_date',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => TRUE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
@@ -226,8 +220,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'description' => ts('Date on which grant decision was made.'),
           'import' => TRUE,
           'where' => 'civicrm_grant.decision_date',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => TRUE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
@@ -245,8 +237,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'description' => ts('Date on which grant money transfer was made.'),
           'import' => TRUE,
           'where' => 'civicrm_grant.money_transfer_date',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => TRUE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
@@ -264,8 +254,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'description' => ts('Date on which grant report is due.'),
           'import' => TRUE,
           'where' => 'civicrm_grant.grant_due_date',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => TRUE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
@@ -283,8 +271,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'description' => ts('Yes/No field stating whether grant report was received by donor.'),
           'import' => TRUE,
           'where' => 'civicrm_grant.grant_report_received',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => TRUE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
@@ -300,10 +286,8 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'title' => ts('Grant Type'),
           'description' => ts('Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.'),
           'required' => TRUE,
-          'export' => TRUE,
           'where' => 'civicrm_grant.grant_type_id',
-          'headerPattern' => '',
-          'dataPattern' => '',
+          'export' => TRUE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
           'bao' => 'CRM_Grant_BAO_Grant',
@@ -328,7 +312,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           ],
           'import' => TRUE,
           'where' => 'civicrm_grant.amount_total',
-          'headerPattern' => '',
           'dataPattern' => '/^\d+(\.\d{2})?$/',
           'export' => TRUE,
           'table_name' => 'civicrm_grant',
@@ -348,6 +331,8 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
             20,
             2
           ],
+          'where' => 'civicrm_grant.amount_requested',
+          'dataPattern' => '/^\d+(\.\d{2})?$/',
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
           'bao' => 'CRM_Grant_BAO_Grant',
@@ -367,7 +352,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           ],
           'import' => TRUE,
           'where' => 'civicrm_grant.amount_granted',
-          'headerPattern' => '',
           'dataPattern' => '/^\d+(\.\d{2})?$/',
           'export' => TRUE,
           'table_name' => 'civicrm_grant',
@@ -386,6 +370,7 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'required' => TRUE,
           'maxlength' => 3,
           'size' => CRM_Utils_Type::FOUR,
+          'where' => 'civicrm_grant.currency',
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
           'bao' => 'CRM_Grant_BAO_Grant',
@@ -409,8 +394,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'cols' => 60,
           'import' => TRUE,
           'where' => 'civicrm_grant.rationale',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => TRUE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
@@ -428,8 +411,6 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'required' => TRUE,
           'import' => TRUE,
           'where' => 'civicrm_grant.status_id',
-          'headerPattern' => '',
-          'dataPattern' => '',
           'export' => FALSE,
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',
@@ -448,6 +429,7 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Financial Type'),
           'description' => ts('FK to Financial Type.'),
+          'where' => 'civicrm_grant.financial_type_id',
           'default' => 'NULL',
           'table_name' => 'civicrm_grant',
           'entity' => 'Grant',