Project - Geodan/cow GitHub Wiki
Description
The Project class is represented by a unique integer called project id or PID. It contains all the items and groups that belongs to a project.
Attributes
-
int PID: project identity. Also the primary key. Unique to each project.
-
string pName: project name.
-
boolean isActive: boolean indicating if the project is active or not.
- true: project is active.
- false: project is not active.
-
group [ ] groups: array of groups. Each group is identified by an integer: GID (group identity).
-
item [ ] items: array of items. Each item is identified by an integer: IID (item identity).
Methods
(Currently under revision)
-
project getProject(PID):
-
boolean project.isActive():
-
boolean projectIsActive(PID):
-
string project.getName():
-
string project.setName(string):
-
boolean project.joinProject(GID):
-
project getCurrentProject(UID):
-
project getCurrentProject(GID):
-
project createProject():
-
project createProject(PID):
-
boolean removeProject(PID):
-
project [ ] getAllProjects():
-
group [ ] getAllGroups():
-
user [ ] getAllUsers():
-
item [ ] getAllItems():
-
group [ ] getAllGroups(PID):
-
user [ ] getAllUsers(PID):
-
item [ ] getAllItems(PID):
-
group addGroup(GID):
-
boolean dropGroup(GID):
-
boolean cleanProject():
-
boolean cleanProject(PID):