Regenerate DAO files
[civicrm-core.git] / CRM / PCP / DAO / PCP.php
index eb565696754516f8e27286cbf045c7a7e826fa8e..3fe37dc38eaae0a8c337e45a8264ddb6795afdcf 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/PCP/PCP.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:286225e46c4e2f3c12b17cd5f83b210d)
+ * (GenCodeChecksum:ad3dcb71cd89052b43154c9e9ee31115)
  */
 
 /**
@@ -15,6 +15,7 @@
 class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
   const EXT = 'civicrm';
   const TABLE_ADDED = '2.2';
+  const COMPONENT = 'CiviContribute';
 
   /**
    * Static instance to hold the table name.
@@ -138,9 +139,12 @@ class CRM_PCP_DAO_PCP 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('PCPs');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('PCPs') : ts('PCP');
   }
 
   /**
@@ -177,6 +181,9 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
           'entity' => 'PCP',
           'bao' => 'CRM_PCP_BAO_PCP',
           'localizable' => 0,
+          'html' => [
+            'type' => 'Number',
+          ],
           'add' => '2.2',
         ],
         'pcp_contact_id' => [
@@ -193,6 +200,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO {
           'FKClassName' => 'CRM_Contact_DAO_Contact',
           'html' => [
             'type' => 'EntityRef',
+            'label' => ts("Contact"),
           ],
           'add' => '2.2',
         ],