Метод | Описание | |
---|---|---|
getCostObjectInfo ( string $costobject ) : array | Retrieve information about a costobject's hours. Includes number of hours worked on for each employee, total billed time etc. | |
getTableData ( |
||
getTableMetaData ( |
||
listClients ( ) | ||
listCostObjects ( array $criteria ) : array | listCostObjects API | |
listJobTypes ( array $criteria = [] ) : array | Retrieve list of job types. | |
listTimeObjectCategories ( ) : array | Retrieves a list of available time objects categories. | |
listTimeObjects ( array $time_categories, mixed $start, mixed $end ) : array | Lists timeslices as timeobjects. | |
recordTime ( array $data ) : |
Record a time slice | |
renderSubtotals ( |
public getCostObjectInfo ( string $costobject ) : array | ||
$costobject | string | The costobject id (e.g., "whups:15"). |
Результат | 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. |
public static getTableData ( |
||
$name | ||
$params | ||
Результат | string |
public static getTableMetaData ( |
||
$name | ||
$params | ||
Результат |
public listCostObjects ( array $criteria ) : array | ||
$criteria | array | The search criteria |
Результат | array | A listCostObjects result array. |
public listJobTypes ( array $criteria = [] ) : array | ||
$criteria | array | Hash of filter criteria: 'enabled' => If present, only retrieve enabled or disabled job types. |
Результат | array | Associative array of job types |
public listTimeObjectCategories ( ) : array | ||
Результат | array | An array of all configured time object categories. |
public recordTime ( array $data ) : |
||
$data | array | Slice attributes
date - The slice date (required). client - The client id (required). type - The jobType id (required). costobject - The costObject id [none] hours - Number of hours (required). billable - Time billable? [true] description - Description (required) note - Note [blank] |
Результат |
public static renderSubtotals ( |
||
$table_data | ||
$hours | ||
$billable_hours | ||
$value | ||
Результат |