◆ get_file_info()
| file_browser::get_file_info |
( |
|
$context = NULL, |
|
|
|
$component = NULL, |
|
|
|
$filearea = NULL, |
|
|
|
$itemid = NULL, |
|
|
|
$filepath = NULL, |
|
|
|
$filename = NULL |
|
) |
| |
Looks up file_info instance.
- Parameters
-
| stdClass | $context | context object |
| string | $component | component |
| string | $filearea | file area |
| int | $itemid | item ID |
| string | $filepath | file path |
| string | $filename | file name |
- Return values
-
| file_info|null | file_info instance or null if not found or access not allowed |
◆ is_enrolled()
| file_browser::is_enrolled |
( |
|
$courseid | ) |
|
Check if user is enrolled into the course.
This function keeps a cache of enrolled courses because it may be called multiple times for many courses in one request
- Parameters
-
- Return values
-
◆ $enrolledcourses
| array file_browser::$enrolledcourses = null |
|
protected |
cached list of enrolled courses.
The documentation for this class was generated from the following file: