deprecated_model deprecated
abstract class deprecated_model implements deprecated_model_interface
deprecated
Base deprecated_model class for MIDDAG items.
Traits
Trait url_generator.
Constants
| PERPAGE |
|
| STATUS_ACTIVE |
|
| STATUS_CANCELED |
|
| STATUS_COMPLETED |
|
| STATUS_DELETED |
|
| STATUS_DISABLED |
|
| STATUS_DISAPPROVED |
|
| STATUS_ENABLED |
|
| STATUS_EXPIRED |
|
| STATUS_FAILED |
|
| STATUS_FINISH |
|
| STATUS_INACTIVE |
|
| STATUS_INPROGRESS |
|
| STATUS_NEW |
|
| STATUS_PAUSED |
|
| STATUS_PLAYED |
|
| STATUS_SYNC |
|
Properties
| $id | |||
| $type | |||
| $timecreated | |||
| $timemodified | |||
| protected | $table | ||
| protected | $table_metadata | ||
| protected | $fillable |
Methods
Generate a URL based on the Symfony route name and parameters.
Generate a webhook URL.
Constructor.
No description
No description
No description
No description
Update the model with form data.
No description
No description
No description
No description
Get metadata value by key.
No description
Set metadata key-value pair.
Set multiple metadata key-value pairs.
Get file associated with the model.
Get file URL.
Get record by idnumber.
No description
Details
in
url_generator at line 42
static moodle_url
url_generator(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
Generate a URL based on the Symfony route name and parameters.
in
url_generator at line 56
static moodle_url
webhook_url_generator(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
Generate a webhook URL.
at line 99
__construct($id = null)
Constructor.
at line 116
__clone()
No description
at line 121
string|null
get_path()
No description
at line 128
string|null
get_table()
No description
at line 137
string
get_table_metadata()
No description
at line 151
deprecated_model_interface
update(array $formdata = [])
Update the model with form data.
at line 165
bool
delete()
No description
at line 172
array
all()
No description
at line 193
array
get_records(array $searchcriteria, int $page, int $totalcount, string $sort = '', int $perpage = 0)
No description
at line 302
array
get_items(array $searchcriteria, int $page, int $totalcount, string $sort = '', bool $includedeleted = false, int $perpage = 0)
No description
at line 414
mixed
get_meta(string $meta_key)
Get metadata value by key.
at line 428
array
get_all_metadata()
No description
at line 456
void
set_meta(string $meta_key, mixed $meta_value)
Set metadata key-value pair.
at line 478
void
set_metas(array $metas)
Set multiple metadata key-value pairs.
at line 497
mixed
get_file(object $context, string $component, string $filearea, bool $validimage = false)
Get file associated with the model.
at line 523
static mixed
get_fileurl(object $file)
Get file URL.
at line 544
protected false|mixed|stdClass
get($id)
Get record by ID.
at line 560
protected false|mixed|stdClass
get_by_idnumber($idnumber)
Get record by idnumber.
at line 575
protected
save()
No description
at line 616
static protected deprecated_model
from_record(stdClass $r)
No description