PHP Класс Model_A1_User_Mango

Remember to validate data before saving to database. Some validation rules are already taken care of by the _fields declaration. Min_length and max_length are set for both username and password, both these fields are already required, and the username will be checked on uniqueness. However, you might want to add additional rules to validate if username is alphanumeric for example.
Наследование: extends Mango
Показать файл Открыть проект

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

Свойство Тип Описание
$_fields
$_name Specify config name so password gets hashed correctly (with the right salt pattern) when set in user

Открытые методы

Метод Описание
create ( $options = [] )
hash ( $password )
update ( $criteria = [], $options = [] )

Описание методов

create() публичный Метод

public create ( $options = [] )

hash() публичный Метод

public hash ( $password )

update() публичный Метод

public update ( $criteria = [], $options = [] )

Описание свойств

$_fields защищенное свойство

protected $_fields

$_name защищенное свойство

Specify config name so password gets hashed correctly (with the right salt pattern) when set in user
protected $_name