Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
mod_feedback\output\standard_action_bar Class Reference
Inheritance diagram for mod_feedback\output\standard_action_bar:
mod_feedback\output\base_action_bar renderable templatable

Public Member Functions

 __construct (int $cmid, bool $viewcompletion, ?int $startpage=null, ?int $courseid=null)
 standard_action_bar constructor.
 
 export_for_template (renderer_base $output)
 Export the data so it can be used as the context for a mustache template.
 
 get_items ()
 Return the items to be used in the tertiary nav.
 

Protected Attributes

int $cmid
 $cmid The module id
 
object $context
 $context The context we are in
 
object $course
 $course The course we are in
 
object $feedback
 $feedback The activity record that is being viewed
 
array $urlparams
 $urlparams The default params to be used when creating urls
 

Constructor & Destructor Documentation

◆ __construct()

mod_feedback\output\standard_action_bar::__construct ( int $cmid,
bool $viewcompletion,
?int $startpage = null,
?int $courseid = null )

standard_action_bar constructor.

Parameters
int$cmid
bool$viewcompletionWhether or not the user can finish the feedback
int | null$startpageThe page to resume with.
int | null$courseidThe course that the feedback is being accessed from. If null, courseid will be set via the $cmid relationship

Member Function Documentation

◆ export_for_template()

mod_feedback\output\base_action_bar::export_for_template ( renderer_base $output)
inherited

Export the data so it can be used as the context for a mustache template.

Parameters
renderer_base$output
Return values
array

Implements templatable.

◆ get_items()

mod_feedback\output\standard_action_bar::get_items ( )

Return the items to be used in the tertiary nav.

Return values
array

Reimplemented from mod_feedback\output\base_action_bar.


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