DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contribute / DAO / Contribution.php
index 45f51b756cad855b0a4ae6c45d1bda1a92c7925e..174e9bf69591ed243117ec5f61e0137dac46330c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Contribution.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cc3bcdbce84066823084f71e30f6990b)
+ * (GenCodeChecksum:d937ea0497be1a1aeb1bac09986dd802)
  */
 
 /**
@@ -252,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');
   }
 
   /**