original_string: protected function validateEditPriceRule()
      {
          $this->setSubmitted('price_rule', null, false);
          $this->setSubmittedBool('status');
          $this->setSubmitted('update', $this->data_rule);
  
          $this->validateComponent('price_rule');
  
          return !$this->hasErrors();
      }
code: protected function validateEditPriceRule()
      {
          $this->setSubmitted('price_rule', null, false);
          $this->setSubmittedBool('status');
          $this->setSubmitted('update', $this->data_rule);
  
          $this->validateComponent('price_rule');
  
          return !$this->hasErrors();
      }
code_tokens: protected function validateEditPriceRule ( ) { $ this -> setSubmitted ( 'price_rule' , null , false ) ; $ this -> setSubmittedBool ( 'status' ) ; $ this -> setSubmitted ( 'update' , $ this -> data_rule ) ; $ this -> validateComponent ( 'price_rule' ) ; return ! $ this -> hasErrors ( ) ; }
docstring: Validates a submitted price rule
  @return bool
docstring_tokens: Validates a submitted price rule