DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Case / DAO / CaseContact.php
index 788b1e58f94810e78b6e6978c1b21fff9b038adc..d5b524ae02b442c984ffd903f6c89bd9af469063 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/CaseContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b315f42d7c886c123c9e87c9713c4911)
+ * (GenCodeChecksum:57c93b00e00d0a48d5071d5a991289ab)
  */
 
 /**
@@ -61,9 +61,12 @@ class CRM_Case_DAO_CaseContact 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('Case Contacts');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Case Contacts') : ts('Case Contact');
   }
 
   /**