protected function validateEditUserRole()
    {
        $this->setSubmitted('role');
        $this->setSubmittedBool('status');
        $this->setSubmitted('update', $this->data_role);

        if (!$this->getSubmitted('permissions')) {
            $this->setSubmitted('permissions', array());
        }

        $this->validateComponent('user_role');

        return !$this->hasErrors();
    }
protected function validateEditUserRole()
    {
        $this->setSubmitted('role');
        $this->setSubmittedBool('status');
        $this->setSubmitted('update', $this->data_role);

        if (!$this->getSubmitted('permissions')) {
            $this->setSubmitted('permissions', array());
        }

        $this->validateComponent('user_role');

        return !$this->hasErrors();
    }
protected function validateEditUserRole ( ) { $ this -> setSubmitted ( 'role' ) ; $ this -> setSubmittedBool ( 'status' ) ; $ this -> setSubmitted ( 'update' , $ this -> data_role ) ; if ( ! $ this -> getSubmitted ( 'permissions' ) ) { $ this -> setSubmitted ( 'permissions' , array ( ) ) ; } $ this -> validateComponent ( 'user_role' ) ; return ! $ this -> hasErrors ( ) ; }
Validates a submitted user role data
@return boolean
Validates a submitted user role data