\FAA\WidgetProjects

Summary

Methods
Properties
Constants
__construct()
Endpoint()
Request()
Response()
GitRepo()
RegisterIncludes()
GetConfigPreset()
SaveConfig()
GetConfig()
Initial()
CreateEmployee()
SearchEmployee()
LoadEmployee()
UpdateEmployee()
DeleteEmployee()
EmployeeNotificationPreset()
EmployeeRoles()
Preset()
TaskPreset()
PresetConvert()
AvailableWorkTypes()
AvailableTaskStoryPoints()
AvailableTaskStatus()
AvailableTaskTypes()
AvailableSalutations()
ListEmployeeProcessed()
ListUsersProcessed()
Get()
GetTask()
Add()
Close()
Update()
DeleteTask()
AddTask()
MoveTask()
DownloadTaskAttachment()
UpdateTask()
Increment()
Drop()
TreeLimb()
GetServiceUrl()
GetTree()
MyTask()
SearchEmployees()
MyTaskEmployee()
MyTaskEmployees()
MyTaskEmployeeAdd()
MyTaskEmployeeRemove()
MyTaskEmployeeChange()
MyTaskRetrieveTime()
MyTaskDeleteTime()
MyTaskUpdateTime()
MyTaskCreateTime()
MyTaskTimes()
MyTaskCreateComment()
MyTaskDeleteComment()
MyTaskUpdateComment()
MyTaskDeleteAttachment()
MyTaskDownloadAttachment()
MyTaskCreateAttachment()
MyTasks()
SearchTasks()
$request
No constants found
ConfigGetPreset()
ConfigSave()
ConfigGetRaw()
ConfigGet()
CreateEntity()
handleSubContent()
handleSubViewList()
UpdateEntity()
CopyEntity()
deleteEntity()
fetchAssignedEntityList()
loadSingleEntity()
loadEntityFormPreset()
fetchEntityListFiltered()
fetchEntityList()
fetchObject()
$endpoint
$response
N/A
testChainOfTrust()
loadVisibleTree()
extractFolderIds()
loadProject()
_getTask()
loadMyTask()
loadTask()
getProject()
filterTree()
loadConfig()
roundWorkUnit()
resolveEmployeeRoles()
notifyEmployee()
fetchMyTaskTimes()
$git_repo
$root
$project_root
$config
N/A

Properties

$git_repo

$git_repo : array<mixed,\FAA\Git>

Type

array<mixed,\FAA\Git>

$root

$root : 

Type

$project_root

$project_root : 

Type

$config

$config : 

Type

Methods

__construct()

__construct() 

Init the widget instance.

The default constructor does not need any arguments.

Endpoint()

Endpoint(\FAA\Obj\Endpoint  $endpoint = null) : \FAA\Obj\Endpoint

Get/Set endpoint

Sets or gets the widget arguments, they contain the endpoint this widget was called at

Parameters

\FAA\Obj\Endpoint $endpoint

A system request list

Returns

\FAA\Obj\Endpoint

A system endpoint object

Request()

Request(\FAA\Obj\Request  $request = null) : \FAA\Obj\Request

The request Sets or gets the widget request object

Parameters

\FAA\Obj\Request $request

A system request object

Returns

\FAA\Obj\Request

A system request object

Response()

Response() : \FAA\Obj\Response

Response object Gets the widget response

Returns

\FAA\Obj\Response

A system response object

GitRepo()

GitRepo(string  $path = 'data') : \FAA\Git

Git object

Gets the widget git instance, either for config or, for data repo

Parameters

string $path

The target repo, default is data

Returns

\FAA\Git —

A system git object with data folder as start point

RegisterIncludes()

RegisterIncludes() 

Register htm includes Returns a list of js and css files to include into the rendered output

GetConfigPreset()

GetConfigPreset() 

SaveConfig()

SaveConfig() 

GetConfig()

GetConfig() 

Initial()

Initial() 

Initial function, called from frontend.

Regularly no special action required, can be used as central entry point.

CreateEmployee()

CreateEmployee() 

SearchEmployee()

SearchEmployee() 

LoadEmployee()

LoadEmployee() 

UpdateEmployee()

UpdateEmployee() 

DeleteEmployee()

DeleteEmployee() 

EmployeeNotificationPreset()

EmployeeNotificationPreset() 

EmployeeRoles()

EmployeeRoles() 

Preset()

Preset() 

TaskPreset()

TaskPreset() 

PresetConvert()

PresetConvert() 

AvailableWorkTypes()

AvailableWorkTypes() 

AvailableTaskStoryPoints()

AvailableTaskStoryPoints() 

AvailableTaskStatus()

AvailableTaskStatus() 

AvailableTaskTypes()

AvailableTaskTypes() 

AvailableSalutations()

AvailableSalutations() 

ListEmployeeProcessed()

ListEmployeeProcessed() 

ListUsersProcessed()

ListUsersProcessed() 

Get()

Get() 

GetTask()

GetTask() 

Add()

Add() 

Close()

Close() 

Update()

Update() 

DeleteTask()

DeleteTask() 

AddTask()

AddTask() 

MoveTask()

MoveTask() 

DownloadTaskAttachment()

DownloadTaskAttachment() 

UpdateTask()

UpdateTask() 

Increment()

Increment() 

Drop()

Drop() 

TreeLimb()

TreeLimb() 

GetServiceUrl()

GetServiceUrl() 

GetTree()

GetTree() 

MyTask()

MyTask() 

SearchEmployees()

SearchEmployees() 

MyTaskEmployee()

MyTaskEmployee() 

MyTaskEmployees()

MyTaskEmployees() 

MyTaskEmployeeAdd()

MyTaskEmployeeAdd() 

MyTaskEmployeeRemove()

MyTaskEmployeeRemove() 

MyTaskEmployeeChange()

MyTaskEmployeeChange() 

MyTaskRetrieveTime()

MyTaskRetrieveTime() 

MyTaskDeleteTime()

MyTaskDeleteTime() 

MyTaskUpdateTime()

MyTaskUpdateTime() 

MyTaskCreateTime()

MyTaskCreateTime() 

MyTaskTimes()

MyTaskTimes() 

MyTaskCreateComment()

MyTaskCreateComment() 

MyTaskDeleteComment()

MyTaskDeleteComment() 

MyTaskUpdateComment()

MyTaskUpdateComment() 

MyTaskDeleteAttachment()

MyTaskDeleteAttachment() 

MyTaskDownloadAttachment()

MyTaskDownloadAttachment() 

MyTaskCreateAttachment()

MyTaskCreateAttachment() 

MyTasks()

MyTasks() 

SearchTasks()

SearchTasks() 

ConfigGetPreset()

ConfigGetPreset(string  $name) 

Get the configuration preset data

Parameters

string $name

The name of the config file

ConfigSave()

ConfigSave(string  $name) 

Store a configuration with values from body and a given name

Parameters

string $name

The name of the config file

ConfigGetRaw()

ConfigGetRaw(string  $name) : \FAA\Obj\Result

Get configuration data as object from setup handler

Parameters

string $name

The name of the config file

Returns

\FAA\Obj\Result

ConfigGet()

ConfigGet(string  $name) 

Get a configuration by name

Parameters

string $name

The name of the config file

CreateEntity()

CreateEntity(string  $type) 

create new object this method creates a new instance of a specific system content type

Parameters

string $type

A registered system content type

handleSubContent()

handleSubContent(integer  $offset = 3) 

handle sub content operations this method can handle the creation update form preset loading and delete of sub contents

Parameters

integer $offset

The offset of the first chained component in url

handleSubViewList()

handleSubViewList(array  $payload) 

Handle the list/object loading for sub view of contents

Parameters

array $payload

The request payload parent_type string Name of the parent type to manage inside parent string/int The id of the parent content attr string The attribute name to manage type string Type of the content to assign elements array List of elements when type is __multi content int Id when a direct content edit is performed (e.g. in child contents)

UpdateEntity()

UpdateEntity(string  $type, integer  $epIndex, boolean  $return = false) 

Update a single content

Implements the update handler for single contents identified by rest end point argument Does return the values when config option says so

Parameters

string $type

The requested content type

integer $epIndex

Parse this parameter as id

boolean $return

CopyEntity()

CopyEntity(string  $type, integer  $epIndex) 

copy a single content links the frontend to the copy handler for single contents identified by rest end point argument

Parameters

string $type

The requested content type

integer $epIndex

Parse this parameter as id

deleteEntity()

deleteEntity(string  $type, integer  $epIndex) 

delete a single content implements the delete handler for single contents identified by rest end point argument

Parameters

string $type

The requested content type

integer $epIndex

Parse this parameter as id

fetchAssignedEntityList()

fetchAssignedEntityList(  $list, null  $language = null) 

Parameters

$list
null $language

loadSingleEntity()

loadSingleEntity(string  $type, integer  $epIndex, string  $language = null) 

load a single content implements the loader for single contents identified by rest end point argument

Parameters

string $type

The requested content type

integer $epIndex

Parse this parameter as id

string $language

Language code to fetch element in

loadEntityFormPreset()

loadEntityFormPreset(string  $type) 

load form preset implements the form preset loader for a certain content type

Parameters

string $type

The requested content type

fetchEntityListFiltered()

fetchEntityListFiltered(string  $type) 

Fetch filtered list

Implements the server side data tables processing functions Supports freetext search, paging and ordering at the moment

Parameters

string $type

The requested content type

fetchEntityList()

fetchEntityList(string  $type, boolean  $raw = false) 

Fetch list of entries Use the direct loader method to retrieve a list obf objects

Parameters

string $type

Fetch list of elements

boolean $raw

Return as raw object and not plain

fetchObject()

fetchObject(string|integer  $id, string  $type, string  $right = 'view') : \FAA\Obj\Generic\BaseContent|boolean|null

Get a object from storage Load a single content from storage as instance

Parameters

string|integer $id

A object id

string $type

A object type

string $right

A access level to test against

Returns

\FAA\Obj\Generic\BaseContent|boolean|null —

A base content or null when not found or false when not access

testChainOfTrust()

testChainOfTrust(array  $args, integer  $offset = 3) : boolean

Test chain Check if the upstream call is valid and the user has access to this node

Parameters

array $args

The request url

integer $offset

The first component to check

Returns

boolean —

Chain of trust valid?

loadVisibleTree()

loadVisibleTree() : array|array<mixed,\FAA\Obj\Generic\FolderTree>|mixed|null

Returns

array|array<mixed,\FAA\Obj\Generic\FolderTree>|mixed|null

extractFolderIds()

extractFolderIds() 

loadProject()

loadProject(string  $mode) : \FAA\Obj\Generic\TaskProject

Load project Load the project by given query string

Parameters

string $mode

The right to test against

Returns

\FAA\Obj\Generic\TaskProject

A project object or null when not found

_getTask()

_getTask(integer  $id, string  $type) : \FAA\Obj\Generic\Task|null

Get task Get a single task object

Parameters

integer $id

A task id

string $type

Task object type name

Returns

\FAA\Obj\Generic\Task|null —

The found task

loadMyTask()

loadMyTask(string  $right = 'view') : \FAA\Obj\Generic\Task|null

Load the task by relation Additionally a filter is applied here that returns only tasks im am assigned to Opens a task based on a url like: /api/my-tasks/test/task/236

Parameters

string $right

Returns

\FAA\Obj\Generic\Task|null

loadTask()

loadTask(string  $right = 'view') : \FAA\Obj\Generic\Task|null

load the task by relation Opens a task based on a url like: /api/project-tasks/test/task/236

Parameters

string $right

Returns

\FAA\Obj\Generic\Task|null

getProject()

getProject(string  $path, string  $mode) : \FAA\Obj\Generic\TaskProject

Load project Load the project by given query string

Parameters

string $path

The relative project path

string $mode

The right to test against

Returns

\FAA\Obj\Generic\TaskProject

A project object or null when not found

filterTree()

filterTree(array  $items, array  $companies) : array

Filter tree Recursive filtering of folder tree list by user companies

Parameters

array $items

A list of folder objects

array $companies

The list of users company ids

Returns

array —

A list of filtered folder objects

loadConfig()

loadConfig() 

roundWorkUnit()

roundWorkUnit(  $hours) 

Parameters

$hours

resolveEmployeeRoles()

resolveEmployeeRoles(  $translated = false) 

Parameters

$translated

notifyEmployee()

notifyEmployee(\FAA\Obj\Generic\TaskProject  $project, \FAA\Obj\Generic\Task  $content, array  $notify_employee) : \FAA\Obj\Result

Send notification emails Parse the list of notifications and send them to the customers

Parameters

\FAA\Obj\Generic\TaskProject $project

A system project object

\FAA\Obj\Generic\Task $content

A system task

array $notify_employee

The frontend prepared object with notifications

Returns

\FAA\Obj\Result

fetchMyTaskTimes()

fetchMyTaskTimes(\FAA\Obj\Generic\Task  $task) : array

Parameters

\FAA\Obj\Generic\Task $task

A task object

Returns

array —

The task time entries