public $_contactId = NULL;
/**
- * This function is called when action is browse
+ * called when action is browse
*
- * return null
+ * @return null
*/
public function browse() {
$controller = new CRM_Core_Controller_Simple(
}
/**
- * This function is called when action is view
+ * called when action is view
*
- * return null
+ * @return null
*/
public function view() {
// build associated contributions
}
/**
- * This function is called when action is update or new
+ * called when action is update or new
*
- * return null
+ * @return null
*/
public function edit() {
// set https for offline cc transaction
}
public function preProcess() {
- $context = CRM_Utils_Request::retrieve('context', 'String', $this);
+ $context = CRM_Utils_Request::retrieve('context', 'String', $this);
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse');
- $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
+ $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
if ($context == 'standalone') {
$this->_action = CRM_Core_Action::ADD;
}
/**
- * This function is the main function that is called when the page loads, it decides the which action has to be taken for the page.
+ * the main function that is called when the page loads, it decides the which action has to be taken for the page.
*
- * return null
+ * @return null
*/
public function run() {
$this->preProcess();
elseif ($this->_action & (CRM_Core_Action::UPDATE |
CRM_Core_Action::ADD |
CRM_Core_Action::DELETE
- )) {
+ )
+ ) {
$this->edit();
}
else {
break;
case 'fulltext':
- $keyName = '&qfKey';
+ $keyName = '&qfKey';
$urlParams = 'force=1';
$urlString = 'civicrm/contact/search/custom';
if ($this->_action == CRM_Core_Action::UPDATE) {
}
/**
- * This function is used for the to show the associated
+ * used for the to show the associated
* contribution for the participant
*
- * return null
+ * @return null
*/
public function associatedContribution() {
if (CRM_Core_Permission::access('CiviContribute')) {