Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
block_recentlyaccesseditems\observer Class Reference

Events observer. More...

Static Public Member Functions

static remove (\core\event\base $event)
 Remove record when course module is deleted.
 
static store (\core\event\base $event)
 Register items views in block_recentlyaccesseditems table.
 

Detailed Description

Events observer.

Stores all actions about modules viewed in block_recentlyaccesseditems table.

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

Member Function Documentation

◆ remove()

static block_recentlyaccesseditems\observer::remove ( \core\event\base $event)
static

Remove record when course module is deleted.

Parameters
core\event\base$event

◆ store()

static block_recentlyaccesseditems\observer::store ( \core\event\base $event)
static

Register items views in block_recentlyaccesseditems table.

When the item is view for the first time, a new record is created. If the item was viewed before, the time is updated.

Parameters
core\event\base$event

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