DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Mailing / DAO / Mailing.php
index 084489593dcbe2cdb9ea9deac588616ac95eb37c..95b4563035c617c21ad96b89bfe2d2db55e34c9d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Mailing.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6a9dc5aaff7aa7f5dcfe3f892255e357)
+ * (GenCodeChecksum:9cd784dc86cf4f54983f14440be05239)
  */
 
 /**
@@ -342,9 +342,12 @@ class CRM_Mailing_DAO_Mailing 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('Mailings');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mailings') : ts('Mailing');
   }
 
   /**