ILIAS  release_7 Revision v7.30-3-g800a261c036
File.php
Go to the documentation of this file.
1<?php
2
4
8
18interface File extends Component, Droppable
19{
20
27 public function withUploadUrl($url);
28
34 public function getUploadUrl();
35
43 public function withAllowedFileTypes(array $types);
44
48 public function getAllowedFileTypes();
49
56 public function withMaxFiles($max);
57
63 public function getMaxFiles();
64
71 public function withFileSizeLimit(DataSize $limit);
72
78 public function getFileSizeLimit();
79
87 public function withUserDefinedFileNamesEnabled($state);
88
94 public function allowsUserDefinedFileNames();
95
103 public function withUserDefinedDescriptionEnabled($state);
104
111
124 public function withParameterName($parameter_name);
125
131 public function getParametername();
132}
An exception for terminatinating execution or to throw for unit testing.
Class DataSize.
Definition: DataSize.php:16
A component is the most general form of an entity in the UI.
Definition: Component.php:14
withMaxFiles($max)
Get a dropzone like this, restricting the max number of files that can be uploaded.
withFileSizeLimit(DataSize $limit)
Get a dropzone like this, restricting the max file size of the files to the given limit.
getParametername()
Get the identifier used to retrieve and identify an uploaded file server side.
allowsUserDefinedFileNames()
Check if the dropzone supports to enter custom file names for each file being uploaded.
allowsUserDefinedFileDescriptions()
Check if the dropzone supports to enter file descriptions for each file being uploaded.
getMaxFiles()
Get the max number of files that can be uploaded.
withUploadUrl($url)
Get a dropzone like this where the files are uploaded to the given URL.
withAllowedFileTypes(array $types)
Get a dropzone like this only accepting the submitted file types for uploading, e....
getUploadUrl()
Get the upload URL where the files are uploaded.
getFileSizeLimit()
Get the max file size.
withUserDefinedDescriptionEnabled($state)
Get a dropzone like this, allowing to set a description for each file being uploaded.
withUserDefinedFileNamesEnabled($state)
Get a dropzone like this, allowing to set the filename for each file being uploaded.
withParameterName($parameter_name)
Get a dropzone like this where each uploaded file is identified over a given identifier.
$url