| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* Redefine the refresh action.
/**
* Class constructor
*
- * @param object $stateMachine reference to state machine object
+ * @param object $stateMachine
+ * Reference to state machine object.
*
* @return \CRM_Core_QuickForm_Action_Refresh
- @access public
*/
- function __construct(&$stateMachine) {
+ public function __construct(&$stateMachine) {
parent::__construct($stateMachine);
}
/**
* Processes the request.
*
- * @param CRM_Core_Form $page the current form-page
- * @param string $actionName Current action name, as one Action object can serve multiple actions
+ * @param CRM_Core_Form $page
+ * The current form-page.
+ * @param string $actionName
+ * Current action name, as one Action object can serve multiple actions.
*
* @return void
- * @access public
*/
- function perform(&$page, $actionName) {
+ public function perform(&$page, $actionName) {
// save the form values and validation status to the session
$page->isFormBuilt() or $page->buildForm();
$data['values'][$pageName] = $page->exportValues();
$data['valid'][$pageName] = $page->validate();
-
// Modal form and page is invalid: don't go further
if ($page->controller->isModal() && !$data['valid'][$pageName]) {
return $page->handle('display');
return $page->handle('jump');
}
-}
+}