DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Managed.php
index 212817ec7860199c70106ef5e58520302f432bee..a67271247cbef168e0a44f7beaf5caa294978c0d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Managed.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e6146e35f8c8321e600a4198cbd6949e)
+ * (GenCodeChecksum:119de7e386aa83b1ca5038a1e409aafe)
  */
 
 /**
@@ -82,9 +82,12 @@ class CRM_Core_DAO_Managed 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('Manageds');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Manageds') : ts('Managed');
   }
 
   /**