DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contribute / DAO / Product.php
index 8433e1820ad0ee4b6982f5b79413d5725ae82ddc..7b481641af4da90dbdba7d5257c73eef99aa14ae 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contribute/Product.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dea1c7db61776456a70f752fe9f93f06)
+ * (GenCodeChecksum:d6c90aacbe802ff244a6a4bbaecad4d3)
  */
 
 /**
@@ -170,9 +170,12 @@ class CRM_Contribute_DAO_Product 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('Products');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Products') : ts('Product');
   }
 
   /**