DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Mailing / Event / DAO / Opened.php
index cbd24372dfa0ba3c77d52f2f0364fedf853544e9..9ce62afcf5c28fa31abe22b3e1b69ec04c4c8eb0 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Event/Opened.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dddc76ba8461f8b0c1f3c1cdccddd111)
+ * (GenCodeChecksum:d636f34b01a876a72874c4b86abacff4)
  */
 
 /**
@@ -59,9 +59,12 @@ class CRM_Mailing_Event_DAO_Opened 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('Openeds');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Openeds') : ts('Opened');
   }
 
   /**