User - Geodan/cow GitHub Wiki

Classes


Description

Attributes

  • string UID: user identity. Also the primary key. Unique to each user.

  • string userName: user name.

  • peer [ ] peers: array of integers. Each integer is a GID (group identity) of the groups the user belongs to.

  • other other: other user-related data.

Methods

(Currently under revision)

  • PID getCurrentProject():

  • boolean setCurrentProject(PID):

  • project [ ] getOwnProjects():

  • group [ ] getOwnGroups():

  • GID getMyGroup():

  • item [ ] getOwnItems():

  • boolean joinGroup(GID):

  • boolean leaveGroup(GID):

  • string user.getUserName():

  • boolean setUserName(string):

  • string getUserName(UID):

  • item [ ] user.getItems(""/"view"/"edit"/"share"):

  • UID user.getIdentity():

  • boolean user.setIdentity(UID):