Plugins
[ class tree: Plugins ] [ index: Plugins ] [ all elements ]

Class: DbSecurityContainer

Source Location: /plugins/auth/client/ClientAuth.php

Class Overview

SecurityContainer
   |
   --DbSecurityContainer

Security container which reads the usernames, passwords and roles from database.


Variables

Methods


Inherited Methods

Class: SecurityContainer

SecurityContainer::checkUser()
Check if a username, password pair is valid. It must return false if the user is unknown or its password is invalid.
SecurityContainer::getRoles()
Returns the list of rules belonging to a user.

Class Details

[line 94]
Security container which reads the usernames, passwords and roles from database.



[ Top ]


Class Variables

$config =

[line 105]



Tags:

access:  protected

Type:   ClientPluginConfig


[ Top ]

$db =

[line 100]

Database object



Tags:

access:  protected

Type:   DB


[ Top ]



Class Methods


constructor __construct [line 110]

DbSecurityContainer __construct( ClientPluginConfig $config)

Constructor



Tags:

access:  public


[ Top ]

method checkUser [line 135]

void checkUser( mixed $username, mixed $password)



Tags:

access:  public
see:  SecurityContainer::checkUser()


Overrides SecurityContainer::checkUser() (Check if a username, password pair is valid. It must return false if the user is unknown or its password is invalid.)

[ Top ]

method getDb [line 119]

DB getDb( )

Returns the Pear::DB database connection.



Tags:

access:  protected


[ Top ]

method getRoles [line 148]

void getRoles( mixed $username)



Tags:

access:  public
see:  SecurityContainer::getRoles()


Overrides SecurityContainer::getRoles() (Returns the list of rules belonging to a user.)

[ Top ]


Documentation generated on Fri, 21 Sep 2007 13:30:34 +0200 by phpDocumentor 1.3.0RC3