Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
mod_lti\output\course_tools_page_header Class Reference

Course tools page header renderable, containing the data for the page zero state and 'add tool' button. More...

Inheritance diagram for mod_lti\output\course_tools_page_header:

Public Member Functions

 __construct (protected int $courseid, protected int $toolcount, protected bool $canadd)
 Constructor.
 
 export_for_template (renderer_base $output)
 Export the header's data for template use.
 

Detailed Description

Course tools page header renderable, containing the data for the page zero state and 'add tool' button.

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

Constructor & Destructor Documentation

◆ __construct()

mod_lti\output\course_tools_page_header::__construct ( protected int $courseid,
protected int $toolcount,
protected bool $canadd )

Constructor.

Parameters
int$courseidthe course id.
int$toolcountthe number of tools available in the course.
bool$canaddwhether the user can add tools to the course or not.

Member Function Documentation

◆ export_for_template()

mod_lti\output\course_tools_page_header::export_for_template ( renderer_base $output)

Export the header's data for template use.

Parameters
renderer_base$output
Return values
objectthe data.

Implements templatable.


The documentation for this class was generated from the following file: