◆ __construct()
__construct |
( |
|
$folderdata = null | ) |
|
◆ __get()
◆ __set()
◆ addFile()
addFile |
( |
FileType |
$file, |
|
|
|
$user_id = null |
|
) |
| |
◆ availableInRange()
static availableInRange |
( |
|
$range_id_or_object, |
|
|
|
$user_id |
|
) |
| |
|
static |
This method tells if the FolderType implementation can be created in a specific range type.
Some FolderType implementations aren't useful in conjunction with a specific range type. An FolderType implementation therefore must provide this method so that other parts of the file area system can easily check if folders of the FolderType implementation can be placed inside standard folders.
- Parameters
-
string | Object | $range_id_or_object | id or object of type "course", "user", "institute", "message" |
string | $user_id | |
- Returns
- boolean True, if creatable, false otherwise.
Implements FolderType.
◆ copySettings()
◆ createSubfolder()
- Parameters
-
- Returns
- FolderType|null
Implements FolderType.
◆ delete()
◆ deleteFile()
deleteFile |
( |
|
$file_ref_id | ) |
|
◆ deleteSubfolder()
deleteSubfolder |
( |
|
$subfolder_id | ) |
|
◆ getAdditionalActionButtons()
getAdditionalActionButtons |
( |
| ) |
|
◆ getAdditionalColumnOrderWeigh()
getAdditionalColumnOrderWeigh |
( |
|
$column_index | ) |
|
Returns an integer or text that marks the value the content of the given column should be ordered by.
- Parameters
-
- Returns
- mixed : order value
Implements FolderType.
◆ getAdditionalColumns()
Returns an associative array of additional colums with the index the id of the column and their values as the localized names of the columns
- Returns
- array('col1' => _("Anfragestatus"))
Implements FolderType.
◆ getContentForAdditionalColumn()
getContentForAdditionalColumn |
( |
|
$column_index | ) |
|
Returns the content for that additional column, if it exists. You can return null a string or a Flexi as the content.
- Parameters
-
- Returns
- null|string|Flexi
Implements FolderType.
◆ getDescriptionTemplate()
getDescriptionTemplate |
( |
| ) |
|
◆ getEditTemplate()
◆ getFiles()
◆ getIcon()
◆ getId()
◆ getParent()
◆ getRangeObject()
returns the object for the range_id of the folder
- Returns
- Course|Institute|User
◆ getSubfolders()
◆ getTypeName()
◆ getValidationMessages()
getValidationMessages |
( |
|
$upload_type, |
|
|
|
$newfile |
|
) |
| |
|
protected |
◆ isEditable()
◆ isFileDownloadable()
isFileDownloadable |
( |
|
$fileref_or_id, |
|
|
|
$user_id |
|
) |
| |
- Parameters
-
FileRef | string | $fileref_or_id | |
string | $user_id | |
- Returns
- bool
Implements FolderType.
◆ isFileEditable()
isFileEditable |
( |
|
$fileref_or_id, |
|
|
|
$user_id |
|
) |
| |
- Parameters
-
FileRef | string | $fileref_or_id | |
string | $user_id | |
- Returns
- bool
Implements FolderType.
◆ isFileWritable()
isFileWritable |
( |
|
$fileref_or_id, |
|
|
|
$user_id |
|
) |
| |
Checks if a user has write permissions to a file.
For standard folders write permissions are granted if the user is the owner of the file or if the user has at least tutor permissions on the Stud.IP object specified by range_id (such objects may be courses or institutes for example).
- Parameters
-
FileRef | string | $fileref_or_id | |
string | $user_id | |
- Returns
- bool
Implements FolderType.
◆ isReadable()
◆ isSubfolderAllowed()
isSubfolderAllowed |
( |
|
$user_id | ) |
|
◆ isVisible()
◆ isVisibleNonRecursive()
isVisibleNonRecursive |
( |
|
$user_id | ) |
|
|
protected |
◆ isWritable()
◆ setDataFromEditTemplate()
setDataFromEditTemplate |
( |
|
$request | ) |
|
- Parameters
-
- Returns
- FolderType|MessageBox
Implements FolderType.
◆ store()
◆ validateUpload()
validateUpload |
( |
FileType |
$file, |
|
|
|
$user_id |
|
) |
| |
◆ $folderdata
◆ $sorter
The documentation for this class was generated from the following file: