helpdesk_type
class helpdesk_type 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 |
|
| META_ACTIONS_OPENED |
|
| META_ACTIONS_VIEWED |
|
| META_ACTIONS_RESPONDED |
|
| META_ACTIONS_RESPONDED_INTERNAL |
|
| META_ACTIONS_VIEW_RESPONDED_INTERNAL |
|
| META_ACTIONS_CHANGE_STATUS |
|
| META_ACTIONS_REVIEWER |
|
| META_ACTIONS_ATTACHER |
|
Properties
| $id | from deprecated_item | ||
| $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 | |||
| $shortname | from deprecated_item | ||
| $idnumber | |||
| $description | from deprecated_item | ||
| $descriptionformat | from deprecated_item | ||
| $status | |||
| $visible | from deprecated_item | ||
| $guid | from deprecated_item | ||
| $sortorder | from deprecated_item | ||
| $version | from deprecated_item | ||
| $usermodified | from deprecated_item | ||
| $enable_attached | |||
| $link_another_user | |||
| $enable_authorization | |||
| $enable_responded_internal | |||
| $enable_custom_actions |
Methods
Generate a URL based on the Symfony route name and parameters.
Generate a webhook URL.
Helpdesk type constructor.
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
Create or update helpdesk type.
Activate or deactivate helpdesk type.
get workflow name.
Get display status.
Can attached files.
No description
No description
Get request types by current user capability.
Can view responded_internal.
Can view internal reply.
Can change request status.
Get all request status.
Get all meta capabilities/actions.
Save custom actions.
Get allowed actions for each role.
Save custom fields.
Get request type workflow instance.
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 97
__construct($id = null)
Helpdesk type constructor.
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
in
deprecated_model at line 151
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 114
void
create_or_update(mixed $formdata)
Create or update helpdesk type.
at line 146
void
activate_or_deactivate()
Activate or deactivate helpdesk type.
at line 160
get_workflow_name()
get workflow name.
at line 173
string
get_display_status()
Get display status.
at line 185
bool
can_reply(helpdesk_request $request)
Can reply request.
at line 217
bool
can_attached()
Can attached files.
at line 246
bool
can_linked_user()
No description
at line 256
bool|null
can_authorization($helpdesk_request)
No description
at line 290
array
get_request_types_by_current_user_capability()
Get request types by current user capability.
at line 317
bool
can_add_responded_internal()
Can view responded_internal.
at line 347
bool
can_view_responded_internal()
Can view internal reply.
at line 371
bool
can_change_request_status()
Can change request status.
at line 393
get_all_request_status()
Get all request status.
at line 408
static array
get_meta_capabilities()
Get all meta capabilities/actions.
at line 428
void
save_custom_actions(mixed $formdata, mixed $enable_custom_actions)
Save custom actions.
at line 454
array
get_role_actions()
Get allowed actions for each role.
at line 473
static bool
save_custom_fields(mixed $formdata)
Save custom fields.
at line 514
object|null
get_request_type_workflow()
Get request type workflow instance.