These methods are used for managing Time Tracking in activeCollab.
object ActiveCollab::findTimeById(int $project_id, int $time_id) - Fetches an ActiveCollabTime object
Parameters:
project_id - d of the Project where the time record comes from time_id - id of a specific time record
Return value: Object instance of ActiveCollabTime
object $time = new ActiveCollabTime(int $project_id) - Creates a new ActiveCollabTime object
Parameters:
project_id - id of the Project in which the Time record is going to be created
Variable value: Object instance of ActiveCollabTime
These methods are called out through an time object.
• setCreatedByEmail(string $email) - Sets an email of the user who created this time
• setCreatedByName(string $name) - Sets the name of the user who created this time
• setBody(string $body) - Sets the description of this time
• setUserId(int $user_id) - Id of user for whom time is created
• setBillableStatus(int $status) - Sets the billable status of this time; the status parameter can be a combination of the following constants: ACTIVECOLLAB_BILLABLE_STATUS_NOT_BILLABLE, ACTIVECOLLAB_BILLABLE_STATUS_BILLABLE, ACTIVECOLLAB_BILLABLE_STATUS_BILLABLE_AND_PENDING, ACTIVECOLLAB_BILLABLE_STATUS_BILLED
• setValue(float $value) - Sets value for this time
• setRecordDate(timestamp $date) - Sets the date when the time record is created
• setParentId(int $parent_id) - Sets the parent for this time
• save(void) - Saves the time object into activeCollab