Overview

Packages

  • Hermes
  • Horde
    • Data
  • Kronolith
  • None

Classes

  • Hermes
  • Hermes_Ajax_Application
  • Hermes_Api
  • Hermes_Driver
  • Hermes_Driver_Sql
  • Hermes_Factory_Driver
  • Hermes_Form_Admin_AddJobType
  • Hermes_Form_Admin_DeleteJobType
  • Hermes_Form_Admin_EditClientStepOne
  • Hermes_Form_Admin_EditClientStepTwo
  • Hermes_Form_Admin_EditJobTypeStepOne
  • Hermes_Form_Admin_EditJobTypeStepTwo
  • Hermes_Form_Deliverable
  • Hermes_Form_Deliverable_ClientSelector
  • Hermes_Form_Export
  • Hermes_Form_JobType_Edit_Step1
  • Hermes_Form_Search
  • Hermes_Form_Time
  • Hermes_Form_Time_Entry
  • Hermes_LoginTasks_SystemTask_Upgrade
  • Overview
  • Package
  • Class
  • Tree

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.

Package: Hermes
Author: Chuck Hagenbuch chuck@horde.org
Located at Hermes.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
# getClientSelect( mixed $id )
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

$id

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
# getCostObjectByID( mixed $id )
public static
# getCostObjectType( mixed $clientID = null )
public static
# tabs( )
public static
# header( )

Output everything for the AJAX interface up to but not including the tag.

Output everything for the AJAX interface up to but not including the tag.

public static
# includeJSVars( )
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
# getTimer( mixed $id )
public static
# clearTimer( mixed $id )
public static
# updateTimer( mixed $id, mixed $timer )
API documentation generated by ApiGen