PHP 클래스 Model_Auth_User, php-framework-benchmarks

상속: extends ORM
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_callbacks Validation callbacks
$_has_many Relationships
$_ignored_columns Columns to ignore
$_labels Field labels
$_rules Validation rules

공개 메소드들

메소드 설명
change_password ( array &$array, $redirect = FALSE ) : boolean Validates an array for a matching password and password_confirm field, and optionally redirects after a successful save.
complete_login ( ) : void Complete the login for a user by incrementing the logins and saving login timestamp
email_available ( Validate $array, $field ) : void Does the reverse of unique_key_exists() by triggering error if email exists.
login ( array &$array, $redirect = FALSE ) : boolean Validates login information from an array, and optionally redirects after a successful login.
save ( ) : ORM Saves the current object. Will hash password if it was changed.
unique_key ( $value ) : string Allows a model use both email and username as unique identifiers for login
unique_key_exists ( $value, $field = NULL ) : boolean Tests if a unique key value exists in the database.
username_available ( Validate $array, $field ) : void Does the reverse of unique_key_exists() by triggering error if username exists.

메소드 상세

change_password() 공개 메소드

Validates an array for a matching password and password_confirm field, and optionally redirects after a successful save.
public change_password ( array &$array, $redirect = FALSE ) : boolean
$array array
리턴 boolean

complete_login() 공개 메소드

Complete the login for a user by incrementing the logins and saving login timestamp
public complete_login ( ) : void
리턴 void

email_available() 공개 메소드

Validation callback.
public email_available ( Validate $array, $field ) : void
$array Validate
리턴 void

login() 공개 메소드

Validates login information from an array, and optionally redirects after a successful login.
public login ( array &$array, $redirect = FALSE ) : boolean
$array array
리턴 boolean

save() 공개 메소드

Saves the current object. Will hash password if it was changed.
public save ( ) : ORM
리턴 ORM

unique_key() 공개 메소드

Allows a model use both email and username as unique identifiers for login
public unique_key ( $value ) : string
리턴 string field name

unique_key_exists() 공개 메소드

Tests if a unique key value exists in the database.
public unique_key_exists ( $value, $field = NULL ) : boolean
리턴 boolean

username_available() 공개 메소드

Validation callback.
public username_available ( Validate $array, $field ) : void
$array Validate
리턴 void

프로퍼티 상세

$_callbacks 보호되어 있는 프로퍼티

Validation callbacks
protected $_callbacks

$_has_many 보호되어 있는 프로퍼티

Relationships
protected $_has_many

$_ignored_columns 보호되어 있는 프로퍼티

Columns to ignore
protected $_ignored_columns

$_labels 보호되어 있는 프로퍼티

Field labels
protected $_labels

$_rules 보호되어 있는 프로퍼티

Validation rules
protected $_rules