This article covers all Milestone-related methods in activeCollab.
object ActiveCollab::findMilestoneById(int $project_id, int $milestone_id) - Fetches an ActiveCollabMilestone object
Parameters:
project_id - d of a Project which contains the Milestone milestone_id - id of a specific milestone
Return value: Object instance of ActiveCollabMilestone
object $milestone = new ActiveCollabMilestone(int $project_id) - Creates new a ActiveCollabMilestone object
Parameters:
project_id - the id of the Project in which the Milestone will be created
Variable value: Object instance of ActiveCollabMilestone
These methods are called out through an milestone object.
• setCreatedByEmail(string $email) - Sets an email of the user who created this milestone
• setCreatedByName(string $name) - Sets the name of the user who created this milestone
• setName(string $name) - Sets the name of this milestone
• setBody(string $body) - Sets the description of this milestone
• setPriority(int $priority) - Sets the priority of this milestone; the priority parameter can be a combination of the following constants: ACTIVECOLLAB_PRIORITY_LOWEST, ACTIVECOLLAB_PRIORITY_LOW, ACTIVECOLLAB_PRIORITY_NORMAL, ACTIVECOLLAB_PRIORITY_HIGH, ACTIVECOLLAB_PRIORITY_HIGHEST
• setTags(array of string $tagArr) - Sets tags for this milestone
• setStartOn(timestamp $date) - Sets the date when the milestone is starting
• setDueOn(timestamp $date) - Sets the date when the milestone is due
• setAssignees(array of int $assignees, int $responsible_person) - Sets assignees and responsible person for this milestone
• save(void) - Saves the milestone object into activeCollab