/drupal/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php
PHP | 69 lines | 10 code | 9 blank | 50 comment | 0 complexity | b4676ea061fa225abdbfec7c3181e4bd MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause, AGPL-1.0, LGPL-2.1
- <?php
- /*
- +--------------------------------------------------------------------+
- | CiviCRM version 3.4 |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2011 |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM. |
- | |
- | CiviCRM is free software; you can copy, modify, and distribute it |
- | under the terms of the GNU Affero General Public License |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
- | |
- | CiviCRM is distributed in the hope that it will be useful, but |
- | WITHOUT ANY WARRANTY; without even the implied warranty of |
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
- | See the GNU Affero General Public License for more details. |
- | |
- | You should have received a copy of the GNU Affero General Public |
- | License and the CiviCRM Licensing Exception along |
- | with this program; if not, contact CiviCRM LLC |
- | at info[AT]civicrm[DOT]org. If you have questions about the |
- | GNU Affero General Public License or the licensing of CiviCRM, |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing |
- +--------------------------------------------------------------------+
- */
- /**
- * Redefine the next action.
- *
- * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2011
- * $Id$
- *
- */
- require_once 'CRM/Core/QuickForm/Action.php';
- class CRM_Core_QuickForm_Action_Next extends CRM_Core_QuickForm_Action {
- /**
- * class constructor
- *
- * @param object $stateMachine reference to state machine object
- *
- * @return object
- * @access public
- */
- function __construct( &$stateMachine ) {
- parent::__construct( $stateMachine );
- }
- /**
- * Processes the request.
- *
- * @param object $page CRM_Core_Form 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) {
- $this->_stateMachine->perform( $page, $actionName, 'Next' );
- }
- }