$_clients
$_clients : array
List of available clients.
Hermes Base Class.
See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.horde.org/licenses/bsdl.php.
getClientSelect(string $id, boolean $multi = false, boolean $use_cotext = false) : string
Return the HTML needed to build an enum or multienum for selecting clients.
string | $id | The DOM id to identify the select list. |
boolean | $multi | Allow multi select? |
boolean | $use_cotext | Instead of 'Select A Client', use 'General Cost Objects' for the top choice. |
The HTML to render the select element.
getJobTypeSelect(string $id, boolean $multi = false, $show_disabled = false) : string
Return HTML needed to build an enum or multienum for jobtype selection.
string | $id | The DOM id to identify the select list. |
boolean | $multi | Allow multi select? |
$show_disabled |
The HTML needed to render the select element.
canEditTimeslice(\<type> $id) : \<type>
Determines if the current user can edit a specific timeslice according to the following rules: 'hermes:review' perms may edit any slice, the current user can edit his/her own slice prior to submitting it. Otherwise no editing allowed.
\ |
$id |
getEmployeesType(string $enumtype = 'multienum') : array
Get form control type for users.
What type of control we use depends on whether the Auth driver has list capability.
string | $enumtype | The type to return if we have list capability (should be either 'enum' or 'multienum'). |
A two-element array of the type and the type's parameters.
getCostObjectByID(string $id, string|boolean $employee = false) : array
Return a cost object hash.
string | $id | The cost object id. |
string|boolean | $employee | Employee hint - if known. False otherwise. |
The cost object hash. Keys differ depending on the API queried, but should always contain:
newTimer(string $description, \stdClass $details = null) : integer
Create a new timer and save it to storage. Timers contain the following values: - name: (string) The descriptive name of the timer.
string | $description | The timer description. |
\stdClass | $details | Additional, optional details for the ti. |
The timer id.