Пример #1
0
 function doAjaxDelete()
 {
     $id = am4Request::getInt('id');
     $errors = $this->getOptions();
     $errors->delete($id)->save();
 }
Пример #2
0
 function doAjaxDelete()
 {
     $id = am4Request::getInt('id');
     $options = $this->getOptions();
     unset($options[$id]);
     update_option(AM4_ERROR_OPTION, $options);
 }