Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
External storage implemmentation using serialized files
string $_dir = ''
Directory name to store data files in
__construct(
string $dir
=
null
)
:
Constructs storage object and creates storage directory
addAssociation(
string $handle, string $macFunc, string $secret, string $expires
)
:
bool
Stores information about session identified by $handle
addSite(
string $id, string $site, mixed $trusted
)
:
bool
Stores information about trusted/untrusted site for given user
addUser(
string $id, string $password
)
:
bool
Register new user with given $id and $password Returns true in case of success and false if user with given $id already exists
checkUser(
string $id, string $password
)
:
bool
Verify if user with given $id exists and has specified $password
delAssociation(
string $handle
)
:
bool
Removes information about association identified by $handle
delUser(
string $id
)
:
bool
Removes information abou specified user
getAssociation(
string $handle, string $macFunc, string $secret, string $expires
)
:
bool
Gets information about association identified by $handle Returns true if given association found and not expired and false otherwise
getTrustedSites(
string $id
)
:
array
Returns array of all trusted/untrusted sites for given user identified by $id
hasUser(
string $id
)
:
bool
Returns true if user with given $id exists and false otherwise