Merge branch '3.1' into 5.2
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / IDeleteAction.class.php
1 <?php
2 namespace wcf\data;
3
4 /**
5 * Every database object action whose objects can be deleted (via AJAX) has to
6 * implement this interface.
7 *
8 * @author Matthias Schmidt
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\Data
12 */
13 interface IDeleteAction {
14 /**
15 * Deletes the relevant objects and returns the number of deleted objects.
16 *
17 * @return integer
18 */
19 public function delete();
20
21 /**
22 * Validates the "delete" action.
23 */
24 public function validateDelete();
25 }