Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
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. More...
 
static store (\core\event\base $event)
 Register items views in block_recentlyaccesseditems table. More...
 

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: