X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FDAO%2FContribution.php;h=174e9bf69591ed243117ec5f61e0137dac46330c;hb=7b66c3b57753e74e46815ce9d9367126a19acee8;hp=da37b7e9b3c4c125dafc39d2d04a8295bf4ca599;hpb=28a74ee389a47366b3d37e5415fdb7a920563db6;p=civicrm-core.git diff --git a/CRM/Contribute/DAO/Contribution.php b/CRM/Contribute/DAO/Contribution.php index da37b7e9b3..174e9bf695 100644 --- a/CRM/Contribute/DAO/Contribution.php +++ b/CRM/Contribute/DAO/Contribution.php @@ -6,13 +6,15 @@ * * 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. @@ -250,9 +252,12 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO { /** * 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'); } /** @@ -325,7 +330,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO { '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, @@ -336,6 +341,7 @@ class CRM_Contribute_DAO_Contribution extends CRM_Core_DAO { 'FKClassName' => 'CRM_Financial_DAO_FinancialType', 'html' => [ 'type' => 'Select', + 'label' => ts("Financial Type"), ], 'pseudoconstant' => [ 'table' => 'civicrm_financial_type',