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: */
7:
8: namespace Nette\Forms;
9:
10: use Nette;
11:
12:
13: /**
14: * Defines method that must be implemented to allow a control to submit web form.
15: *
16: * @author David Grudl
17: */
18: interface ISubmitterControl extends IControl
19: {
20:
21: /**
22: * Tells if the form was submitted by this button.
23: * @return bool
24: */
25: function isSubmittedBy();
26:
27: /**
28: * Gets the validation scope. Clicking the button validates only the controls within the specified scope.
29: * @return mixed
30: */
31: function getValidationScope();
32:
33: }
34: