Source for file ISubmitterControl.php

Documentation is available at ISubmitterControl.php

  1. 1: <?php
  2. 2:  
  3. 3: /**
  4. 4:  * Nette Framework
  5. 5:  *
  6. 6:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  7. 7:  * @license    http://nettephp.com/license  Nette license
  8. 8:  * @link       http://nettephp.com
  9. 9:  * @category   Nette
  10. 10:  * @package    Nette\Forms
  11. 11:  */
  12. 12:  
  13. 13:  
  14. 14:  
  15. 15: /**
  16. 16:  * Defines method that must be implemented to allow a control to submit web form.
  17. 17:  *
  18. 18:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  19. 19:  * @package    Nette\Forms
  20. 20:  */
  21. 21: interface ISubmitterControl extends IFormControl
  22. 22: {
  23. 23:  
  24. 24:     /**
  25. 25:      * Tells if the form was submitted by this button.
  26. 26:      * @return bool 
  27. 27:      */
  28. 28:     function isSubmittedBy();
  29. 29:  
  30. 30:     /**
  31. 31:      * Gets the validation scope. Clicking the button validates only the controls within the specified scope.
  32. 32:      * @return mixed 
  33. 33:      */
  34. 34:     function getValidationScope();
  35. 35:  
  36. 36: }