SORT_ORDER_ASC
SORT_ORDER_ASC
Hermes SQL storage driver.
See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.horde.org/licenses/bsdl.php.
__construct(array $params = array()) : \Hermes_Driver_Sql
Constructor
array | $params | A hash containing connection parameters. db_adapter => The Horde_Db_Adapter object |
The driver object.
updateJobType(array $jobtype) : \The
Add or update a job type record.
array | $jobtype | A hash of job type properties: 'id' => The ID of the job, if updating. If not present, a new job type is created. 'name' => The job type's name. 'enabled' => Whether the job type is enabled for new time entry. |
job's ID.
listJobTypes(array $criteria = array()) : array
Return a list of optionally filtered jobtypes.
array | $criteria | An array of optional criteria. Can include:
|
An array of jobtype hashes. Each hash contains the following keys:
updateDeliverable(array $deliverable) : integer
Add or update a deliverable.
array | $deliverable | A hash of deliverable properties: 'id' => The ID of the deliverable, if updating. If not present, a new ID is allocated. 'name' => The deliverable's display name. 'client_id' => The assigned client ID. 'parent' => ID of the deliverables parent deliverable (if a child). 'estimate' => Estimated number of hours for completion of the deliverable. 'active' => Whether this deliverable is active. 'description' => Text description (notes) for this deliverable. |
ID of new or saved deliverable.
listDeliverables(array $criteria = array(), $stats = false) : array
Retrieve list of deliverables.
array | $criteria | A hash of search criteria: 'id' => If present, only deliverable with specified ID is searched for. 'client_id' => If present, list is filtered by client ID. |
$stats |
Hash of job types.
enterTime(string $employee, array $info) : \Hermes_Slice
Saves a row of time information.
string | $employee | The Horde ID of the person who worked the hours. |
array | $info | The billing information to enter. Must contain the following entries:
|
The new time slice.
updateTime(array $info) : \Hermes_Slice
Updates time slice information.
array | $info | The time information to enter. Must contain the following entries:
|
The updated time slice.
getHours(array $filters = array(), array $fields = array()) : array
Fetch time slices with optional filter.
array | $filters | An array of properties to filter on. Each entry is a field => value format. Possible field values: client, jobtype, submitted, exported, billable, start, end, employee, id, costobject. |
array | $fields |
Array of timeslice objects