DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Financial / DAO / FinancialType.php
index cd99c56281eb7937e52c6d02eb95f591a7c8b343..d9b1ce7f58e422671a0b67c6948fde845ee7c794 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/FinancialType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:024b000d94adcc65200c00d7cef5e624)
+ * (GenCodeChecksum:36875c58b3267bdc2def295713858868)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Financial_DAO_FinancialType 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('Financial Types');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Financial Types') : ts('Financial Type');
   }
 
   /**