static $_pcpLinks = NULL;
/**
- *
*/
public function __construct() {
parent::__construct();
// set currency for CRM-1496
if (!isset($dao->currency)) {
- $config = & CRM_Core_Config::singleton();
+ $config = &CRM_Core_Config::singleton();
$dao->currency = $config->defaultCurrency;
}
* @param int $id
* Id for the PCP.
*
- * @return null|string Dispaly name of the contact if found
+ * @return null|string
+ * Dispaly name of the contact if found
* @static
*/
public static function displayName($id) {
*
* @param int $contactId
*
- * @return array array of Pcp if found
+ * @return array
+ * array of Pcp if found
* @static
*/
public static function getPcpDashboardInfo($contactId) {
*
* @static
*
- * @return total amount
+ * @return total
+ * amount
*/
public static function thermoMeter($pcpId) {
$query = "
*
* @static
*
- * @return array $honor
+ * @return array
*/
public static function honorRoll($pcpId) {
$query = "
/**
* Get action links
*
- * @return array (reference) of action links
+ * @return array
+ * (reference) of action links
* @static
*/
public static function &pcpLinks() {
*
* @return null
* @static
- *
*/
public static function deleteById($id) {
CRM_Utils_Hook::pre('delete', 'Campaign', $id, CRM_Core_DAO::$_nullArray);
}
CRM_Core_DAO::commonRetrieveAll('CRM_Core_DAO_UFGroup', 'is_cms_user', $isUserRequired, $profiles, array(
'title',
- 'is_active'
+ 'is_active',
));
if (!empty($profiles)) {
foreach ($profiles as $key => $value) {
}
- /*
- * Add PCP form elements to a form
- */
/**
+ * Add PCP form elements to a form
+ *
* @param int $pcpId
* @param CRM_Core_Page $page
* @param null $elements
);
$extraOption = array('onclick' => "return pcpAnonymous( );");
$elements = array();
- $elements[] = & $page->createElement('radio', NULL, '', ts('Include my name and message'), 0, $extraOption);
- $elements[] = & $page->createElement('radio', NULL, '', ts('List my support anonymously'), 1, $extraOption);
+ $elements[] = &$page->createElement('radio', NULL, '', ts('Include my name and message'), 0, $extraOption);
+ $elements[] = &$page->createElement('radio', NULL, '', ts('List my support anonymously'), 1, $extraOption);
$page->addGroup($elements, 'pcp_is_anonymous', NULL, ' ');
$page->_defaults['pcp_is_anonymous'] = 0;
}
}
- /*
- * Process a PCP contribution/
- */
/**
+ * Process a PCP contribution
+ *
* @param int $pcpId
* @param $component
* @param $entity
CRM_Core_Session::setStatus(ts("%1 status has been updated to %2.", array(
1 => $pcpTitle,
- 2 => $pcpStatus
+ 2 => $pcpStatus,
)), 'Status Updated', 'success');
// send status change mail
*
* @return Boolean
* @static
- *
*/
public static function getPcpBlockInUse($id) {
$query = "