class util

Middag Local.

Constants

CAPABILITY_OPEN

CAPABILITY_VIEW

CAPABILITY_REPLY

CAPABILITY_ADD_COMMENT

CAPABILITY_VIEW_COMMENT

CAPABILITY_MANAGE

CAPABILITY_ANALYZER

CAPABILITY_ATTACHER

Methods

static array
get_capabilites()

Get all capabilities.

static array
get_select_roles()

Get all roles.

static array
get_select_courses()

Get all courses.

static array
get_workflows()

Get all workflows.

static array
get_select_workflows()

Get all workflows for use in select input.

static string|null
get_workflow_by_idnumber(mixed $idnumber)

Get workflow by id.

static array
get_not_displayed_field_by_workflowidnumber(mixed $workflowidnumber)

Gets fields that cannot be displayed by workflow id.

static array
get_select_request_types()

Get all request types for use in select input.

static array
get_file(mixed $contextid, mixed $component, mixed $filearea, mixed $itemid)

Get file.

static array
get_workflow_status()

Get default workflow status.

static array
get_default_roles()

No description

static array
get_all_user_roles(mixed $userid = 0)

Get current user all roles.

static array
get_action_capabilities()

Get action with capabilities.

static void
set_default_action(array $formdata)

Set default action.

static array
get_default_action()

Get default action.

static 
get_user_custom_field($fieldidorshortname, $userid = false)

No description

static array
get_options_for_user_fields(mixed $includeemailfield = false)

No description

static issuance|null
issuance_document($templateid, $user = null, $course = null)

No description

static array

Details

at line 58
static array get_capabilites()

Get all capabilities.

Return Value

array

at line 77
static array get_select_roles()

Get all roles.

Return Value

array

at line 94
static array get_select_courses()

Get all courses.

Return Value

array

at line 111
static array get_workflows()

Get all workflows.

Return Value

array

at line 132
static array get_select_workflows()

Get all workflows for use in select input.

Return Value

array

at line 152
static string|null get_workflow_by_idnumber(mixed $idnumber)

Get workflow by id.

Parameters

mixed $idnumber

Return Value

string|null

at line 172
static array get_not_displayed_field_by_workflowidnumber(mixed $workflowidnumber)

Gets fields that cannot be displayed by workflow id.

Parameters

mixed $workflowidnumber

Return Value

array

at line 217
static array get_select_request_types()

Get all request types for use in select input.

Return Value

array

at line 244
static array get_file(mixed $contextid, mixed $component, mixed $filearea, mixed $itemid)

Get file.

Parameters

mixed $contextid
mixed $component
mixed $filearea
mixed $itemid

Return Value

array

at line 264
static array get_workflow_status()

Get default workflow status.

Return Value

array

at line 279
static array get_default_roles()

No description

Return Value

array

at line 293
static array get_all_user_roles(mixed $userid = 0)

Get current user all roles.

Parameters

mixed $userid

Return Value

array

at line 316
static array get_action_capabilities()

Get action with capabilities.

Return Value

array

at line 335
static void set_default_action(array $formdata)

Set default action.

Parameters

array $formdata

Return Value

void

at line 356
static array get_default_action()

Get default action.

Return Value

array

at line 366
static get_user_custom_field($fieldidorshortname, $userid = false)

No description

Parameters

$fieldidorshortname
$userid

at line 393
static array get_options_for_user_fields(mixed $includeemailfield = false)

No description

Parameters

mixed $includeemailfield

Return Value

array

at line 431
static issuance|null issuance_document($templateid, $user = null, $course = null)

No description

Parameters

$templateid
$user
$course

Return Value

issuance|null

at line 446
static array get_document_templates_options()

No description

Return Value

array