Exemplo n.º 1
0
 public function updaterecordsAction()
 {
     $this->_checkCanDelete();
     $dictionary = Request::post('dictionary', Filter::FILTER_CLEANED_STR, false);
     $data = Request::post('data', Filter::FILTER_RAW, false);
     if ($dictionary === false || empty($dictionary) || $data === false) {
         Response::jsonError($this->_lang->get('WRONG_REQUEST'));
     }
     $data = json_decode($data, true);
     try {
         $this->_manager->updateRecords($dictionary, $data);
         $this->_router->runController('Backend_Compiler_Controller', 'lang');
         //Response::jsonSuccess();
     } catch (Exception $e) {
         Response::jsonError($e->getMessage());
     }
 }