DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Timezone.php
index 5f9abdfc6c34bb51d37ece90343520cc7d1b4a0b..bae04f5e2d28660e5994b551742ff7d30d3dcd33 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Timezone.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fb1089cb65c1587b1242b9d250c664f7)
+ * (GenCodeChecksum:b49b5541f20c732fc7ff4cdc3687899b)
  */
 
 /**
@@ -80,9 +80,12 @@ class CRM_Core_DAO_Timezone 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('Timezones');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Timezones') : ts('Timezone');
   }
 
   /**