DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contribute / DAO / ContributionProduct.php
index e5a0f053702abd27b6be9e7f4abc20a0cd49b8e1..9837f2b8c084241ab20ccf933ebf5b3b041b6cb5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionProduct.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:4e76d9dc75f5bc1b1141645c8ee5e2e4)
+ * (GenCodeChecksum:a2a4170ca2004a1630e27ba83e5edff3)
  */
 
 /**
@@ -100,9 +100,12 @@ class CRM_Contribute_DAO_ContributionProduct 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('Contribution Products');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contribution Products') : ts('Contribution Product');
   }
 
   /**