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