original_string: protected function validateEditCollectionItem()
      {
          $this->setSubmitted('collection_item');
          $this->setSubmittedBool('status');
          $this->setSubmitted('update', $this->data_collection_item);
          $this->setSubmitted('collection_id', $this->data_collection['collection_id']);
  
          $this->validateComponent('collection_item');
          return !$this->hasErrors();
      }
code: protected function validateEditCollectionItem()
      {
          $this->setSubmitted('collection_item');
          $this->setSubmittedBool('status');
          $this->setSubmitted('update', $this->data_collection_item);
          $this->setSubmitted('collection_id', $this->data_collection['collection_id']);
  
          $this->validateComponent('collection_item');
          return !$this->hasErrors();
      }
code_tokens: protected function validateEditCollectionItem ( ) { $ this -> setSubmitted ( 'collection_item' ) ; $ this -> setSubmittedBool ( 'status' ) ; $ this -> setSubmitted ( 'update' , $ this -> data_collection_item ) ; $ this -> setSubmitted ( 'collection_id' , $ this -> data_collection [ 'collection_id' ] ) ; $ this -> validateComponent ( 'collection_item' ) ; return ! $ this -> hasErrors ( ) ; }
docstring: Validates a submitted collection item
  @return bool
docstring_tokens: Validates a submitted collection item