item_created_event
Read onlyYes
Domain Event: Item Created.
Dispatched immediately after an item is successfully persisted to the database. This class wraps the logic to trigger Moodle's native event system if needed via Application Service.
Table of Contents
Constants
- NAME = 'middag.item.created'
Properties
- $item : item_interface
- $userid : int|null
Methods
- __construct() : mixed
Constants
NAME
public
mixed
NAME
= 'middag.item.created'
Properties
$item
public
item_interface
$item
$userid
public
int|null
$userid
= null
Methods
__construct()
public
__construct(item_interface $item[, null|int $userid = null ]) : mixed
Parameters
- $item : item_interface
-
Newly created item aggregate
- $userid : null|int = null
-
Optional actor ID responsible for creation