Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core_userfeedback Class Reference

This Class contains helper functions for user feedback functionality. More...

Static Public Member Functions

static before_standard_footer_html_generation (before_standard_footer_html_generation $hook,)
 Callback for the before_standard_footer_html_generation hook to add a user feedback footer link if configured.
 
static can_give_feedback ()
 Whether the current can give feedback.
 
static make_link ()
 Prepare and return the URL of the feedback site.
 
static print_reminder_block ()
 Displays the feedback reminder block.
 
static should_display_reminder ()
 Indicates whether the feedback reminder block should be shown or not.
 

Public Attributes

int const REMIND_AFTER_UPGRADE = 1
 Ask user to give feedback a few days after each major upgrade.
 
int const REMIND_NEVER = 3
 Do not ask user to give feedback.
 
int const REMIND_PERIODICALLY = 2
 Ask user to give feedback periodically.
 

Detailed Description

This Class contains helper functions for user feedback functionality.

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

Member Function Documentation

◆ before_standard_footer_html_generation()

static core_userfeedback::before_standard_footer_html_generation ( before_standard_footer_html_generation $hook)
static

Callback for the before_standard_footer_html_generation hook to add a user feedback footer link if configured.

Parameters
before_standard_footer_html_generation$hook

◆ can_give_feedback()

static core_userfeedback::can_give_feedback ( )
static

Whether the current can give feedback.

Return values
bool

◆ make_link()

static core_userfeedback::make_link ( )
static

Prepare and return the URL of the feedback site.

Return values
moodle_url

◆ should_display_reminder()

static core_userfeedback::should_display_reminder ( )
static

Indicates whether the feedback reminder block should be shown or not.

Return values
bool

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