Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
assign_files Class Reference

An assign file class that extends rendererable class and is used by the assign module. More...

Inheritance diagram for assign_files:
renderable

Public Member Functions

 __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.
 

Public Attributes

stdClass $cm
 $cm course module
 
context $context
 $context
 
stdClass $course
 $course
 
string $dir
 $context
 
MoodleQuickForm $portfolioform
 $portfolioform
 

Detailed Description

An assign file class that extends rendererable class and is used by the assign module.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __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

Member Function Documentation

◆ get_file_url()

assign_files::get_file_url ( stored_file $file)

Get the URL used to view the file.

Parameters
stored_file
Return values
moodle_url

◆ get_modified_time()

assign_files::get_modified_time ( stored_file $file)

Get the modified time of the specified file.

Parameters
stored_file$file
Return values
string

◆ 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: