Add EmailLogListPage
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / IUploadAction.class.php
1 <?php
2
3 namespace wcf\data;
4
5 /**
6 * Every database object action supporting file upload has to 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 * @since 3.0
13 */
14 interface IUploadAction
15 {
16 /**
17 * Validates the 'upload' action.
18 */
19 public function validateUpload();
20
21 /**
22 * Saves uploaded files and returns the data of the uploaded files.
23 *
24 * @return array
25 */
26 public function upload();
27 }