Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | Public Attributes | List of all members
core_userfeedback Class Reference

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

Static Public Member Functions

static can_give_feedback ()
 Whether the current can give feedback. More...
 
static make_link ()
 Prepare and return the URL of the feedback site. More...
 
static print_reminder_block ()
 Displays the feedback reminder block.
 
static should_display_reminder ()
 Indicates whether the feedback reminder block should be shown or not. More...
 

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

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