- A new module MOD_member to encapsulate member attributes and preferences from the database
- Enhanced MOD_user module, to encapsulate user settings in the session
New MOD_member
provides access to DB tables:
- members
- memberspreferences, preferences
- memberspublicprofiles
- evtl rights
how to use:
- use MOD_member::getMember_username($username) or MOD_member::getMember_userId($user_id) to get a member object
- use the methods of this member object to read or write data from/to the DB tables.
Enhanced MOD_user
general:
- represents the user with his session and current request,
as opposed to a 'member account' in the database
- if logged out, a user is associated with an ip address.
- there is only ONE user in a request (-> hidden singleton)
- all user settings in $_SESSION should happen in this module
logged in:
- user is associated with a member account (-> MOD_member)
- data from $_SESSION might be stored in the member account
- data from the member account might go to the $_SESSION
- MOD_user can ask MOD_member for settings stored in the member account
logged out:
- user is associated with an ip address