Stud.IP
4.2 Revision
|
Public Member Functions | |
__construct ($folder) | |
__get ($attribute) | |
getIcon ($role) | |
getId () | |
isVisible ($user_id) | |
isReadable ($user_id) | |
isWritable ($user_id) | |
isEditable ($user_id) | |
isSubfolderAllowed ($user_id) | |
getDescriptionTemplate () | |
getParent () | |
getSubfolders () | |
getFiles () | |
getEditTemplate () | |
setDataFromEditTemplate ($folderdata) | |
store () | |
validateUpload ($file, $user_id) | |
createFile ($file) | |
deleteFile ($file_ref_id) | |
createSubfolder (FolderType $folderdata) | |
deleteSubfolder ($subfolder_id) | |
delete () | |
isFileDownloadable ($file_ref_id, $user_id) | |
isFileEditable ($file_ref_id, $user_id) | |
isFileWritable ($file_ref_id, $user_id) | |
Static Public Member Functions | |
static | getTypeName () |
static | availableInRange ($range_id_or_object, $user_id) |
Protected Attributes | |
$user = null | |
$folder | |
__construct | ( | $folder | ) |
__get | ( | $attribute | ) |
Overloaded magic get method to get the attributes of the folder object.
|
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.
string | Object | $range_id_or_object | id or object of type "course", "user", "institute", "message" |
string | $user_id |
Implements FolderType.
createFile | ( | $file | ) |
InboxOutboxFolders do not allow creating files.
Implements FolderType.
createSubfolder | ( | FolderType | $folderdata | ) |
InboxOutboxFolders do not allow the creation of subfolders.
Implements FolderType.
delete | ( | ) |
Deletes the Folder object of an InboxOutboxFolder instance.
Implements FolderType.
deleteFile | ( | $file_ref_id | ) |
InboxOutboxFolders do not allow deleting files.
Implements FolderType.
deleteSubfolder | ( | $subfolder_id | ) |
InboxOutboxFolders do not allow deleting subfolders.
Implements FolderType.
getDescriptionTemplate | ( | ) |
InboxOutboxFolders don't have a description template.
Implements FolderType.
getEditTemplate | ( | ) |
InboxOutboxFolders do not have an edit template.
Implements FolderType.
getFiles | ( | ) |
InboxOutboxFolders do not contain any files since the InboxOutboxFolder type is not meant to be used directly.
Implements FolderType.
getIcon | ( | $role | ) |
Returns the Icon object for the InboxOutboxFolder type.
Implements FolderType.
getId | ( | ) |
Returns the ID of the folder object of this InboxOutboxFolder.
Implements FolderType.
getParent | ( | ) |
Returns the parent InboxOutboxFolder.
Implements FolderType.
getSubfolders | ( | ) |
InboxOutboxFolders do not allow subfolders.
Implements FolderType.
|
static |
Returns a localised name of the InboxOutboxFolder type.
Implements FolderType.
isEditable | ( | $user_id | ) |
InboxOutboxFolders are not editable.
Implements FolderType.
isFileDownloadable | ( | $file_ref_id, | |
$user_id | |||
) |
Files are only downloadable for the owner.
Implements FolderType.
isFileEditable | ( | $file_ref_id, | |
$user_id | |||
) |
InboxOutboxFolders do not allow editing files.
Implements FolderType.
isFileWritable | ( | $file_ref_id, | |
$user_id | |||
) |
InboxOutboxFolders do not allow writing files.
Implements FolderType.
isReadable | ( | $user_id | ) |
InboxOutboxFolders are only readable for the owner.
Implements FolderType.
isSubfolderAllowed | ( | $user_id | ) |
InboxOutboxFolders do not allow subfolders.
Implements FolderType.
isVisible | ( | $user_id | ) |
InboxOutboxFolders are only visible for the owner.
Implements FolderType.
isWritable | ( | $user_id | ) |
InboxOutboxFolders are not writable.
Implements FolderType.
setDataFromEditTemplate | ( | $folderdata | ) |
InboxOutboxFolders do not have an edit template.
Implements FolderType.
store | ( | ) |
Implements FolderType.
validateUpload | ( | $file, | |
$user_id | |||
) |
InboxOutboxFolders do not allow uploads.
Implements FolderType.
|
protected |
|
protected |