메소드 | 설명 | |
---|---|---|
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 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 | ||
리턴 |