X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPCP%2FDAO%2FPCP.php;h=3fe37dc38eaae0a8c337e45a8264ddb6795afdcf;hb=2cbbebe8c3284efaa7d9e8aab16ca67ed51fdd83;hp=eb565696754516f8e27286cbf045c7a7e826fa8e;hpb=2d4074a2a56a9e717dd6c0adb66151bda60cfa67;p=civicrm-core.git diff --git a/CRM/PCP/DAO/PCP.php b/CRM/PCP/DAO/PCP.php index eb56569675..3fe37dc38e 100644 --- a/CRM/PCP/DAO/PCP.php +++ b/CRM/PCP/DAO/PCP.php @@ -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', ],