symfony API

sfSecurityUser Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:

sfSecurityUser interface provides advanced security manipulation methods.

Method Summary

Method Details

  • addCredential ($credential) Browse code

    $credential Credential data.

    Add a credential to this user.

  • clearCredentials () Browse code

    Clear all credentials associated with this user.

  • (bool) hasCredential ($credential) Browse code

    $credential Credential data.

    Indicates whether or not this user has a credential.

    returns true, if this user has the credential, otherwise false.

  • (bool) isAuthenticated () Browse code

    Indicates whether or not this user is authenticated.

    returns true, if this user is authenticated, otherwise false.

  • removeCredential ($credential) Browse code

    $credential Credential data.

    Remove a credential from this user.

  • setAuthenticated ($authenticated) Browse code

    $authenticated A flag indicating the authenticated status of this user.

    Set the authenticated status of this user.