Commit | Line | Data |
---|---|---|
a427a8c8 | 1 | <?php |
a9229942 | 2 | |
a427a8c8 MS |
3 | namespace wcf\data; |
4 | ||
5 | /** | |
6 | * Every database object action whose objects can be toggled has to implement this | |
7 | * interface. | |
a9229942 TD |
8 | * |
9 | * @author Matthias Schmidt | |
10 | * @copyright 2001-2019 WoltLab GmbH | |
11 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
a427a8c8 | 12 | */ |
a9229942 TD |
13 | interface IToggleAction |
14 | { | |
15 | /** | |
16 | * Toggles the "isDisabled" status of the relevant objects. | |
17 | */ | |
18 | public function toggle(); | |
19 | ||
20 | /** | |
21 | * Validates the "toggle" action. | |
22 | */ | |
23 | public function validateToggle(); | |
a427a8c8 | 24 | } |