Source for file SubmitButton.php
Documentation is available at SubmitButton.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see https://nette.org
- 12: *
- 19: */
- 29: /**
- 30: * Submittable button control.
- 31: *
- 35: */
- 37: {
- 38: /** @var array of event handlers; Occurs when the button is clicked and form is successfully validated; function(SubmitButton $sender) */
- 41: /** @var array of event handlers; Occurs when the button is clicked and form is not validated; function(SubmitButton $sender) */
- 49: /**
- 51: */
- 53: {
- 56: }
- 60: /**
- 61: * Tells if the form was submitted by this button.
- 63: */
- 65: {
- 67: }
- 71: /**
- 72: * Sets the validation scope. Clicking the button validates only the controls within the specified scope.
- 75: */
- 77: {
- 78: // TODO: implement groups
- 81: }
- 85: /**
- 86: * Gets the validation scope.
- 88: */
- 90: {
- 92: }
- 96: /**
- 97: * Fires click event.
- 99: */
- 101: {
- 103: }
- 107: /**
- 108: * Submitted validator: has been button pressed?
- 111: */
- 113: {
- 115: }
- 117: }