DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Website.php
index e9415359c1143aced76d2b52b5caa65511a2b136..aed21d3676e19c2e9101703d554c004fc9408131 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Website.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9e449b1f3a997b63c79066bd5cd782ae)
+ * (GenCodeChecksum:1d9c6cf4e3d809a3b3f5963ccb189e83)
  */
 
 /**
@@ -75,9 +75,12 @@ class CRM_Core_DAO_Website 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('Websites');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Websites') : ts('Website');
   }
 
   /**