Merge branch '5.3'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / IDeleteAction.class.php
1 <?php
2
3 namespace wcf\data;
4
5 /**
6 * Every database object action whose objects can be deleted (via AJAX) has to
7 * implement this interface.
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>
12 * @package WoltLabSuite\Core\Data
13 */
14 interface IDeleteAction
15 {
16 /**
17 * Deletes the relevant objects and returns the number of deleted objects.
18 *
19 * @return int
20 */
21 public function delete();
22
23 /**
24 * Validates the "delete" action.
25 */
26 public function validateDelete();
27 }