ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
File.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
18 interface 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 
110  public function allowsUserDefinedFileDescriptions();
111 
124  public function withParameterName($parameter_name);
125 
131  public function getParametername();
132 }
getFileSizeLimit()
Get the max file size.
Class DataSize.
Definition: DataSize.php:15
withParameterName($parameter_name)
Get a dropzone like this where each uploaded file is identified over a given identifier.
withMaxFiles($max)
Get a dropzone like this, restricting the max number of files that can be uploaded.
withUserDefinedDescriptionEnabled($state)
Get a dropzone like this, allowing to set a description for each file being uploaded.
getMaxFiles()
Get the max number of files that can be uploaded.
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.
withUserDefinedFileNamesEnabled($state)
Get a dropzone like this, allowing to set the filename for each file being uploaded.
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
withAllowedFileTypes(array $types)
Get a dropzone like this only accepting the submitted file types for uploading, e.g.
getUploadUrl()
Get the upload URL where the files are uploaded.
withFileSizeLimit(DataSize $limit)
Get a dropzone like this, restricting the max file size of the files to the given limit...
Create styles array
The data for the language used.
withUploadUrl($url)
Get a dropzone like this where the files are uploaded to the given URL.
$url
allowsUserDefinedFileDescriptions()
Check if the dropzone supports to enter file descriptions for each file being uploaded.