X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPledge%2FPage%2FTab.php;h=f0480a0e5f9fff9a09af5ef22b9b1fd9efbfabd9;hb=76e7a76c36e82fca4901e87abf8f1afddf2384ef;hp=ffe7a7458c8a08e2fbaa0999440a95a324ab1d6d;hpb=00be918220e9ac8f6d25d12ed3c9c49fddd07ff7;p=civicrm-core.git diff --git a/CRM/Pledge/Page/Tab.php b/CRM/Pledge/Page/Tab.php index ffe7a7458c..f0480a0e5f 100644 --- a/CRM/Pledge/Page/Tab.php +++ b/CRM/Pledge/Page/Tab.php @@ -37,10 +37,9 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page { public $_contactId = NULL; /** - * This function is called when action is browse + * called when action is browse * - * return null - * @access public + * @return null */ public function browse() { $controller = new CRM_Core_Controller_Simple('CRM_Pledge_Form_Search', ts('Pledges'), $this->_action); @@ -65,10 +64,9 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page { } /** - * This function is called when action is view + * called when action is view * - * return null - * @access public + * @return null */ public function view() { $controller = new CRM_Core_Controller_Simple('CRM_Pledge_Form_PledgeView', @@ -83,10 +81,9 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page { } /** - * This function is called when action is update or new + * called when action is update or new * - * return null - * @access public + * @return null */ public function edit() { $controller = new CRM_Core_Controller_Simple('CRM_Pledge_Form_Pledge', @@ -101,9 +98,9 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page { } 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; @@ -126,10 +123,9 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page { } /** - * 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 - * @access public + * @return null */ public function run() { $this->preProcess(); @@ -220,4 +216,3 @@ class CRM_Pledge_Page_Tab extends CRM_Core_Page { $session->pushUserContext($url); } } -