◆ availableInRange()
static availableInRange |
( |
|
$range_id_or_object, |
|
|
|
$user_id |
|
) |
| |
|
static |
- Parameters
-
Object | string | $range_id_or_object | |
string | $user_id | |
- Returns
- bool
Implements FolderType.
◆ getDescriptionTemplate()
getDescriptionTemplate |
( |
| ) |
|
Returns a description template for CoursePublicFolders.
- Returns
- string A string describing this folder type.
Implements FolderType.
◆ getEditTemplate()
Returns the edit template for this folder type.
- Returns
- Flexi
Implements FolderType.
◆ getIcon()
Returns the name of the icon shape that shall be used with the FolderType implementation.
- Parameters
-
- Returns
- Icon icon for the FolderType implementation.
Implements FolderType.
◆ getTypeName()
◆ hasWorldwideAccess()
Determines, if the folder is accessible worldwide.
- Returns
- bool True, if the folder is accessible worldwide, false otherwise.
◆ isFileDownloadable()
isFileDownloadable |
( |
|
$file_id, |
|
|
|
$user_id |
|
) |
| |
Files in CoursePublicFolders are downloadable for all logged in users.
- Parameters
-
string | $file_id | The ID to a FileRef. |
string | $user_id | The user who wishes to downlaod the file. |
- Returns
- bool
Implements FolderType.
◆ isReadable()
CoursePublicFolders are readable for all logged in users.
- Parameters
-
string | $user_id | The user who wishes to read the folder. |
- Returns
- bool True
Implements FolderType.
◆ isVisible()
CoursePublicFolders are visible for all logged in users. If ENABLE_FREE_ACCESS is set to 'courses_only' or '1', the folder is visible for everyone. In case, the worldwide access option for the folder is set, the folder is visible worldwide.
- Parameters
-
string | $user_id | The user who wishes to see the folder. |
- Returns
- bool True
Implements FolderType.
◆ setDataFromEditTemplate()
setDataFromEditTemplate |
( |
|
$request | ) |
|
Sets the data from a submitted edit template.
- Parameters
-
array | $request | The data from the edit template. |
- Returns
- FolderType
Implements FolderType.
◆ $sorter
The documentation for this class was generated from the following file: