This article lists the methods for manipulating Pages in activeCollab.
object ActiveCollab::findPageById(int $project_id, int $page_id) - Fetches an ActiveCollabPage object
Parameters:
project_id - id of the Project which contains the Page page_id - id of a specific Page
Return value: Object instance of ActiveCollabPage
object $page = new ActiveCollabPage(int $project_id) - Creates a new ActiveCollabPage object
Parameters:
project_id - id of the Project where the Page will be created
Variable value: Object instance of ActiveCollabPage
These methods are called out through an page object.
• setCreatedByEmail(string $email) - Sets an email of the user who created this page
• setCreatedByName(string $name) - Sets the name of the user who created this page
• setName(string $name) - Sets the name of this page
• setBody(string $body) - Sets the description of this page
• setTags(array of string $tagArr) - Sets tags for this page
• setVisibility(int $visibility) - Sets the visibility of this page; the visibility parameter can be a combination of the following constants: ACTIVECOLLAB_VISIBILITY_PRIVATE, ACTIVECOLLAB_VISIBILITY_NORMAL
• setParentId(int $parent_id) - Sets the parent for this page
• setMilestoneId(int $milestone_id) - Sets the milestone for this page
• addAttachments(array of file $arr_files) - Adds array of files to a page
• save(void) - Saves the page object into activeCollab