DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Campaign / DAO / Survey.php
index 9c9626b6be8c714478feddfedc7d36e85ca458f4..b6bc1912606154e485b0284fdeb6ba3a0aed247f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Campaign/Survey.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e955546c8081852591bc08b1fdee4213)
+ * (GenCodeChecksum:afb7cfcccd2a6177b2b10e07afa92e8e)
  */
 
 /**
@@ -187,9 +187,12 @@ class CRM_Campaign_DAO_Survey 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('Surveys');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Surveys') : ts('Survey');
   }
 
   /**