DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Price / DAO / PriceSet.php
index 1dd84351706af0cc2ba0050d707cdb5ffdd8f307..26fa13809836f6fc3141f974410b9a1e020ea389 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceSet.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:52d1fb1b25eaa8f1c157012bfec0eaae)
+ * (GenCodeChecksum:c4db3cbda4900e01aeba098a4578b563)
  */
 
 /**
@@ -131,9 +131,12 @@ class CRM_Price_DAO_PriceSet 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('Price Sets');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Price Sets') : ts('Price Set');
   }
 
   /**