Commit | Line | Data |
---|---|---|
a427a8c8 MS |
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 | |
c839bd49 | 9 | * @copyright 2001-2018 WoltLab GmbH |
a427a8c8 | 10 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> |
e71525e4 | 11 | * @package WoltLabSuite\Core\Data |
a427a8c8 MS |
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 | } |