administrator/components/com_categories/controllers/category.php
public function batch($model = null)
	{
		JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));

		// Set the model
		/** @var CategoriesModelCategory $model */
		$model = $this->getModel('Category');

		// Preset the redirect
		$this->setRedirect('index.php?option=com_categories&view=categories&extension=' . $this->extension);

		return parent::batch($model);
	}
public function batch($model = null)
	{
		JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));

		// Set the model
		/** @var CategoriesModelCategory $model */
		$model = $this->getModel('Category');

		// Preset the redirect
		$this->setRedirect('index.php?option=com_categories&view=categories&extension=' . $this->extension);

		return parent::batch($model);
	}
public function batch ( $ model = null ) { JSession :: checkToken ( ) or jexit ( JText :: _ ( 'JINVALID_TOKEN' ) ) ; // Set the model /** @var CategoriesModelCategory $model */ $ model = $ this -> getModel ( 'Category' ) ; // Preset the redirect $ this -> setRedirect ( 'index.php?option=com_categories&view=categories&extension=' . $ this -> extension ) ; return parent :: batch ( $ model ) ; }
Method to run batch operations.

@param   object  $model  The model.

@return  boolean  True if successful, false otherwise and internal error is set.

@since   1.6
Method to run batch operations .