<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
* View details of a recurring contribution
*
* @return void
- * @access public
- */ function view() {
+ */
+ function view() {
$recur = new CRM_Contribute_DAO_ContributionRecur();
$recur->id = $this->_id;
if ($recur->find(TRUE)) {
}
}
- function preProcess() {
- $context = CRM_Utils_Request::retrieve('context', 'String', $this);
- $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'view');
- $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
+ public function preProcess() {
+ $context = CRM_Utils_Request::retrieve('context', 'String', $this);
+ $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'view');
+ $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
$this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE);
$this->assign('contactId', $this->_contactId);
// check logged in url permission
CRM_Contact_Page_View::checkUserPermission($this);
- // set page title
- CRM_Contact_Page_View::setTitle($this->_contactId);
-
$this->assign('action', $this->_action);
if ($this->_permission == CRM_Core_Permission::EDIT && !CRM_Core_Permission::check('edit contributions')) {
}
/**
- * This function is the main function that is called when the page loads,
+ * the main function that is called when the page loads,
* it decides the which action has to be taken for the page.
*
- * return null
- * @access public
+ * @return null
*/
- function run() {
+ public function run() {
$this->preProcess();
if ($this->_action & CRM_Core_Action::VIEW) {
return parent::run();
}
}
-