◆ 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.
Reimplemented from StandardFolder.
◆ checkPermission()
| checkPermission |
( |
|
$user_id | ) |
|
This method check the permission (global and if he is in the group) for a given user
- Parameters
-
- Returns
- bool True if user have permission, False otherwise
◆ getDescriptionTemplate()
| getDescriptionTemplate |
( |
| ) |
|
Returns the description template for a instance of a GroupFolder type
- Returns
- mixed A description template for a instance of the type GroupFolder
Reimplemented from StandardFolder.
◆ getEditTemplate()
This method returns the special part for the edit template for the folder type GroupFolder
- Returns
- mixed A edit template for a instance of the type GroupFolder
Reimplemented from StandardFolder.
◆ getIcon()
This function returns the suitable Icon for this folder type (GroupFolder)
- Returns
- Icon The icon object for this folder type
Reimplemented from StandardFolder.
◆ getTypeName()
Returns the name of the GroupFolder type.
- Returns
- string the name of the GroupFolder type
Reimplemented from StandardFolder.
◆ isReadable()
Check if this GroupFolder instance is readable for this user or not.
- Parameters
-
- Returns
- bool True, if the user is in this group or is the lecturer, false otherwise
Reimplemented from StandardFolder.
◆ isSubfolderAllowed()
| isSubfolderAllowed |
( |
|
$user_id | ) |
|
Check if a Subfolder can be created.
- Returns
- bool True, if the user is in this group or is the lecturer, false otherwise
Reimplemented from StandardFolder.
◆ isVisible()
Check if this GroupFolder instance is visible for this user or not.
- Parameters
-
- Returns
- bool True, if the user is in this group or is the lecturer, false otherwise
Reimplemented from StandardFolder.
◆ isWritable()
Check if this GroupFolder instance is writable for this user or not.
- Parameters
-
- Returns
- bool True, if the user is in this group or is the lecturer, false otherwise
Reimplemented from StandardFolder.
◆ setDataFromEditTemplate()
| setDataFromEditTemplate |
( |
|
$request | ) |
|
Stores the data which was edited in the edit template
- Returns
- mixed The template with the edited data
Reimplemented from StandardFolder.
◆ $group_id
◆ $must_have_perm
| $must_have_perm = "tutor" |
|
protected |
◆ $sorter
The documentation for this class was generated from the following file: