Stud.IP
6.0
|
Static Public Member Functions | |
static | getTypeName () |
static | availableInRange ($range_id_or_object, $user_id) |
Static Public Member Functions inherited from StandardFolder | |
static | getTypeName () |
static | availableInRange ($range_id_or_object, $user_id) |
Additional Inherited Members | |
Static Public Attributes inherited from StandardFolder | |
static | $sorter = 0 |
Protected Member Functions inherited from StandardFolder | |
isVisibleNonRecursive ($user_id) | |
getValidationMessages ($upload_type, $newfile) | |
Protected Attributes inherited from StandardFolder | |
$folderdata | |
This is a folder type for files associated with Resource objects. Its purpose is to allow users to link or add relevant files to a Resource. An an example, one could attach a fire escape plan to a Building resource.
|
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.
createSubfolder | ( | FolderType | $foldertype | ) |
$foldertype | FolderType |
Implements FolderType.
deleteSubfolder | ( | $subfolder_id | ) |
Deletes a subfolder in this folder.
string | $subfolder_id | The ID of the subfolder that shall be deleted. |
Implements FolderType.
getEditTemplate | ( | ) |
returns template form, must not contain opening and closing <form> tags
Implements FolderType.
getIcon | ( | $role = Icon::DEFAULT_ROLE | ) |
Returns the name of the icon shape that shall be used with the FolderType implementation.
string | $role | role of icon |
Implements FolderType.
getSubfolder | ( | ) |
|
static |
Returns a human-friendly representation of the FolderType's name.
Implements FolderType.
isEditable | ( | $user_id | ) |
Determines if a user may have edit permissions for the folder.
string | $user_id | The user who wishes to edit the folder. |
Implements FolderType.
isFileDownloadable | ( | $file_ref_id, | |
$user_id | |||
) |
Determines if a user may download the file.
string | $file_ref_id | The ID of the FileRef object of a file that shall be downloaded. |
string | $user_id | The user who wishes to download the file. |
Implements FolderType.
isFileEditable | ( | $file_ref_id, | |
$user_id | |||
) |
Determines if a user may edit the file.
string | $file_ref_id | The ID of the FileRef object of a file that shall be edited. |
string | $user_id | The user who wishes to edit the file. |
Implements FolderType.
isFileWritable | ( | $file_ref_id, | |
$user_id | |||
) |
Determines if a user may write to the file.
string | $file_id | The FileRef object of a file that shall be written. |
string | $user_id | The user who wishes to write to the file. |
Implements FolderType.
isReadable | ( | $user_id | ) |
Determines if a user may read the content of the folder.
string | $user_id | The user who wishes to read the folder's content. |
Implements FolderType.
isSubfolderAllowed | ( | $user_id | ) |
Determines if a user may create a subfolder in this folder.
string | $user_id | The user who wishes to create a subfolder. |
Implements FolderType.
isVisible | ( | $user_id | ) |
isWritable | ( | $user_id | ) |
Determines if a user may have write permissions for the folder.
string | $user_id | The user who wishes to write into the folder. |
Implements FolderType.
setDataFromEditTemplate | ( | $folderdata | ) |
gets data from edit form
ArrayAccess | Request | $folderdata |
Implements FolderType.