You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.0 KiB
44 lines
1.0 KiB
<?php
|
|
/**
|
|
* @package Joomla.Administrator
|
|
* @subpackage com_foos
|
|
*
|
|
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*/
|
|
|
|
namespace FooNamespace\Component\Foos\Administrator\Controller;
|
|
|
|
\defined('_JEXEC') or die;
|
|
|
|
use Joomla\CMS\MVC\Controller\FormController;
|
|
use Joomla\CMS\Router\Route;
|
|
|
|
/**
|
|
* Controller for a single foo
|
|
*
|
|
* @since __BUMP_VERSION__
|
|
*/
|
|
class FooController extends FormController
|
|
{
|
|
/**
|
|
* Method to run batch operations.
|
|
*
|
|
* @param object $model The model.
|
|
*
|
|
* @return boolean True if successful, false otherwise and internal error is set.
|
|
*
|
|
* @since __BUMP_VERSION__
|
|
*/
|
|
public function batch($model = null)
|
|
{
|
|
$this->checkToken();
|
|
|
|
$model = $this->getModel('Foo', 'Administrator', []);
|
|
|
|
// Preset the redirect
|
|
$this->setRedirect(Route::_('index.php?option=com_foos&view=foos' . $this->getRedirectToListAppend(), false));
|
|
|
|
return parent::batch($model);
|
|
}
|
|
}
|
|
|