MIDDAG for Moodle

util

Middag Local.

Tags
subpackage

middag

author

Gabriel Sousa gabriel.sousa@middag.com.br

copyright

2024 Middag (https://www.middag.com.br)

license

commercial

Table of Contents

Constants

CAPABILITY_ADD_COMMENT  = 'local/middag:add_comment'
CAPABILITY_ANALYZER  = 'local/middag:analyzer'
CAPABILITY_ATTACHER  = 'local/middag:attacher'
CAPABILITY_MANAGE  = 'local/middag:manage'
CAPABILITY_OPEN  = 'local/middag:open'
CAPABILITY_REPLY  = 'local/middag:reply'
CAPABILITY_VIEW  = 'local/middag:view'
CAPABILITY_VIEW_COMMENT  = 'local/middag:view_comment'

Methods

get_action_capabilities()  : array<string|int, mixed>
Get action with capabilities.
get_all_user_roles()  : array<string|int, mixed>
Get current user all roles.
get_capabilites()  : array<string|int, mixed>
Get all capabilities.
get_default_action()  : array<string|int, mixed>
Get default action.
get_default_roles()  : array<string|int, mixed>
get_document_templates_options()  : array<int, array<string|int, mixed>>
get_file()  : array<string|int, mixed>
Get file.
get_not_displayed_field_by_workflowidnumber()  : array<string|int, mixed>
Gets fields that cannot be displayed by workflow id.
get_options_for_user_fields()  : array<string|int, mixed>
get_select_courses()  : array<string|int, mixed>
Get all courses.
get_select_request_types()  : array<string|int, mixed>
Get all request types for use in select input.
get_select_roles()  : array<string|int, mixed>
Get all roles.
get_select_workflows()  : array<string|int, mixed>
Get all workflows for use in select input.
get_user_custom_field()  : mixed
get_workflow_by_idnumber()  : null|string
Get workflow by id.
get_workflow_status()  : array<string|int, mixed>
Get default workflow status.
get_workflows()  : array<string|int, mixed>
Get all workflows.
issuance_document()  : issuance|null
set_default_action()  : void
Set default action.

Constants

CAPABILITY_ADD_COMMENT

public mixed CAPABILITY_ADD_COMMENT = 'local/middag:add_comment'

CAPABILITY_ANALYZER

public mixed CAPABILITY_ANALYZER = 'local/middag:analyzer'

CAPABILITY_ATTACHER

public mixed CAPABILITY_ATTACHER = 'local/middag:attacher'

CAPABILITY_MANAGE

public mixed CAPABILITY_MANAGE = 'local/middag:manage'

CAPABILITY_OPEN

public mixed CAPABILITY_OPEN = 'local/middag:open'

CAPABILITY_REPLY

public mixed CAPABILITY_REPLY = 'local/middag:reply'

CAPABILITY_VIEW

public mixed CAPABILITY_VIEW = 'local/middag:view'

CAPABILITY_VIEW_COMMENT

public mixed CAPABILITY_VIEW_COMMENT = 'local/middag:view_comment'

Methods

get_action_capabilities()

Get action with capabilities.

public static get_action_capabilities() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_all_user_roles()

Get current user all roles.

public static get_all_user_roles([mixed $userid = 0 ]) : array<string|int, mixed>
Parameters
$userid : mixed = 0
Return values
array<string|int, mixed>

get_capabilites()

Get all capabilities.

public static get_capabilites() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_default_action()

Get default action.

public static get_default_action() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_default_roles()

public static get_default_roles() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_document_templates_options()

public static get_document_templates_options() : array<int, array<string|int, mixed>>
Return values
array<int, array<string|int, mixed>>

get_file()

Get file.

public static get_file(mixed $contextid, mixed $component, mixed $filearea, mixed $itemid) : array<string|int, mixed>
Parameters
$contextid : mixed
$component : mixed
$filearea : mixed
$itemid : mixed
Return values
array<string|int, mixed>

get_not_displayed_field_by_workflowidnumber()

Gets fields that cannot be displayed by workflow id.

public static get_not_displayed_field_by_workflowidnumber(mixed $workflowidnumber) : array<string|int, mixed>
Parameters
$workflowidnumber : mixed
Return values
array<string|int, mixed>

get_options_for_user_fields()

public static get_options_for_user_fields([mixed $includeemailfield = false ]) : array<string|int, mixed>
Parameters
$includeemailfield : mixed = false
Return values
array<string|int, mixed>

get_select_courses()

Get all courses.

public static get_select_courses() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_select_request_types()

Get all request types for use in select input.

public static get_select_request_types() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_select_roles()

Get all roles.

public static get_select_roles() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_select_workflows()

Get all workflows for use in select input.

public static get_select_workflows() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_user_custom_field()

public static get_user_custom_field(mixed $fieldidorshortname[, mixed $userid = false ]) : mixed
Parameters
$fieldidorshortname : mixed
$userid : mixed = false

get_workflow_by_idnumber()

Get workflow by id.

public static get_workflow_by_idnumber(mixed $idnumber) : null|string
Parameters
$idnumber : mixed
Return values
null|string

get_workflow_status()

Get default workflow status.

public static get_workflow_status() : array<string|int, mixed>
Return values
array<string|int, mixed>

get_workflows()

Get all workflows.

public static get_workflows() : array<string|int, mixed>
Return values
array<string|int, mixed>

issuance_document()

public static issuance_document(mixed $templateid[, mixed $user = null ][, mixed $course = null ]) : issuance|null
Parameters
$templateid : mixed
$user : mixed = null
$course : mixed = null
Return values
issuance|null

set_default_action()

Set default action.

public static set_default_action(array<string|int, mixed> $formdata) : void
Parameters
$formdata : array<string|int, mixed>

        
On this page

Search results