[line 39]
Manage users and handle database communication.
Only one instance of this class should exist for one database connection, i.e. one instance of GALGallery. This is assured inside __construct(). Most work is done by inherited methods from GALTable.
This constructor shouldn't be called by a library user, the representations for the used tables are automatically created by the GALGallery object.
Check if an instance of GALUsers already exists in the specified GALGallery. If this is the case, throw a GAL_EUser If not, read necessary information for further initialization from $glb.
This method queries GALLogins if the given key exists and is not outdated. If such a key exists, the corresponding user is logged in and the GALLogin::used property of the corresponding key is set to the current time.
Tries to log in an user identified by $login and $password.
If login name and password match, GALGallery::user is set to the user with the specified login name and a login key is inserted into GALLogins using GALLogins::login(). This user can log in with this key using keyLogin() until the key expires.