MIDDAG for Moodle

item_service_interface

Public API Contract for item_service.

Extensions MUST depend on this interface instead of the concrete application service inside the Core.

Table of Contents

Methods

create()  : item_interface
Create a new item.
delete()  : void
Delete an item by its ID.
find()  : null|item_interface
Find an item by ID.
find_by_type()  : array<string|int, item_interface>
Retrieve all items of a given TYPE.
get_metadata()  : array<string, mixed>
Retrieve metadata for an item.
get_repository()  : item_repository_interface
Get the underlying repository instance.
update()  : item_interface
Update an existing item.

Methods

get_metadata()

Retrieve metadata for an item.

public get_metadata(int $id) : array<string, mixed>
Parameters
$id : int
Return values
array<string, mixed>

        
On this page

Search results