PHP Class UserChangePassForm, gxc-cms

Author: Tuan Nguyen ([email protected])
Inheritance: extends CFormModel
Show file Open project: nganhtuan63/gxc-cms

Public Properties

Property Type Description
$new_password_1
$new_password_2
$old_password

Public Methods

Method Description
attributeLabels ( ) Declares attribute labels.
checkNewPass ( array $attribute, array $params ) : boolean Compare the two new password match or not
checkOldPass ( array $attribute, array $params ) : boolean Check the old pass is Ok or not
rules ( ) Declares the validation rules.

Method Details

attributeLabels() public method

Declares attribute labels.
public attributeLabels ( )

checkNewPass() public method

Compare the two new password match or not
public checkNewPass ( array $attribute, array $params ) : boolean
$attribute array
$params array
return boolean

checkOldPass() public method

Check the old pass is Ok or not
public checkOldPass ( array $attribute, array $params ) : boolean
$attribute array
$params array
return boolean

rules() public method

The rules state that username and password are required, and password needs to be authenticated.
public rules ( )

Property Details

$new_password_1 public property

public $new_password_1

$new_password_2 public property

public $new_password_2

$old_password public property

public $old_password