symfony API

sfBasicSecurityUser Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu


You are currently browsing the symfony API for the 1.4 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfBasicSecurityUser will handle any type of data as a credential.


sfBasicSecurityUser  <  sfUser

Method Summary

Methods inherited from sfUser

getAttribute , getAttributeHolder , getCulture , getFlash , getOptions , hasAttribute , hasFlash , initialize , offsetExists , offsetGet , offsetSet , offsetUnset , setAttribute , setCulture , setFlash , shutdown , __call , __construct

Method Details

  • addCredential ($credential)

    Adds a credential.

  • addCredentials ()

    Adds several credential at once.

  • clearCredentials ()

    Clears all credentials.

  • (array) getCredentials ()

    Returns the current user's credentials.

  • (int) getLastRequestTime ()

    Returns the timestamp of the last user request.

  • (bool) hasCredential ($credentials, $useAnd)

    $useAnd specify the mode, either AND or OR

    Returns true if user has credential.

  • initialize ($dispatcher, $storage, $options)

    $dispatcher An sfEventDispatcher instance.
    $storage An sfStorage instance.
    $options An associative array of options.

    Available options:

    * timeout: Timeout to automatically log out the user in seconds (1800 by default)
    Set to false to disable

  • (boolean) isAuthenticated ()

    Returns true if user is authenticated.

  • isTimedOut ()

  • removeCredential ($credential)

    $credential credential

    Removes a credential.

  • setAuthenticated ($authenticated)

    Sets authentication for user.

  • setTimedOut ()

  • shutdown ()