public function delete() { parent::delete(); $this->input = $this->input->post->get('trieda_id', 0, 'int'); $this->setRedirect(JRoute::_('index.php?option=com_absolventi&view=ziacilist&trieda_id=' . $this->input, false)); $this->redirect; }
public function delete() { // Get items to remove from the request and reverse the order to delete child albums first $cid = JFactory::getApplication()->input->get('cid', array(), 'array'); JFactory::getApplication()->input->set('cid', array_reverse($cid)); parent::delete(); }
public function delete() { /* * получаем имя файла из записи по ID * удаляем файл * выполняем родительский метод */ $cid = JFactory::getApplication()->input->get('cid', array(), 'array'); if (is_array($cid) && count($cid) > 0) { $arFilesToDelete = array(); foreach ($cid as $id) { $db = JFactory::getDBO(); $q = "SELECT `id`, `filename` FROM #__downfiles WHERE id = {$id}"; $res = $db->setQuery($q); $data_row = $res->loadAssoc(); $arFilesToDelete[] = $data_row["filename"]; } jimport('joomla.filesystem.file'); foreach ($arFilesToDelete as $fname) { JFile::delete(JPATH_ROOT . '/' . $fname); } } else { JLog::add(JText::_($this->text_prefix . '_NO_ITEM_SELECTED'), JLog::WARNING, 'jerror'); } parent::delete(); }
function delete() { $cid = JRequest::getVar('cid', array(), '', 'array'); if (!igGeneralHelper::authorise('core.delete', (int) $cid[0])) { return JError::raiseWarning(404, JText::_('JERROR_CORE_DELETE_NOT_PERMITTED')); } parent::delete(); }
/** * Removes an item. * * Overrides JControllerAdmin::delete to check the core.admin permission. * * @since 1.6 */ function delete() { if (!User::authorise('core.admin', $this->option)) { App::abort(500, Lang::txt('JERROR_ALERTNOAUTHOR')); exit; } return parent::delete(); }
/** * Removes an item. * * Overrides JControllerAdmin::delete to check the core.admin permission. * * @since 1.6 */ public function delete() { if (!JFactory::getUser()->authorise('core.admin', $this->option)) { JError::raiseError(500, JText::_('JERROR_ALERTNOAUTHOR')); jexit(); } return parent::delete(); }
/** * Removes an item. * * Overrides JControllerAdmin::delete to check the core.admin permission. * * @since 1.6 */ public function delete() { if (!JFactory::getUser()->authorise('core.admin', $this->option)) { throw new Exception(JText::_('JERROR_ALERTNOAUTHOR')); jexit(); } return parent::delete(); }
/** * Removes an item. * * @return void */ public function delete() { parent::delete(); $project = JRequest::getUInt('filter_project'); $topic = JRequest::getUInt('filter_topic'); $link = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&filter_project=' . $project . '&filter_topic=' . $topic; $this->setRedirect(JRoute::_($link, false)); }
public function delete() { parent::delete(); if (!$this->getError()) { $app = JFactory::getApplication(); $link = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&filter_project=' . (int) $app->input->get('filter_project') . '&filter_album=' . (int) $app->input->get('filter_album') . '&id=' . (int) $app->input->get('id') . '&revision=' . (int) $app->input->get('revision'); $this->setRedirect(JRoute::_($link, false)); return true; } return false; }
public function deletehard() { $cid = JRequest::getString('cid', ''); $cid = explode(',', $cid); if (count($cid)) { JRequest::setVar('cid', $cid, 'post'); $token = JRequest::getVar(JSession::getFormToken()); JRequest::setVar(JSession::getFormToken(), $token, 'post'); parent::delete(); } $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false)); }
/** * Change the standard behavior after deleting * * @since 1.0 */ public function delete() { // Workaround for wrong foreign key. Removing all of entries from sub_list before removing list itself $cids = (array) JRequest::getVar('cid', array()); if (!empty($cids)) { $dbo = JFactory::getDbo(); $dbo->setQuery("DELETE FROM #__newsletter_sub_list WHERE list_id in ('" . implode("','", $cids) . "')"); $dbo->query(); } parent::delete(); $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=subscribers', false)); }
function delete() { $cid = JRequest::getVar('cid', array(), '', 'array'); JArrayHelper::toInteger($cid); JRequest::setVar('cid', $cid, 'post'); JFactory::getApplication()->input->post->set('cid', $cid); JRequest::setVar(JRequest::getCmd('formtoken'), 1, 'post'); JFactory::getApplication()->input->post->set(JRequest::getCmd('formtoken'), 1); if (!igGeneralHelper::authorise('core.igalleryfront.delete', (int) $cid[0])) { return JError::raiseWarning(404, JText::_('JERROR_CORE_DELETE_NOT_PERMITTED')); } parent::delete(); }
/** * Redirection after standard saving * * @return void * @since 1.0 */ public function delete() { $jform = JRequest::getVar('jform'); if ($jform['general_mailbox_default'] > 0) { JRequest::setVar('cid', $jform['general_mailbox_default']); parent::delete(); } else { JFactory::getApplication()->enqueueMessage(JText::_('COM_NEWSLETTER_CANNOT_DELETE_JPROFILE'), 'error'); } $rurl = JRequest::getString('returnurl'); if (!empty($rurl)) { $this->setRedirect(base64_decode($rurl)); } }
public function delete() { $app = JFactory::getApplication(); $cid = $app->input->get('cid', array(), 'array'); if (!empty($cid)) { $db = JFactory::getDbo(); $query = "SELECT COUNT(*) FROM #__judirectory_criterias_values WHERE criteria_id IN(" . implode(',', $cid) . ")"; $db->setQuery($query); $result = $db->loadResult(); if ($result) { JError::raiseNotice(500, "Please Rebuild rating !"); } } parent::delete(); }
function delete() { if (!igGeneralHelper::authorise('core.admin')) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } if (!igGeneralHelper::authorise('core.delete')) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } $model = $this->getModel(); if (!$model->checkAssigned()) { $this->setRedirect('index.php?option=com_igallery&view=profiles'); return; } parent::delete(); }
public function delete() { $app = JFactory::getApplication(); $cid = $app->input->get('cid', array(), 'array'); $new_cids = array(); if (count($cid) > 0) { foreach ($cid as $k => $v) { $parts = explode(',', $v); if (count($parts) == 2) { $new_cid = $parts[1]; $new_cids[] = $new_cid; } } } $app->input->post->set('cid', $new_cids); $app->input->set('cid', $new_cids); @JRequest::setVar('cid', $new_cids, 'post'); return parent::delete(); }
/** * Check each element and delete deleteable ones */ public function delete() { $cids = JRequest::getVar('cid', array()); $unset = 0; if (!empty($cids)) { $model = JModel::getInstance('queue', 'NewsletterModelEntity'); foreach ($cids as $idx => $cid) { $model->load($cid); if ($model->isSent()) { unset($cids[$idx]); $unset++; } } if ($unset > 0) { JFactory::getApplication()->enqueueMessage(sprintf(JText::_('COM_NEWSLETTER_QUEUES_ITEMS_CANNOT_DELETED'), $unset), 'message'); } if (empty($cids)) { $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false)); return; } JRequest::setVar('cid', $cids); } parent::delete(); }
function delete() { parent::delete(); $this->setRedirect('index.php?option=com_absolventi'); $this->redirect; }
public function delete() { parent::delete(); $this->setRedirect(JRoute::_('index.php?option=com_absolventi&view=ucitelialist', false)); $this->redirect; }
/** * Actually delete the requested items forms etc. * * @return null */ public function dodelete() { parent::delete(); }
function delete() { parent::delete(); $this->setRedirect('index.php?option=com_eventgallery&view=files&folderid=' . JRequest::getVar('folderid')); }
public function delete() { $return = parent::delete(); $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list . '&context=' . $this->input->getCmd('context', 'com_content.article'), false)); return $return; }
public function delete() { $app = JFactory::getApplication(); $documentid = $app->input->post->get('documentid', array(), 'array'); $app->input->set('cid', $documentid); $_POST['cid'] = $documentid; $rootCat = JUDownloadFrontHelperCategory::getRootCategory(); $cat_id = $app->input->getInt('cat_id', $rootCat->id); parent::delete(); $this->setRedirect("index.php?option=com_judownload&view={$this->view_list}&cat_id={$cat_id}"); }
public function delete() { parent::delete(); $this->setRedirectToSlides(); }
function delete() { $cid = JRequest::getVar('cid', array(), '', 'array'); JArrayHelper::toInteger($cid); JRequest::setVar('cid', $cid, 'post'); JRequest::setVar(JRequest::getCmd('formtoken'), 1, 'post'); JFactory::getApplication()->input->post->set(JRequest::getCmd('formtoken'), 1); for ($i = 0; $i < count($cid); $i++) { if (!igGeneralHelper::authorise('core.igalleryfront.deleteimage', null, $cid[$i])) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } } $this->view_list = 'images&catid=' . JRequest::getInt('catid'); parent::delete(); }
public function delete() { parent::delete(); // TODO: Change the autogenerated stub }
function delete() { if (!igGeneralHelper::authorise('core.delete', JRequest::getInt('catid', 0))) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } $this->view_list = 'images&catid=' . JRequest::getInt('catid'); parent::delete(); }
public function delete(&$pks) { parent::delete($pks); $this->setRedirect(JRoute::_('index.php?option=' . $this->option, false)); }