◆ availableInRange()
static availableInRange |
( |
|
$range_id_or_object, |
|
|
|
$user_id |
|
) |
| |
|
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.
- Parameters
-
string | Object | $range_id_or_object | id or object of type "course", "user", "institute", "message" |
string | $user_id | |
- Returns
- boolean True, if creatable, false otherwise.
Implements FolderType.
◆ createTopFolder()
static createTopFolder |
( |
|
$range_id | ) |
|
|
static |
Creates a root folder (top folder) for a mvv object referenced by its ID.
- Parameters
-
string | $range_id | The ID of a mvv object for which a root folder shall be generated. |
- Returns
- MVVFolder A new MVVFolder as root folder for a mvv object.
◆ findTopFolder()
static findTopFolder |
( |
|
$range_id | ) |
|
|
static |
Retrieves the top folder for a mvv object.
- Parameters
-
string | $range_id | The mvv object-ID of the mvv object whose top folder shall be returned |
- Returns
- MVVFolder|null The top folder of the mvv object identified by $range_id. If the folder can't be retrieved, null is returned.
◆ getDescriptionTemplate()
getDescriptionTemplate |
( |
| ) |
|
Returns a description template for PublicFolders.
- Returns
- string A string describing this folder type.
Implements FolderType.
◆ getTypeName()
Returns a localised name of the PublicFolder type.
- Returns
- string The localised name of this folder type.
Implements FolderType.
◆ isFileDownloadable()
isFileDownloadable |
( |
|
$file_ref_id, |
|
|
|
$user_id |
|
) |
| |
◆ isReadable()
◆ isSubfolderAllowed()
isSubfolderAllowed |
( |
|
$user_id | ) |
|
The documentation for this class was generated from the following file: