*
* Generated from xml/schema/CRM/Contribute/Contribution.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:74fa8c515ced28f337a6e6e35425f821)
+ * (GenCodeChecksum:d937ea0497be1a1aeb1bac09986dd802)
*/
/**
* Database access object for the Contribution entity.
*/
class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO {
+ const EXT = 'civicrm';
+ const TABLE_ADDED = '1.3';
/**
* Static instance to hold the table name.
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Contributions');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Contributions') : ts('Contribution');
}
/**
'financial_type_id' => [
'name' => 'financial_type_id',
'type' => CRM_Utils_Type::T_INT,
- 'title' => ts('Financial Type'),
+ 'title' => ts('Financial Type ID'),
'description' => ts('FK to Financial Type for (total_amount - non_deductible_amount).'),
'where' => 'civicrm_contribution.financial_type_id',
'export' => TRUE,
'FKClassName' => 'CRM_Financial_DAO_FinancialType',
'html' => [
'type' => 'Select',
+ 'label' => ts("Financial Type"),
],
'pseudoconstant' => [
'table' => 'civicrm_financial_type',