Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
mod_forum\h5p\canedit Class Reference

Static Public Member Functions

static can_edit_content (\stored_file $file)
 Check if the user can edit an H5P file.
 

Member Function Documentation

◆ can_edit_content()

static mod_forum\h5p\canedit::can_edit_content ( \stored_file $file)
static

Check if the user can edit an H5P file.

In that case, this method will return true if the file belongs to mod_forum filearea is post and the user can edit the post where the H5P is.

Parameters
stored_file$fileThe H5P file to check.
Return values
booleanWhether the user can edit or not the given file.
Since
Moodle 4.0

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