MIDDAG for Moodle

item_status_changed_event

Read onlyYes

Domain Event: Item Status Changed.

Triggered when an item transitions state (e.g., Draft -> Published).

Table of Contents

Constants

NAME  = 'middag.item.status_changed'

Properties

$item  : item_interface
$new_status  : string
$old_status  : string
$userid  : int|null

Methods

__construct()  : mixed

Constants

Properties

Methods

__construct()

public __construct(item_interface $item, string $old_status, string $new_status[, null|int $userid = null ]) : mixed
Parameters
$item : item_interface

Item aggregate after transition

$old_status : string

Previous status value

$new_status : string

New status value

$userid : null|int = null

Optional actor ID responsible for the change


        
On this page

Search results