org.openpsa.projects site interface class.

package org.openpsa.projects

 Methods

accept (\org_openpsa_projects_task_dba $task, integer $pid, string $comment)

Accept the proposal
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$pid

integerThe person ID

$comment

stringStatus comment, if any

approve (\org_openpsa_projects_task_dba $task, $comment)

Mark task as approved
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$comment

close (\org_openpsa_projects_task_dba $task, $comment)

Mark task as closed
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$comment

complete (\org_openpsa_projects_task_dba $task, $comment)

Mark task as completed
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$comment

create_status (\org_openpsa_projects_task_dba $task, integer $status_type, integer $target_person, string $comment)

Shortcut for creating status object
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$status_type

integerThe status to convert

$target_person

integerThe person ID, if any

$comment

stringThe status comment, if any

decline (\org_openpsa_projects_task_dba $task, $comment)

Decline the proposal
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$comment

get_status_type (integer $status)

Returns the status type of a given status
Static

Parameters

$status

integerThe status to convert

Returns

stringThe status type

get_status_type_icon (integer $status)

Returns the icon for a given status
Static

Parameters

$status

integerThe status to convert

Returns

stringThe icon filename

mark_invoiced (\org_openpsa_projects_task_dba $task, \org_openpsa_invoices_invoice_dba $invoice)

Connect the task hour reports to an invoice
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$invoice

\org_openpsa_invoices_invoice_dba&$invoice The invoice we're working on

propose (\org_openpsa_projects_task_dba $task, integer $pid, string $comment)

Propose task to a resource
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$pid

integerThe person ID

$comment

stringStatus comment, if any

reject ($task, $comment)

Static

Parameters

$task

$comment

remove_approve (\org_openpsa_projects_task_dba $task, $comment)

Drops an approved task to started status
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$comment

remove_complete (\org_openpsa_projects_task_dba $task, $comment)

Drops a completed task to started status
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$comment

render_status_control ($task)

Static

Parameters

$task

reopen (\org_openpsa_projects_task_dba $task, $comment)

Reopen a closed task
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$comment

start (\org_openpsa_projects_task_dba $task, $started_by)

Mark task as started (in case it's not already done)
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$started_by

_drop_to_started (\org_openpsa_projects_task_dba $task, $comment)

Drops tasks status to started
Static

Parameters

$task

\org_openpsa_projects_task_dba&$task The task we're working on

$comment