DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / File.php
index dc6508d4a6e48fe001f6e36370e7970094a18448..620734811c1e8ccfa813bd02d5b3208889d56179 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/File.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:aa0883a815a43dd250612348f3ec470e)
+ * (GenCodeChecksum:dd8a70727f67481339dd514fdca6aae5)
  */
 
 /**
@@ -96,9 +96,12 @@ class CRM_Core_DAO_File 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('Files');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Files') : ts('File');
   }
 
   /**