*
* 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
*/
*/
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]
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_grant',
+ 'entity' => 'Grant',
+ 'bao' => 'CRM_Grant_BAO_Grant',
+ 'localizable' => 0,
) ,
'grant_contact_id' => array(
'name' => 'contact_id',
'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',
'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',
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_grant',
+ 'entity' => 'Grant',
+ 'bao' => 'CRM_Grant_BAO_Grant',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select Date',
) ,
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_grant',
+ 'entity' => 'Grant',
+ 'bao' => 'CRM_Grant_BAO_Grant',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select Date',
) ,
'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',
) ,
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_grant',
+ 'entity' => 'Grant',
+ 'bao' => 'CRM_Grant_BAO_Grant',
+ 'localizable' => 0,
'html' => array(
'type' => 'CheckBox',
) ,
'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',
) ,
'headerPattern' => '',
'dataPattern' => '/^\d+(\.\d{2})?$/',
'export' => true,
+ 'table_name' => 'civicrm_grant',
+ 'entity' => 'Grant',
+ 'bao' => 'CRM_Grant_BAO_Grant',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
20,
2
) ,
+ 'table_name' => 'civicrm_grant',
+ 'entity' => 'Grant',
+ 'bao' => 'CRM_Grant_BAO_Grant',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'headerPattern' => '',
'dataPattern' => '/^\d+(\.\d{2})?$/',
'export' => true,
+ 'table_name' => 'civicrm_grant',
+ 'entity' => 'Grant',
+ 'bao' => 'CRM_Grant_BAO_Grant',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'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',
) ,
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_grant',
+ 'entity' => 'Grant',
+ 'bao' => 'CRM_Grant_BAO_Grant',
+ 'localizable' => 0,
'html' => array(
'type' => 'TextArea',
) ,
'headerPattern' => '',
'dataPattern' => '',
'export' => false,
+ 'table_name' => 'civicrm_grant',
+ 'entity' => 'Grant',
+ 'bao' => 'CRM_Grant_BAO_Grant',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select',
) ,
'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',
$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;
+ }
}