PHP Class AdminUser

The followings are the available columns in table 'p2_adminuser':
Inheritance: extends ActiveRecord
Afficher le fichier Open project: yinhe/yincart Class Usage Examples

Méthodes publiques

Méthode Description
attributeLabels ( ) : array
hashPassword ( $password ) : string Generates the password hash.
model ( string $className = __CLASS__ ) : AdminUser Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string
validatePassword ( $password ) : boolean Checks if the given password is correct.

Méthodes protégées

Méthode Description
generateSalt ( $cost = 10 ) : string Generates a salt that can be used to generate a password hash.

Method Details

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

generateSalt() protected méthode

The {@link http://php.net/manual/en/function.crypt.php PHP crypt() built-in function} requires, for the Blowfish hash algorithm, a salt string in a specific format: - "$2a$" - a two digit cost parameter - "$" - 22 characters from the alphabet "./0-9A-Za-z".
protected generateSalt ( $cost = 10 ) : string
Résultat string the salt

hashPassword() public méthode

Generates the password hash.
public hashPassword ( $password ) : string
Résultat string hash

model() public static méthode

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : AdminUser
$className string active record class name.
Résultat AdminUser the static model class

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

validatePassword() public méthode

Checks if the given password is correct.
public validatePassword ( $password ) : boolean
Résultat boolean whether the password is valid