interface deprecated_item_interface implements deprecated_model_interface

Contract for deprecated item deprecated_model.

Extends model_interface and adds item-specific API.

Constants

TYPE

Methods

string|null
get_path()

No description

string|null
get_table()

No description

string
get_table_metadata()

No description

update(array $formdata)

No description

bool
delete()

No description

array
get_records(array $searchcriteria, int $page, int $totalcount, string $sort, int $perpage)

No description

array
get_items(array $searchcriteria, int $page, int $totalcount, string $sort, bool $includedeleted, int $perpage)

No description

mixed
get_meta(string $meta_key)

No description

array
get_all_metadata()

No description

void
set_meta(string $meta_key, mixed $meta_value)

No description

void
set_metas(array $metas)

No description

mixed
get_file(object $context, string $component, string $filearea, bool $validimage = false)

No description

static mixed
get_fileurl(object $file)

No description

void
load(bool $reload = false)

No description

bool
enabled()

No description

bool
disabled()

No description

bool
deleted()

No description

static 
get_item_or_create(int|string|null $contextid, string $type = '')

Factory method to get existing or create a new item.

Details

string|null get_path()

No description

Return Value

string|null

string|null get_table()

No description

Return Value

string|null

string get_table_metadata()

No description

Return Value

string

deprecated_model_interface update(array $formdata)

No description

Parameters

array $formdata

Return Value

deprecated_model_interface

bool delete()

No description

Return Value

bool

array get_records(array $searchcriteria, int $page, int $totalcount, string $sort, int $perpage)

No description

Parameters

array $searchcriteria
int $page
int $totalcount

Output parameter

string $sort
int $perpage

Return Value

array

array get_items(array $searchcriteria, int $page, int $totalcount, string $sort, bool $includedeleted, int $perpage)

No description

Parameters

array $searchcriteria
int $page
int $totalcount
string $sort
bool $includedeleted
int $perpage

Return Value

array

mixed get_meta(string $meta_key)

No description

Parameters

string $meta_key

Return Value

mixed

array get_all_metadata()

No description

Return Value

array

void set_meta(string $meta_key, mixed $meta_value)

No description

Parameters

string $meta_key
mixed $meta_value

Return Value

void

void set_metas(array $metas)

No description

Parameters

array $metas

Return Value

void

mixed get_file(object $context, string $component, string $filearea, bool $validimage = false)

No description

Parameters

object $context
string $component
string $filearea
bool $validimage

Return Value

mixed

static mixed get_fileurl(object $file)

No description

Parameters

object $file

Return Value

mixed

at line 29
void load(bool $reload = false)

No description

Parameters

bool $reload

Return Value

void

at line 31
bool enabled()

No description

Return Value

bool

at line 33
bool disabled()

No description

Return Value

bool

at line 35
bool deleted()

No description

Return Value

bool

at line 43
static get_item_or_create(int|string|null $contextid, string $type = '')

Factory method to get existing or create a new item.

Parameters

int|string|null $contextid
string $type