DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Setting.php
index 160f781cda0f36f080989606a55240bffd23260d..4fb42fd82a45f528f58a48a0a505baac834fc950 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Setting.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c1fda2807e8265021ffaa490325a7e4f)
+ * (GenCodeChecksum:24ec63102452f5cdff8424b5caf8b679)
  */
 
 /**
@@ -101,9 +101,12 @@ class CRM_Core_DAO_Setting 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('Settings');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Settings') : ts('Setting');
   }
 
   /**