run()
run(string $command, \org_openpsa_projects_task_dba $task)
Parameters
string | $command | |
\org_openpsa_projects_task_dba | $task |
Throws
- \midcom_error
org.openpsa.projects site interface class.
run(string $command, \org_openpsa_projects_task_dba $task)
string | $command | |
\org_openpsa_projects_task_dba | $task |
create_status(\org_openpsa_projects_task_dba $task, integer $status_type, integer $target_person, string $comment = '')
Shortcut for creating status object
\org_openpsa_projects_task_dba | $task | The task we're working on |
integer | $status_type | The status to convert |
integer | $target_person | The person ID, if any |
string | $comment | The status comment, if any |
propose(\org_openpsa_projects_task_dba $task, integer $pid, string $comment = '')
Propose task to a resource
\org_openpsa_projects_task_dba | $task | The task we're working on |
integer | $pid | The person ID |
string | $comment | Status comment, if any |
accept(\org_openpsa_projects_task_dba $task, integer $pid = -1, string $comment = '')
Accept the proposal
\org_openpsa_projects_task_dba | $task | The task we're working on |
integer | $pid | The person ID |
string | $comment | Status comment, if any |
decline(\org_openpsa_projects_task_dba $task, $comment = '')
Decline the proposal
\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)
\org_openpsa_projects_task_dba | $task | The task we're working on |
$started_by |
complete(\org_openpsa_projects_task_dba $task, $comment = '')
Mark task as completed
\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
\org_openpsa_projects_task_dba | $task | The task we're working on |
$comment |
approve(\org_openpsa_projects_task_dba $task, $comment = '')
Mark task as approved
\org_openpsa_projects_task_dba | $task | The task we're working on |
$comment |
remove_approve(\org_openpsa_projects_task_dba $task, $comment = '')
Drops an approved task to started status
\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
\org_openpsa_projects_task_dba | $task | The task we're working on |
$comment |
reopen(\org_openpsa_projects_task_dba $task, $comment = '')
Reopen a closed task
\org_openpsa_projects_task_dba | $task | The task we're working on |
$comment |
mark_invoiced(\org_openpsa_projects_task_dba $task, \org_openpsa_invoices_invoice_dba $invoice)
Connect the task hour reports to an invoice
\org_openpsa_projects_task_dba | $task | The task we're working on |
\org_openpsa_invoices_invoice_dba | $invoice | The invoice we're working on |
_drop_to_started(\org_openpsa_projects_task_dba $task, $comment = '')
Drops tasks status to started
\org_openpsa_projects_task_dba | $task | The task we're working on |
$comment |