public function user(array &$submitted, array $options)
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateUser();
        $this->validateBool('status');
        $this->validateName();
        $this->validateEmail();
        $this->validateEmailUniqueUser();
        $this->validatePasswordUser();
        $this->validatePasswordLengthUser();
        $this->validatePasswordOldUser();
        $this->validateStoreId();
        $this->validateRoleUser();
        $this->validateTimezoneUser();
        $this->validateData();

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
public function user(array &$submitted, array $options)
    {
        $this->options = $options;
        $this->submitted = &$submitted;

        $this->validateUser();
        $this->validateBool('status');
        $this->validateName();
        $this->validateEmail();
        $this->validateEmailUniqueUser();
        $this->validatePasswordUser();
        $this->validatePasswordLengthUser();
        $this->validatePasswordOldUser();
        $this->validateStoreId();
        $this->validateRoleUser();
        $this->validateTimezoneUser();
        $this->validateData();

        $this->unsetSubmitted('update');

        return $this->getResult();
    }
public function user ( array & $ submitted , array $ options ) { $ this -> options = $ options ; $ this -> submitted = & $ submitted ; $ this -> validateUser ( ) ; $ this -> validateBool ( 'status' ) ; $ this -> validateName ( ) ; $ this -> validateEmail ( ) ; $ this -> validateEmailUniqueUser ( ) ; $ this -> validatePasswordUser ( ) ; $ this -> validatePasswordLengthUser ( ) ; $ this -> validatePasswordOldUser ( ) ; $ this -> validateStoreId ( ) ; $ this -> validateRoleUser ( ) ; $ this -> validateTimezoneUser ( ) ; $ this -> validateData ( ) ; $ this -> unsetSubmitted ( 'update' ) ; return $ this -> getResult ( ) ; }
Performs full validation of submitted user data
@param array $submitted
@param array $options
@return array|boolean
Performs full validation of submitted user data