DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contribute / DAO / ContributionSoft.php
index ba2c9e21c3a88ad175c1f23861e0b40e4c0f0ca6..fa78630bad12eca067132a37ffb3e327aaa2b053 100644 (file)
@@ -6,13 +6,15 @@
  *
  * Generated from xml/schema/CRM/Contribute/ContributionSoft.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a1c2918874b74f3f9bbbe0464aea1563)
+ * (GenCodeChecksum:e37496d0b9938151e5bcf9e6dad23c0a)
  */
 
 /**
  * Database access object for the ContributionSoft entity.
  */
 class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO {
+  const EXT = 'civicrm';
+  const TABLE_ADDED = '2.2';
 
   /**
    * Static instance to hold the table name.
@@ -102,9 +104,12 @@ class CRM_Contribute_DAO_ContributionSoft 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('Contribution Softs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Contribution Softs') : ts('Contribution Soft');
   }
 
   /**