automessage_template
class automessage_template extends deprecated_item
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 |
|
| TYPE |
|
| FILEMANAGEROPTIONS_ATTACHMENT |
|
| TRIGGER_EVENT |
|
| TRIGGER_INTERVAL |
|
| TRIGGER_RUNONCE |
|
| TRIGGER_MANUAL |
|
| TRIGGER_RELATIVEDATE |
|
| TRIGGER_EVENT_FIRST |
|
| TRIGGER_EVENT_EACH |
|
| TRIGGER_INTERVAL_REPEAT_DAILY |
|
| TRIGGER_INTERVAL_REPEAT_WEEKLY |
|
| TRIGGER_INTERVAL_REPEAT_YEARLY |
|
| TRIGGER_INTERVAL_LIMIT_FIRST |
|
| TRIGGER_INTERVAL_LIMIT_EACH |
|
| TRIGGER_INTERVAL_LIMIT_30_DAYS |
|
| TRIGGER_INTERVAL_LIMIT_60_DAYS |
|
| TRIGGER_INTERVAL_LIMIT_90_DAYS |
|
| TRIGGER_RELATIVEDATE_BEFORE_COURSE_STARTDATE |
|
| TRIGGER_RELATIVEDATE_AFTER_COURSE_STARTDATE |
|
| TRIGGER_RELATIVEDATE_BEFORE_COURSE_ENDDATE |
|
| TRIGGER_RELATIVEDATE_AFTER_COURSE_ENDDATE |
|
| TRIGGER_RELATIVEDATE_BEFORE_ENROL_STARTDATE |
|
| TRIGGER_RELATIVEDATE_AFTER_ENROL_STARTDATE |
|
| TRIGGER_RELATIVEDATE_BEFORE_ENROL_ENDDATE |
|
| TRIGGER_RELATIVEDATE_AFTER_ENROL_ENDDATE |
|
Properties
| $id | |||
| $type | from deprecated_item | ||
| $timecreated | from deprecated_model | ||
| $timemodified | from deprecated_model | ||
| protected | $table | from deprecated_item | |
| protected | $table_metadata | from deprecated_item | |
| protected | $fillable | ||
| $contextid | from deprecated_item | ||
| $courseid | from deprecated_item | ||
| $userid | from deprecated_item | ||
| $parent | from deprecated_item | ||
| $fullname | |||
| string | $shortname | ||
| $idnumber | from deprecated_item | ||
| $description | |||
| $descriptionformat | from deprecated_item | ||
| $status | |||
| int | $visible | ||
| $guid | from deprecated_item | ||
| $sortorder | from deprecated_item | ||
| $version | from deprecated_item | ||
| $usermodified | from deprecated_item | ||
| string[] | $sendtype | ||
| $filter | |||
| $triggertype | |||
| $triggerconfig | |||
| $lasttrigger | |||
| $nexttrigger | |||
| $triggerconfigevent | |||
| $triggerconfigeventrepeat | |||
| $triggerconfigeventcontexts | |||
| $triggerconfigeventcontextsjson | |||
| $triggerconfigintervalrepeat | |||
| $triggerconfigintervaljoinresults | |||
| $triggerconfigintervaleach | |||
| $triggerconfigintervalstartdate | |||
| $triggerconfigintervalenddate | |||
| $triggerconfigintervallimit | |||
| $triggerconfigrelativedatetype | |||
| $triggerconfigrelativedatevalue | |||
| $automessage_trigger |
Methods
Generate a URL based on the Symfony route name and parameters.
Generate a webhook URL.
No description
Update the model with form data.
No description
No description
Set metadata key-value pair.
Get file associated with the model.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
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 169
__construct($id = null)
No description
in
deprecated_model at line 116
__clone()
No description
in
deprecated_model at line 121
string|null
get_path()
No description
in
deprecated_model at line 128
string|null
get_table()
No description
in
deprecated_model at line 137
string
get_table_metadata()
No description
at line 179
deprecated_model_interface
update(array $formdata = [])
Update the model with form data.
in
deprecated_model at line 165
bool
delete()
No description
in
deprecated_model at line 172
array
all()
No description
in
deprecated_model at line 193
array
get_records(array $searchcriteria, int $page, int $totalcount, string $sort = '', int $perpage = 0)
No description
in
deprecated_model at line 302
array
get_items(array $searchcriteria, int $page, int $totalcount, string $sort = '', bool $includedeleted = false, int $perpage = 0)
No description
in
deprecated_model at line 414
mixed
get_meta(string $meta_key)
Get metadata value by key.
in
deprecated_model at line 428
array
get_all_metadata()
No description
in
deprecated_model at line 456
void
set_meta(string $meta_key, mixed $meta_value)
Set metadata key-value pair.
in
deprecated_model at line 478
void
set_metas(array $metas)
Set multiple metadata key-value pairs.
in
deprecated_model at line 497
mixed
get_file(object $context, string $component, string $filearea, bool $validimage = false)
Get file associated with the model.
in
deprecated_model at line 523
static mixed
get_fileurl(object $file)
Get file URL.
in
deprecated_model at line 544
protected false|mixed|stdClass
get($id)
Get record by ID.
in
deprecated_model at line 560
protected false|mixed|stdClass
get_by_idnumber($idnumber)
Get record by idnumber.
in
deprecated_model at line 575
protected
save()
No description
in
deprecated_model at line 616
static protected deprecated_model
from_record(stdClass $r)
No description
in
deprecated_item at line 105
void
load(bool $reload = false)
No description
in
deprecated_item at line 116
bool
enabled()
No description
in
deprecated_item at line 121
bool
disabled()
No description
in
deprecated_item at line 129
bool
deleted()
No description
in
deprecated_item at line 148
static
get_item_or_create(int|string|null $contextid, string $type = '')
No description
in
deprecated_item at line 190
array
get_items_by_metadata(array $searchcriteriaitem, array $searchcriteriameta, int $page, int $totalcount, string|null $sort = '', bool $includedeleted = false, int $perpage = 0)
deprecated
deprecated
No description
at line 255
array
preview()
No description
at line 280
array
get_content($userid, $courseid = null)
No description
at line 314
display_presend()
No description
at line 333
bool
sendtest()
No description
at line 354
static array|string
get_options_status($status = false)
No description
at line 371
display_status()
No description
at line 385
static array|string
get_options_trigger($trigger = false)
No description
at line 402
display_trigger()
No description
at line 412
static array|string
get_options_trigger_event($option = false)
No description
at line 426
string
display_trigger_event()
No description
at line 461
bool|null
check_trigger_event()
No description
at line 474
bool
check_context(int $contextid)
No description
at line 496
array
get_contexts_trigger_event()
No description
at line 520
array
get_contexts_name_trigger_event()
No description
at line 532
static array|string
get_options_trigger_interval_repeats($option = false)
No description
at line 547
static array|int
get_values_trigger_interval_repeats($option = false)
No description
at line 562
static array|string
get_options_trigger_interval_limit($option = false)
No description
at line 579
void
set_trigger_interval()
No description
at line 590
calculate_trigger_interval()
No description
at line 613
string
display_trigger_interval_repeats()
No description
at line 659
static array|string
get_options_trigger_relativedate($option = false)
No description
at line 679
string
display_trigger_relativedate()
No description
at line 708
array
filter_trigger_relativedate(mixed $userids)
No description
at line 802
float|int
calculate_tolerance_trigger_relativedate($value)
No description
at line 821
static
get_options_sendtype($option = false)
No description
at line 848
string
display_sentype()
No description
at line 865
array
get_attachments()
No description
at line 889
stdClass
save_attachment($attachment)
No description
at line 901
automessage_template
clone()
No description
at line 921
void
set_automessage_trigger($id)
No description
at line 926
get_automessage_trigger()
No description