* The action links that we need to display for the browse screen
*
* @var array
- * @static
*/
static $_links = NULL;
static $_recurLinks = NULL;
}
if (is_object($paymentProcessorObj) && $paymentProcessorObj->isSupported('updateSubscriptionBillingInfo')) {
self::$_links[CRM_Core_Action::RENEW] = array(
- 'name' => ts('Change Billing Details'),
+ 'name' => ts('Change Billing Details'),
'title' => ts('Change Billing Details'),
'url' => 'civicrm/contribute/updatebilling',
'qs' => "reset=1&crid=%%crid%%&cid=%%cid%%&context={$context}",
// end function
/**
- * This function is called when action is browse
+ * called when action is browse
*
- * return null
*/
public function browse() {
// add annual contribution
list($annual['count'],
$annual['amount'],
$annual['avg']
- ) = CRM_Contribute_BAO_Contribution::annual($this->_contactId);
+ ) = CRM_Contribute_BAO_Contribution::annual($this->_contactId);
$this->assign('annual', $annual);
$controller = new CRM_Core_Controller_Simple(
list($softCreditTotals['amount'],
$softCreditTotals['avg'],
$softCreditTotals['currency']
- ) = CRM_Contribute_BAO_ContributionSoft::getSoftContributionTotals($this->_contactId, $isTest);
+ ) = CRM_Contribute_BAO_ContributionSoft::getSoftContributionTotals($this->_contactId, $isTest);
$this->assign('softCredit', TRUE);
$this->assign('softCreditRows', $softCreditList);
}
/**
- * This function is called when action is view
+ * called when action is view
*
- * return null
+ * @return null
*/
public function view() {
$controller = new CRM_Core_Controller_Simple(
}
/**
- * 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;
else {
$this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, empty($this->_id));
if (empty($this->_contactId)) {
- $this->_contactId = civicrm_api3('contribution', 'getvalue', array('id' => $this->_id, 'return' => 'contact_id'));
+ $this->_contactId = civicrm_api3('contribution', 'getvalue', array(
+ 'id' => $this->_id,
+ 'return' => 'contact_id',
+ ));
}
$this->assign('contactId', $this->_contactId);
}
/**
- * This function is the main function that is called when 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();
break;
case 'fulltext':
- $keyName = '&qfKey';
+ $keyName = '&qfKey';
$urlParams = 'force=1';
$urlString = 'civicrm/contact/search/custom';
if ($this->_action == CRM_Core_Action::UPDATE) {