original_string: protected function submitEditLanguage()
      {
          if ($this->isPosted('delete')) {
              $this->deleteLanguage();
          } else if ($this->isPosted('save') && $this->validateLanguage()) {
              if (isset($this->data_language['code'])) {
                  $this->updateLanguage();
              } else {
                  $this->addLanguage();
              }
          }
      }
code: protected function submitEditLanguage()
      {
          if ($this->isPosted('delete')) {
              $this->deleteLanguage();
          } else if ($this->isPosted('save') && $this->validateLanguage()) {
              if (isset($this->data_language['code'])) {
                  $this->updateLanguage();
              } else {
                  $this->addLanguage();
              }
          }
      }
code_tokens: protected function submitEditLanguage ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteLanguage ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateLanguage ( ) ) { if ( isset ( $ this -> data_language [ 'code' ] ) ) { $ this -> updateLanguage ( ) ; } else { $ this -> addLanguage ( ) ; } } }
docstring: Handles a submitted language data
docstring_tokens: Handles a submitted language data