/**
* Helper function to create a PCP Block for Contribution Page
*
- * @param int $contributionPageId - id of the Contribution Page
+ * @param int $contributionPageId
+ * Id of the Contribution Page.
* to be deleted
- * @return array of created pcp block
- *
+ * @return array
+ * of created pcp block
*/
- function create($contributionPageId) {
+ public function create($contributionPageId) {
$profileParams = array(
'group_type' => 'Individual,Contact',
'title' => 'Test Supprorter Profile',
/**
* Helper function to delete a PCP related stuff viz. Profile, PCP Block Entry
*
- * @param array key value pair
+ * @param array key value pair
* pcpBlockId - id of the PCP Block Id, profileID - id of Supporter Profile
* to be deleted
- * @return boolean true if success, false otherwise
- *
+ * @return boolean
+ * true if success, false otherwise
*/
- function delete($params) {
+ public function delete($params) {
$delete_params = array('id' => $params['profileId']);
$resulProfile = civicrm_api('uf_group', 'delete', $delete_params);
-
require_once 'CRM/Contribute/DAO/PCPBlock.php';
$dao = new CRM_Contribute_DAO_PCPBlock();
$dao->id = $params['blockId'];