org.openpsa.mypage "now working on" handler

package org.openpsa.mypage

 Methods

__construct (\midcom_db_person $person)

Constructor.

Parameters

$person

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

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 ()

Load task and time person is working on

_report_hours ($description, $invoiceable)

Report hours based on time used

Parameters

$description

$invoiceable

Returns

boolean

 Properties

 

mixed $description

The description for the current hour report
 

mixed $invoiceable

If hour report is invoiceable
 

mixed $start

Time person started working on the task
 

mixed $task

Task being worked on
 

mixed $person

Person working on the task
 

mixed $time

Time spent working on the task, in seconds