PHP Класс Model_Auth_User, php-framework-benchmarks

Наследование: extends ORM
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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