symfony API

sfBasicSecurityUser Class

« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 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.

Inheritence

sfBasicSecurityUser  <  sfUser

Method Summary

Methods inherited from sfUser

getAttribute , getAttributeHolder , getCulture , getFlash , getOptions , hasAttribute , hasFlash , initialize , setAttribute , setCulture , setFlash , shutdown , __call , __construct

Method Details

  • addCredential ($credential) Browse code

    $credential

    Adds a credential.

  • addCredentials (0) Browse code

    0 array or list of credentials

    Adds several credential at once.

  • clearCredentials () Browse code

    Clears all credentials.

  • (int) getLastRequestTime () Browse code

    Returns the timestamp of the last user request.

  • (bool) hasCredential ($credentials, $useAnd = true) Browse code

    $credentials
    $useAnd specify the mode, either AND or OR

    Returns true if user has credential.

  • initialize ($dispatcher, $storage, $options = array()) Browse code

    $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 () Browse code

    Returns true if user is authenticated.

  • isTimedOut () Browse code

  • listCredentials () Browse code

    returns an array containing the credentials

  • removeCredential ($credential) Browse code

    $credential credential

    Removes a credential.

  • setAuthenticated ($authenticated) Browse code

    $authenticated

    Sets authentication for user.

  • setTimedOut () Browse code

  • shutdown () Browse code

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.