original_string: protected function validateEditPage()
      {
          $this->setSubmitted('page', null, false);
          $this->setSubmitted('form', true);
          $this->setSubmitted('update', $this->data_page);
          $this->setSubmittedBool('status');
          $this->setSubmittedBool('blog_post');
  
          if (empty($this->data_page['page_id'])) {
              $this->setSubmitted('user_id', $this->uid);
          }
  
          $this->validateComponent('page');
  
          return !$this->hasErrors();
      }
code: protected function validateEditPage()
      {
          $this->setSubmitted('page', null, false);
          $this->setSubmitted('form', true);
          $this->setSubmitted('update', $this->data_page);
          $this->setSubmittedBool('status');
          $this->setSubmittedBool('blog_post');
  
          if (empty($this->data_page['page_id'])) {
              $this->setSubmitted('user_id', $this->uid);
          }
  
          $this->validateComponent('page');
  
          return !$this->hasErrors();
      }
code_tokens: protected function validateEditPage ( ) { $ this -> setSubmitted ( 'page' , null , false ) ; $ this -> setSubmitted ( 'form' , true ) ; $ this -> setSubmitted ( 'update' , $ this -> data_page ) ; $ this -> setSubmittedBool ( 'status' ) ; $ this -> setSubmittedBool ( 'blog_post' ) ; if ( empty ( $ this -> data_page [ 'page_id' ] ) ) { $ this -> setSubmitted ( 'user_id' , $ this -> uid ) ; } $ this -> validateComponent ( 'page' ) ; return ! $ this -> hasErrors ( ) ; }
docstring: Validates a submitted page
  @return bool
docstring_tokens: Validates a submitted page