original_string: protected function validateEditCategory()
      {
          $this->setSubmitted('category', null, false);
          $this->setSubmitted('form', true);
          $this->setSubmittedBool('status');
          $this->setSubmitted('update', $this->data_category);
          $this->setSubmitted('category_group_id', $this->data_category_group['category_group_id']);
  
          $this->validateComponent('category');
  
          return !$this->hasErrors();
      }
code: protected function validateEditCategory()
      {
          $this->setSubmitted('category', null, false);
          $this->setSubmitted('form', true);
          $this->setSubmittedBool('status');
          $this->setSubmitted('update', $this->data_category);
          $this->setSubmitted('category_group_id', $this->data_category_group['category_group_id']);
  
          $this->validateComponent('category');
  
          return !$this->hasErrors();
      }
code_tokens: protected function validateEditCategory ( ) { $ this -> setSubmitted ( 'category' , null , false ) ; $ this -> setSubmitted ( 'form' , true ) ; $ this -> setSubmittedBool ( 'status' ) ; $ this -> setSubmitted ( 'update' , $ this -> data_category ) ; $ this -> setSubmitted ( 'category_group_id' , $ this -> data_category_group [ 'category_group_id' ] ) ; $ this -> validateComponent ( 'category' ) ; return ! $ this -> hasErrors ( ) ; }
docstring: Validates a submitted category
  @return bool
docstring_tokens: Validates a submitted category