Base class for authorization handling.
This is just an abstract class, defining interface and a few bits of code. Since other DBLIB classes do not make use of DBAuth, but just rights array (from getRights), your authorization routines may not be subclasses of DBLAuth class as long as they fill the rights array the proper way. This class is only a template.
Located in /DBLAuth.php (line 14)
Constructor - create object
Authenticate user
This should check user password and if it matches, it should set all necessary session variables. Some implementations may add another attributes, e.g., salt to enable checking of passwords encoded by md5 by javascript.
Compare passwords encrypted with MD5 containing salt.
Utility function. Suppose the first (strlen(encodedPW)-32) characters of the encoded password are salt. Add the salt to password, encode and compare.
Return empty rights field.
This is an utility function for DBLAuth subclasses.
Get user rights for the realm.
Gets rights that the user has in the given realm. The parameters allow copying some rights from another one.
Check whether user is authorized (has logged on for this session).
Make some rights copy of another - to allow simple r/w rights models.
The getRights() method should call this before returning rights to the user.
Documentation generated on Mon, 6 Sep 2004 21:57:01 +0200 by phpDocumentor 1.2.3