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();
            }
        }
    }
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();
            }
        }
    }
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 ( ) ; } } }
Handles a submitted language data
Handles a submitted language data