DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Case / DAO / Case.php
index 946c992f4b6a509042b4d72c8d0387ff82a23fc4..ebf2311f678e44bed07fd27d4018da5296ab802f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/Case.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:8b18140da75bbf971a143c205f2af1cd)
+ * (GenCodeChecksum:bae905b3b253acc0df005cc66dd9b717)
  */
 
 /**
@@ -115,9 +115,12 @@ class CRM_Case_DAO_Case 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('Cases');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Cases') : ts('Case');
   }
 
   /**