Documentation

VTTaskType
in package

VTTaskType class.

Table of Contents

$data  : array<string|int, mixed>
Data array.
get()  : mixed
Return value for $data key.
getAll()  : array<string|int, VTTaskType>
return all task types.
getInstance()  : VTTaskType
Return instance of self with new $data array.
getInstanceFromTaskType()  : VTTaskType
Return instance from task type name.
registerTaskType()  : mixed
Registers new task type in database.
set()  : $this
Set value for $data key.
setData()  : $this
Replace $data array.

Properties

$data

Data array.

public array<string|int, mixed> $data

Methods

get()

Return value for $data key.

public get(string $key) : mixed
Parameters
$key : string
Return values
mixed

getAll()

return all task types.

public static getAll([string $moduleName = '' ]) : array<string|int, VTTaskType>
Parameters
$moduleName : string = ''
Return values
array<string|int, VTTaskType>

getInstance()

Return instance of self with new $data array.

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

getInstanceFromTaskType()

Return instance from task type name.

public static getInstanceFromTaskType(string $taskType) : VTTaskType
Parameters
$taskType : string
Return values
VTTaskType

registerTaskType()

Registers new task type in database.

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

set()

Set value for $data key.

public set(string $key, mixed $value) : $this
Parameters
$key : string
$value : mixed
Return values
$this

setData()

Replace $data array.

public setData(array<string|int, mixed> $valueMap) : $this
Parameters
$valueMap : array<string|int, mixed>
Return values
$this

Search results