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: * Tells if the form was submitted by this button.
- 65: */
- 67: {
- 69: }
- 73: /**
- 74: * Sets the validation scope. Clicking the button validates only the controls within the specified scope.
- 77: */
- 79: {
- 80: // TODO: implement groups
- 83: }
- 87: /**
- 88: * Gets the validation scope.
- 90: */
- 92: {
- 94: }
- 98: /**
- 99: * Fires click event.
- 101: */
- 103: {
- 105: }
- 109: /**
- 110: * Submitted validator: has been button pressed?
- 113: */
- 115: {
- 117: }
- 119: }