original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Validates a submitted user role data
  @return boolean
docstring_tokens: Validates a submitted user role data