Beispiel #1
0
 public function deleteTranslation()
 {
     include_once JPATH_COMPONENT . "/tables/translate.php";
     $translation = new TableTranslate();
     $translation->delete(JRequest::getInt("trans_translation_id"));
 }
Beispiel #2
0
 public function saveTranslation()
 {
     $array = JRequest::get('request', JREQUEST_ALLOWHTML);
     // Should we allow raw content through unfiltered
     $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
     if ($params->get("allowraw", 0)) {
         $array['trans_description'] = JRequest::getString("trans_description", "", "POST", JREQUEST_ALLOWRAW);
         $array['trans_extra_info'] = JRequest::getString("trans_extra_info", "", "POST", JREQUEST_ALLOWRAW);
     }
     include_once JPATH_COMPONENT . "/tables/translate.php";
     $translation = new TableTranslate();
     $success = $translation->save($array);
     return $success;
 }