\org_openpsa_mypage_workingon

org.openpsa.mypage "now working on" handler

Summary

Methods
Properties
Constants
__construct()
set()
$start
$task
$description
$invoiceable
No constants found
No protected methods found
$time
$person
N/A
_get()
_report_hours()
No private properties found
N/A

Properties

$start

$start : 

Time person started working on the task

Type

$task

$task : 

Task being worked on

Type

$description

$description : 

The description for the current hour report

Type

$invoiceable

$invoiceable : 

If hour report is invoiceable

Type

$time

$time : 

Time spent working on the task, in seconds

Type

$person

$person : 

Person working on the task

Type

Methods

__construct()

__construct(\midcom_db_person  $person = null) 

Constructor.

Parameters

\midcom_db_person $person

Person to handle "now working on" for. By default current user

set()

set(  $task_guid = '') 

Set a task the user works on. If user was previously working on something else hours will be reported automatically.

Parameters

$task_guid

_get()

_get() 

Load task and time person is working on

_report_hours()

_report_hours(  $description,   $invoiceable = false) : boolean

Report hours based on time used

Parameters

$description
$invoiceable

Returns

boolean