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 http://nettephp.com
- 12: *
- 18: */
- 28: /**
- 29: * Submittable button control.
- 30: *
- 34: *
- 37: */
- 39: {
- 40: /** @var array of function(SubmitButton $sender); Occurs when the button is clicked and form is successfully validated */
- 43: /** @var array of function(SubmitButton $sender); Occurs when the button is clicked and form is not validated */
- 51: /**
- 53: */
- 55: {
- 58: }
- 62: /**
- 63: * Sets 'pressed' indicator.
- 66: */
- 68: {
- 74: }
- 76: }
- 80: /**
- 81: * Tells if the form was submitted by this button.
- 83: */
- 85: {
- 87: }
- 91: /**
- 92: * Sets the validation scope. Clicking the button validates only the controls within the specified scope.
- 95: */
- 97: {
- 98: // TODO: implement groups
- 101: }
- 105: /**
- 106: * Gets the validation scope.
- 108: */
- 110: {
- 112: }
- 116: /**
- 117: * Fires click event.
- 119: */
- 121: {
- 123: }
- 127: /**
- 128: * Submitted validator: has been button pressed?
- 131: */
- 133: {
- 135: }
- 137: }