|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| SimpleRealm ($type, $url) | |
| stretch ($url) | |
| _getCommonPath ($first, $second) | |
| setIdentity ($username, $password) | |
| getUsername () | |
| getPassword () | |
| isWithin ($url) | |
| _isIn ($part, $whole) | |
Data Fields | |
| $_type | |
| $_root | |
| $_username | |
| $_password | |
Definition at line 18 of file authentication.php.
| _getCommonPath | ( | $ | first, |
| $ | second | ||
| ) |
Finds the common starting path.
| string | $first | Path to compare. |
| string | $second | Path to compare. |
Definition at line 55 of file authentication.php.

| _isIn | ( | $ | part, |
| $ | whole | ||
| ) |
Tests to see if one string is a substring of another.
| string | $part | Small bit. |
| string | $whole | Big bit. |
Definition at line 121 of file authentication.php.

| getPassword | ( | ) |
Accessor for current identity.
Definition at line 91 of file authentication.php.
| getUsername | ( | ) |
Accessor for current identity.
Definition at line 82 of file authentication.php.
| isWithin | ( | $ | url | ) |
Test to see if the URL is within the directory tree of the realm.
| SimpleUrl | $url | URL to test. |
Definition at line 102 of file authentication.php.

| setIdentity | ( | $ | username, |
| $ | password | ||
| ) |
Sets the identity to try within this realm.
| string | $username | Username in authentication dialog. |
| string | $username | Password in authentication dialog. public |
Definition at line 72 of file authentication.php.
| SimpleRealm | ( | $ | type, |
| $ | url | ||
| ) |
Starts with the initial entry directory.
| string | $type | Authentication type for this realm. Only Basic authentication is currently supported. |
| SimpleUrl | $url | Somewhere in realm. public |
Definition at line 32 of file authentication.php.
| stretch | ( | $ | url | ) |
Adds another location to the realm.
| SimpleUrl | $url | Somewhere in realm. public |
Definition at line 44 of file authentication.php.

| $_password |
Definition at line 22 of file authentication.php.
| $_root |
Definition at line 20 of file authentication.php.
| $_type |
Definition at line 19 of file authentication.php.
| $_username |
Definition at line 21 of file authentication.php.