DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Financial / DAO / Currency.php
index f96650badc5908feafc6cc18b53711ebe3e8343e..868495d6d7821821a1d1360d84642d02a1a814a0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Financial/Currency.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5501c59b453dedfb8bba1f2fab44d9ea)
+ * (GenCodeChecksum:0347ed61e0dc585d250a83f9fa162f2d)
  */
 
 /**
@@ -75,9 +75,12 @@ class CRM_Financial_DAO_Currency 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('Currencies');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Currencies') : ts('Currency');
   }
 
   /**