Exemplo n.º 1
0
 /**
  * @copydoc DBDataSet::getDataLanguage
  */
 protected function getDataLanguage()
 {
     if (isset($_POST['languageID']) && $this->getState() == 'getRawData') {
         $langID = $_POST['languageID'];
         if (!E()->getLanguage()->isValidLangID($langID)) {
             throw new SystemException('ERR_BAD_LANG_ID', SystemException::ERR_WARNING);
         }
         $result = $langID;
     } else {
         $result = parent::getDataLanguage();
     }
     return $result;
 }