Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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: