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_Api

Hermes external API interface.

This file defines Hermes's external API interface. Other applications can interact with Hermes through this API.

See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.horde.org/licenses/bsdl.php.

Horde_Registry_Api
Extended by Hermes_Api
Package: Hermes
Located at Api.php
Methods summary
public static <type>
# getTableMetaData( <type> $name, <type> $params )

Parameters

$name
$params

Returns

<type>
public static string
# getTableData( <type> $name, <type> $params )

Parameters

$name
$params

Returns

string
public static <type>
# renderSubtotals( <type> & $table_data, <type> $hours, <type> $billable_hours, <type> $value )

Parameters

$table_data
$hours
$billable_hours
$value

Returns

<type>
public array
# listCostObjects( array $criteria )

listCostObjects API

listCostObjects API

Parameters

$criteria
The search criteria

Returns

array
A listCostObjects result array.
public array
# listJobTypes( array $criteria = array() )

Retrieve list of job types.

Retrieve list of job types.

Parameters

$criteria
Hash of filter criteria: <pre><code> 'enabled' =&gt; If present, only retrieve enabled or disabled job types. </code></pre>

Returns

array
Associative array of job types
public
# listClients( )

See

Hermes::listClients()
public <type>
# recordTime( array $data )

Record a time slice

Record a time slice

Parameters

$data
Slice attributes <pre><span class="php-keyword2">date</span> - The slice <span class="php-keyword2">date</span> (required). client - The client id (required). type - The jobType id (required). costobject - The costObject id [none] hours - Number of hours (required). billable - <span class="php-keyword2">Time</span> billable? [<span class="php-keyword1">true</span>] description - Description (required) note - Note [blank]</pre>

Returns

<type>
public array
# getCostObjectInfo( string $costobject )

Retrieve information about a costobject's hours. Includes number of hours worked on for each employee, total billed time etc...

Retrieve information about a costobject's hours. Includes number of hours worked on for each employee, total billed time etc...

Parameters

$costobject
The costobject id (e.g., "whups:15").

Returns

array

An array of data with the following structure: employees - an array of employee ids as keys, number of hours as values. total - total number of hours billable - total number of billable hours.

API documentation generated by ApiGen