Method |
Description |
|
addTimer ( ) : array |
Add a new timer. Expects the following in $this->vars:
- desc: The timer description. |
|
createJobType ( ) : integer |
Create a new jobtype. Takes the following from $this->vars:
- name: (string) They type name. |
|
deleteDeliverable ( ) |
|
|
deleteJobType ( ) |
Delete a jobtype. Takes the following in $this->vars:
- id: The jobtype id to delete. |
|
deleteSlice ( ) : boolean |
Remove a slice. Expects the following in $this->vars:
- id: The slice ids |
|
enterTime ( ) : array |
Enter a new time slice. |
|
getDeliverableDetail ( ) |
|
|
listDeliverables ( ) |
Get the list of Hermes-only deliverables for the requested client. |
|
listDeliverablesSelect ( ) : array |
Get a list of client deliverables suitable for building a select list. |
|
listJobTypes ( ) : array |
Return descriptions of job types. If $this->vars->id is present it is
used to filter by the requested id. |
|
listTimers ( boolean $running_only = false ) : array |
Return the current list of timers. |
|
loadSlices ( ) : array |
Fetch a collection of time slices. For now, just allows a search for
all of a single employees time. Either submitted or not submitted. |
|
pauseTimer ( ) : boolean |
Pause a timer. Expects the following data in $this->vars:
- t: The timer id |
|
poll ( ) : array |
Poll the server. Currently also returns the list of current timer data
so the UI can be updated periodically. |
|
search ( ) : array |
Perform a slice search. |
|
startTimer ( ) : boolean | array |
Restart a paused timer. Expects the following data in $this->vars:
- t: The timer id. |
|
stopTimer ( ) : array |
Stop a timer. Expects the following in $this->vars:
- t: The timer id. |
|
submitSlices ( ) : boolean |
Mark slices as submitted. Expects the following in $this->vars:
- items: The slice ids to submit. |
|
updateDeliverable ( ) |
Create a new deliverable. Takes the following in $this->vars:
- deliverable_id: The id of the deliverable if editing. |
|
updateJobType ( ) : boolean |
Update an existing jobtype. Takes the following from $this->vars:
- id: (integer) The type id of the exsting type. |
|
updateSlice ( ) : array |
Update a slice. |
|