Merge pull request #3462 from SoftCreatR/patch-14
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / IToggleAction.class.php
1 <?php
2 namespace wcf\data;
3
4 /**
5 * Every database object action whose objects can be toggled has to implement this
6 * interface.
7 *
8 * @author Matthias Schmidt
9 * @copyright 2001-2018 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\Data
12 */
13 interface IToggleAction {
14 /**
15 * Toggles the "isDisabled" status of the relevant objects.
16 */
17 public function toggle();
18
19 /**
20 * Validates the "toggle" action.
21 */
22 public function validateToggle();
23 }