Пример #1
0
 /**
  * Remove items.
  *
  * @throws  Exception
  * @return  void
  * @since   11.1
  */
 public function delete()
 {
     $redirectOptions = array("view" => "urls");
     $cid = $this->input->post->get("cid", array(), "array");
     $modelTags = $this->getModel("Tag");
     try {
         $modelTags->deleteByUrlId($cid);
         parent::delete();
     } catch (Exception $e) {
         JLog::add($e->getMessage());
         throw new Exception(JText::_('COM_ITPMETA_ERROR_SYSTEM'));
     }
     $msg = JText::plural($this->text_prefix . '_N_ITEMS_DELETED', count($cid));
     $this->displayMessage($msg, $redirectOptions);
 }