Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
mod_data\output\add_entries_action Class Reference
Inheritance diagram for mod_data\output\add_entries_action:

Public Member Functions

 __construct (int $id)
 The class constructor.
 
 export_for_template (\renderer_base $output)
 Export the data for the mustache template.
 

Constructor & Destructor Documentation

◆ __construct()

mod_data\output\add_entries_action::__construct ( int $id)

The class constructor.

Parameters
int$idThe database module id.
bool$hasentriesWhether entries exist.

Member Function Documentation

◆ export_for_template()

mod_data\output\add_entries_action::export_for_template ( \renderer_base $output)

Export the data for the mustache template.

Parameters
renderer_base$outputThe renderer to be used to render the add entries button.
Return values
stdClassor null if the user has no permission to add new entries.

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