PageRenderTime 50ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/drupal/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php

https://github.com/michaelmcandrew/ste
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
  1. <?php
  2. /*
  3. +--------------------------------------------------------------------+
  4. | CiviCRM version 3.4 |
  5. +--------------------------------------------------------------------+
  6. | Copyright CiviCRM LLC (c) 2004-2011 |
  7. +--------------------------------------------------------------------+
  8. | This file is a part of CiviCRM. |
  9. | |
  10. | CiviCRM is free software; you can copy, modify, and distribute it |
  11. | under the terms of the GNU Affero General Public License |
  12. | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
  13. | |
  14. | CiviCRM is distributed in the hope that it will be useful, but |
  15. | WITHOUT ANY WARRANTY; without even the implied warranty of |
  16. | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
  17. | See the GNU Affero General Public License for more details. |
  18. | |
  19. | You should have received a copy of the GNU Affero General Public |
  20. | License and the CiviCRM Licensing Exception along |
  21. | with this program; if not, contact CiviCRM LLC |
  22. | at info[AT]civicrm[DOT]org. If you have questions about the |
  23. | GNU Affero General Public License or the licensing of CiviCRM, |
  24. | see the CiviCRM license FAQ at http://civicrm.org/licensing |
  25. +--------------------------------------------------------------------+
  26. */
  27. /**
  28. * Redefine the next action.
  29. *
  30. * @package CRM
  31. * @copyright CiviCRM LLC (c) 2004-2011
  32. * $Id$
  33. *
  34. */
  35. require_once 'CRM/Core/QuickForm/Action.php';
  36. class CRM_Core_QuickForm_Action_Next extends CRM_Core_QuickForm_Action {
  37. /**
  38. * class constructor
  39. *
  40. * @param object $stateMachine reference to state machine object
  41. *
  42. * @return object
  43. * @access public
  44. */
  45. function __construct( &$stateMachine ) {
  46. parent::__construct( $stateMachine );
  47. }
  48. /**
  49. * Processes the request.
  50. *
  51. * @param object $page CRM_Core_Form the current form-page
  52. * @param string $actionName Current action name, as one Action object can serve multiple actions
  53. *
  54. * @return void
  55. * @access public
  56. */
  57. function perform(&$page, $actionName) {
  58. $this->_stateMachine->perform( $page, $actionName, 'Next' );
  59. }
  60. }