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.
Показать файл
Открыть проект
Защищенные свойства (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 = [] ) |
|
|
Описание методов
public create ( $options = [] ) |
public hash ( $password ) |
public update ( $criteria = [], $options = [] ) |
Описание свойств
$_fields защищенное свойство
$_name защищенное свойство
Specify config name so password gets hashed correctly (with the right salt pattern) when set in user