DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Mailing / DAO / Spool.php
index 6027afd1676cf9875d35a251c211c8fd107c66c8..6329553862b5b28fe832bd0148d302311c8adb4e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/Spool.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:7bd4a9b64175915a43f602f4f9cfb721)
+ * (GenCodeChecksum:f2aa2d8c8ee3203bf674e6c193818dda)
  */
 
 /**
@@ -87,9 +87,12 @@ class CRM_Mailing_DAO_Spool 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('Spools');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Spools') : ts('Spool');
   }
 
   /**