HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
LoginForm Class Reference

Public Member Functions

 rules ()
 attributeLabels ()
 authenticate ($attribute, $params)
 login ()

Public Attributes

 $username
 $password
 $rememberMe

Private Attributes

 $_identity

Detailed Description

LoginForm class. LoginForm is the data structure for keeping user login form data. It is used by the 'login' action of 'SiteController'.

Definition at line 8 of file LoginForm.php.

Member Function Documentation

LoginForm::attributeLabels ( )

Declares attribute labels.

Definition at line 36 of file LoginForm.php.

LoginForm::authenticate (   $attribute,
  $params 
)

Authenticates the password. This is the 'authenticate' validator as declared in rules().

Definition at line 47 of file LoginForm.php.

LoginForm::login ( )

Logs in the user using the given username and password in the model.

Returns
boolean whether login is successful

Definition at line 60 of file LoginForm.php.

LoginForm::rules ( )

Declares the validation rules. The rules state that username and password are required, and password needs to be authenticated.

Definition at line 21 of file LoginForm.php.

Member Data Documentation

LoginForm::$_identity
private

Definition at line 14 of file LoginForm.php.

LoginForm::$password

Definition at line 11 of file LoginForm.php.

LoginForm::$rememberMe

Definition at line 12 of file LoginForm.php.

LoginForm::$username

Definition at line 10 of file LoginForm.php.


The documentation for this class was generated from the following file: