Class Hermes
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.
Methods summary
public static
array
|
#
listClients( string $name = '' )
Get a list of available clients
Get a list of available clients
Parameters
- $name
- The string to search for in the client name
Returns
array A hash of client_id => client_name
|
public static
|
|
public static
<type>
|
#
getJobTypeSelect( mixed $id )
Returns
<type>
Todo:
Build these via ajax once we have UI support for editing jobtypes
|
public static
<type>
|
#
canEditTimeslice( <type> $id )
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.
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.
Parameters
Returns
<type>
|
public static
array
|
#
makeExportHours( array $hours )
Rewrite an hours array into a format useable by Horde_Data::
Rewrite an hours array into a format useable by Horde_Data::
Parameters
- $hours
- <p>This is an array of the results from
$driver->getHours().</p>
Returns
array an array suitable for Horde_Data::
|
public static
array
|
#
getEmployeesType( string $enumtype = 'multienum' )
Get form control type for users.
Get form control type for users.
What type of control we use depends on whether the Auth driver has list
capability.
Parameters
- $enumtype
- <p>The type to return if we have list capability
(should be either 'enum' or 'multienum').</p>
Returns
array A two-element array of the type and the type's parameters.
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
showAjaxView( )
Returns whether to display the ajax view.
Returns whether to display the ajax view.
return boolean True if the ajax view should be displayed.
|
public static
integer
|
#
newTimer( string $description )
Create a new timer and save it to storage.
Create a new timer and save it to storage.
Parameters
- $description
- The timer description.
Returns
integer The timer id.
|
public static
|
|
public static
|
|
public static
|
|