◆ __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 |
( |
| ) |
|
Returns the description template for a instance of a TimedFolder type.
- Returns
- Flexi_Template A description template for a instance of the type TimedFolder
Implements FolderType.
◆ getEditTemplate()
Returns the edit template for this folder type.
- Returns
- Flexi_Template
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()
◆ 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.
◆ 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: