true)) { $model = parent::getModel($name, $prefix, $config); return $model; } /** * logic to remove a group * * @access public * @return void * */ public function remove() { // Check for request forgeries Session::checkToken() or jexit('Invalid Token'); $jinput = Factory::getApplication()->input; $cid = $jinput->get('cid', 0, 'array'); if (!is_array($cid) || count($cid) < 1) { throw new Exception(Text::_('COM_JEM_SELECT_ITEM_TO_DELETE'), 500); } $total = count($cid); $model = $this->getModel('groups'); if(!$model->delete($cid)) { echo "\n"; } $msg = $total.' '.Text::_('COM_JEM_GROUPS_DELETED'); $this->setRedirect('index.php?option=com_jem&view=groups', $msg); } } ?>