An assign file class that extends rendererable class and is used by the assign module.
More...
|
| __construct (context $context, $sid, $filearea, $component, $course=null, $cm=null) |
| The constructor.
|
|
| get_file_url (stored_file $file) |
| Get the URL used to view the file.
|
|
| get_modified_time (stored_file $file) |
| Get the modified time of the specified file.
|
|
| preprocess ($dir, $filearea, $component) |
| Preprocessing the file list to add the portfolio links if required.
|
|
|
stdClass | $cm |
| $cm course module
|
|
context | $context |
| $context
|
|
stdClass | $course |
| $course
|
|
string | $dir |
| $context
|
|
MoodleQuickForm | $portfolioform |
| $portfolioform
|
|
An assign file class that extends rendererable class and is used by the assign module.
- Copyright
- 2012 NetSpot
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
assign_files::__construct |
( |
context | $context, |
|
|
| $sid, |
|
|
| $filearea, |
|
|
| $component, |
|
|
| $course = null, |
|
|
| $cm = null ) |
The constructor.
- Parameters
-
context | $context | |
int | $sid | |
string | $filearea | |
string | $component | |
stdClass | $course | |
stdClass | $cm | |
◆ get_file_url()
Get the URL used to view the file.
- Parameters
-
- Return values
-
◆ get_modified_time()
Get the modified time of the specified file.
- Parameters
-
- Return values
-
◆ preprocess()
assign_files::preprocess |
( |
| $dir, |
|
|
| $filearea, |
|
|
| $component ) |
Preprocessing the file list to add the portfolio links if required.
- Parameters
-
array | $dir | |
string | $filearea | |
string | $component | |
The documentation for this class was generated from the following file:
- mod/assign/renderable.php