PHP 클래스 AdminUser

The followings are the available columns in table 'p2_adminuser':
상속: extends ActiveRecord
파일 보기 프로젝트 열기: yinhe/yincart 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
generateSalt ( $cost = 10 ) : string Generates a salt that can be used to generate a password hash.

메소드 상세

attributeLabels() 공개 메소드

public attributeLabels ( ) : array
리턴 array customized attribute labels (name=>label)

generateSalt() 보호된 메소드

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
리턴 string the salt

hashPassword() 공개 메소드

Generates the password hash.
public hashPassword ( $password ) : string
리턴 string hash

model() 공개 정적인 메소드

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

relations() 공개 메소드

public relations ( ) : array
리턴 array relational rules.

rules() 공개 메소드

public rules ( ) : array
리턴 array validation rules for model attributes.

tableName() 공개 메소드

public tableName ( ) : string
리턴 string the associated database table name

validatePassword() 공개 메소드

Checks if the given password is correct.
public validatePassword ( $password ) : boolean
리턴 boolean whether the password is valid