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
파일 보기 프로젝트 열기: wouterrr/a1

보호된 프로퍼티들

프로퍼티 타입 설명
$_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