DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contact / DAO / Relationship.php
index 14b10a52802e77892254edd2063d4583955aaac6..8ad5e40702fd2e64cd43e439993f009502053f01 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Relationship.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:25faea8225f483ae95cf29af08a8542d)
+ * (GenCodeChecksum:7fed0ad7c2ed2b072582b55afdb6469f)
  */
 
 /**
@@ -124,9 +124,12 @@ class CRM_Contact_DAO_Relationship 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('Relationships');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Relationships') : ts('Relationship');
   }
 
   /**