DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Price / DAO / LineItem.php
index 2ad0da2b2957c832bd1f7e75beadee464af8ab31..7e9b779089b6a69901ba9489d8094ab9866cd937 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/LineItem.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7403b3615b0225350d893750a547061a)
+ * (GenCodeChecksum:5a365a7d4b14c9b5963aeb61576395e4)
  */
 
 /**
@@ -138,9 +138,12 @@ class CRM_Price_DAO_LineItem 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('Line Items');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Line Items') : ts('Line Item');
   }
 
   /**