Zend Framework
1.12
|
Public Member Functions | |
__construct ($dir=null) | |
Constructs storage object and creates storage directory. | |
addAssociation ($handle, $macFunc, $secret, $expires) | |
Stores information about session identified by $handle. | |
getAssociation ($handle, &$macFunc, &$secret, &$expires) | |
Gets information about association identified by $handle Returns true if given association found and not expired and false otherwise. | |
delAssociation ($handle) | |
Removes information about association identified by $handle. | |
addUser ($id, $password) | |
Register new user with given $id and $password Returns true in case of success and false if user with given $id already exists. | |
hasUser ($id) | |
Returns true if user with given $id exists and false otherwise. | |
checkUser ($id, $password) | |
Verify if user with given $id exists and has specified $password. | |
delUser ($id) | |
Removes information abou specified user. | |
getTrustedSites ($id) | |
Returns array of all trusted/untrusted sites for given user identified by $id. | |
addSite ($id, $site, $trusted) | |
Stores information about trusted/untrusted site for given user. | |
![]() | |
addAssociation ($handle, $macFunc, $secret, $expires) | |
Stores information about session identified by $handle. | |
getAssociation ($handle, &$macFunc, &$secret, &$expires) | |
Gets information about association identified by $handle Returns true if given association found and not expired and false otherwise. | |
addUser ($id, $password) | |
Register new user with given $id and $password Returns true in case of success and false if user with given $id already exists. | |
hasUser ($id) | |
Returns true if user with given $id exists and false otherwise. | |
checkUser ($id, $password) | |
Verify if user with given $id exists and has specified $password. | |
getTrustedSites ($id) | |
Returns array of all trusted/untrusted sites for given user identified by $id. | |
addSite ($id, $site, $trusted) | |
Stores information about trusted/untrusted site for given user. | |
__construct | ( | $dir = null | ) |
Constructs storage object and creates storage directory.
string | $dir | directory name to store data files in |
Zend_OpenId_Exception |
addAssociation | ( | $handle, | |
$macFunc, | |||
$secret, | |||
$expires | |||
) |
Stores information about session identified by $handle.
string | $handle | assiciation handle |
string | $macFunc | HMAC function (sha1 or sha256) |
string | $secret | shared secret |
string | $expires | expiration UNIX time |
addSite | ( | $id, | |
$site, | |||
$trusted | |||
) |
Stores information about trusted/untrusted site for given user.
string | $id | user identity URL |
string | $site | site URL |
mixed | $trusted | trust data from extension or just a boolean value |
addUser | ( | $id, | |
$password | |||
) |
Register new user with given $id and $password Returns true in case of success and false if user with given $id already exists.
string | $id | user identity URL |
string | $password | encoded user password |
checkUser | ( | $id, | |
$password | |||
) |
Verify if user with given $id exists and has specified $password.
string | $id | user identity URL |
string | $password | user password |
delAssociation | ( | $handle | ) |
Removes information about association identified by $handle.
string | $handle | assiciation handle |
delUser | ( | $id | ) |
Removes information abou specified user.
string | $id | user identity URL |
getAssociation | ( | $handle, | |
& | $macFunc, | ||
& | $secret, | ||
& | $expires | ||
) |
Gets information about association identified by $handle Returns true if given association found and not expired and false otherwise.
string | $handle | assiciation handle |
string | &$macFunc | HMAC function (sha1 or sha256) |
string | &$secret | shared secret |
string | &$expires | expiration UNIX time |
getTrustedSites | ( | $id | ) |
Returns array of all trusted/untrusted sites for given user identified by $id.
string | $id | user identity URL |
hasUser | ( | $id | ) |
Returns true if user with given $id exists and false otherwise.
string | $id | user identity URL |