original_string: protected function submitEditDashboard()
      {
          if ($this->isPosted('save')) {
              $this->validateEditDashboard();
              $this->saveDashboard();
          } else if ($this->isPosted('delete') && isset($this->data_dashboard['dashboard_id'])) {
              $this->deleteDashboard();
          }
      }
code: protected function submitEditDashboard()
      {
          if ($this->isPosted('save')) {
              $this->validateEditDashboard();
              $this->saveDashboard();
          } else if ($this->isPosted('delete') && isset($this->data_dashboard['dashboard_id'])) {
              $this->deleteDashboard();
          }
      }
code_tokens: protected function submitEditDashboard ( ) { if ( $ this -> isPosted ( 'save' ) ) { $ this -> validateEditDashboard ( ) ; $ this -> saveDashboard ( ) ; } else if ( $ this -> isPosted ( 'delete' ) && isset ( $ this -> data_dashboard [ 'dashboard_id' ] ) ) { $ this -> deleteDashboard ( ) ; } }
docstring: Handles an array of submitted data
docstring_tokens: Handles an array of submitted data