DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / Domain.php
index 82ccf0f5a8f9508bb40d0e62b2f2800406f9bd04..ce6b480508f95181ed2eb591b66a0f58ae43b32f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Domain.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:57a526de0b2bc02fed832a22dc50ad80)
+ * (GenCodeChecksum:99a50c29878792b8864e20d184ce9bbb)
  */
 
 /**
@@ -89,9 +89,12 @@ class CRM_Core_DAO_Domain 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('Domains');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Domains') : ts('Domain');
   }
 
   /**