|
| isVisible ($user_id=null) |
|
| isReadable ($user_id=null) |
|
| isWritable ($user_id=null) |
|
| isFileVisible ($fileref_or_id, $user_id) |
|
| getIcon ($role=Icon::DEFAULT_ROLE) |
|
| __construct ($folderdata=null) |
|
| getDescriptionTemplate () |
|
| getEditTemplate () |
|
| setDataFromEditTemplate ($request) |
|
| isFileEditable ($fileref_or_id, $user_id) |
|
| isFileWritable ($fileref_or_id, $user_id) |
|
| __construct ($folderdata=null) |
|
| getPermissionString () |
|
| checkPermission ($perm, $user_id=null) |
|
| getIcon ($role=Icon::DEFAULT_ROLE) |
|
| isVisible ($user_id=null) |
|
| isReadable ($user_id=null) |
|
| isWritable ($user_id=null) |
|
| isSubfolderAllowed ($user_id) |
|
| getDescriptionTemplate () |
|
| validateUpload (FileType $uploadedfile, $user_id) |
|
| getEditTemplate () |
|
| getFiles () |
|
| isFileVisible ($fileref_or_id, $user_id) |
|
| isFileDownloadable ($fileref_or_id, $user_id) |
|
| copySettings () |
|
Public Member Functions inherited from StandardFolder |
| __construct ($folderdata=null) |
|
| getIcon ($role=Icon::DEFAULT_ROLE) |
|
| getId () |
|
| __get ($attribute) |
|
| __set ($name, $value) |
|
| isVisible ($user_id) |
|
| isReadable ($user_id) |
|
| isWritable ($user_id) |
|
| isEditable ($user_id) |
|
| isSubfolderAllowed ($user_id) |
|
| getDescriptionTemplate () |
|
| getEditTemplate () |
|
| setDataFromEditTemplate ($request) |
|
| store () |
|
| validateUpload (FileType $file, $user_id) |
|
| getSubfolders () |
|
| getFiles () |
|
| getParent () |
|
| addFile (FileType $file, $user_id=null) |
|
| deleteFile ($file_ref_id) |
|
| createSubfolder (FolderType $foldertype) |
|
| deleteSubfolder ($subfolder_id) |
|
| delete () |
|
| isFileDownloadable ($fileref_or_id, $user_id) |
|
| isFileEditable ($fileref_or_id, $user_id) |
|
| isFileWritable ($fileref_or_id, $user_id) |
|
| getRangeObject () |
|
| getAdditionalColumns () |
|
| getContentForAdditionalColumn ($column_index) |
|
| getAdditionalColumnOrderWeigh ($column_index) |
|
| getAdditionalActionButtons () |
|
| copySettings () |
|
◆ __construct()
__construct |
( |
|
$folderdata = null | ) |
|
TimedFolder constructor.
- Parameters
-
array | null | $folderdata | data to create folder with |
◆ availableInRange()
static availableInRange |
( |
|
$range_id_or_object, |
|
|
|
$user_id |
|
) |
| |
|
static |
Provides the ranges this folder type is available in for the given user. Doesn't really make sense in other contexts than a course.
- Parameters
-
string | $range_id_or_object | the object (or object ID) to check for |
| $user_id | the user to check for (must have at least 'tutor' perm in given course) |
- Returns
- bool available or not?
Implements FolderType.
◆ getDescriptionTemplate()
getDescriptionTemplate |
( |
| ) |
|
◆ getEditTemplate()
Returns the edit template for this folder type.
- Returns
- Flexi
Implements FolderType.
◆ getIcon()
This function returns the suitable Icon for this folder type (TimedFolder)
- Returns
- Icon The icon object for this folder type
Implements FolderType.
◆ getTypeName()
◆ isFileEditable()
isFileEditable |
( |
|
$fileref_or_id, |
|
|
|
$user_id |
|
) |
| |
- Parameters
-
FileRef | string | $fileref_or_id | |
string | $user_id | |
- Returns
- bool
Implements FolderType.
◆ isFileVisible()
isFileVisible |
( |
|
$fileref_or_id, |
|
|
|
$user_id |
|
) |
| |
Determines if a user may see the file.
- Parameters
-
FileRef | string | $fileref_or_id | |
string | $user_id | |
- Returns
- bool
◆ isFileWritable()
isFileWritable |
( |
|
$fileref_or_id, |
|
|
|
$user_id |
|
) |
| |
Checks if a user has write permissions to a file.
- Parameters
-
FileRef | string | $fileref_or_id | |
string | $user_id | |
- Returns
- bool
Implements FolderType.
◆ isReadable()
isReadable |
( |
|
$user_id = null | ) |
|
Determines if a user may read the content of the folder.
- Parameters
-
string | $user_id | The user who wishes to read the folder's content. |
- Returns
- boolean True, if the user is permitted to read the folder, false otherwise.
Implements FolderType.
◆ isVisible()
isVisible |
( |
|
$user_id = null | ) |
|
Is the current folder visible for the given user? That depends on parent folder visibility and time settings.
- Parameters
-
string | null | $user_id | the user to check visibility for |
- Returns
- bool visible or not?
Implements FolderType.
◆ isWritable()
isWritable |
( |
|
$user_id = null | ) |
|
Determines if a user may have write permissions for the folder.
- Parameters
-
string | $user_id | The user who wishes to write into the folder. |
- Returns
- boolean True, if the user is permitted to write into the folder, false otherwise.
Implements FolderType.
◆ setDataFromEditTemplate()
setDataFromEditTemplate |
( |
|
$request | ) |
|
Stores the data which was edited in the edit template
- Returns
- mixed The template with the edited data
Implements FolderType.
◆ $end_time
◆ $sorter
◆ $start_time
The documentation for this class was generated from the following file: