english/libraries/joomla/application/component/controllerform.php
/**
	 * Method to run batch operations.
	 *
	 * @param   object	$model  The model of the component being processed.
	 *
	 * @return	boolean	True if successful, false otherwise and internal error is set.
	 * @since	11.1
	 */
Method to run batch operations.
@param   object      $model  The model of the component being processed.

@return      boolean True if successful, false otherwise and internal error is set.
Method to run batch operations . @param object $model The model of the component being processed . @return boolean True if successful false otherwise and internal error is set .
public function batch($model)
	{
		$app	= JFactory::getApplication();
		$vars	= JRequest::getVar('batch', array(), 'post', 'array');
		$cid	= JRequest::getVar('cid', array(), 'post', 'array');
		if ($model->batch($vars, $cid)) {
			$this->setMessage(JText::_('JLIB_APPLICATION_SUCCESS_BATCH'));
			return true;
		}
		else {
			$this->setMessage(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_FAILED', $model->getError()));
			return false;
		}
	}
public function batch ( $ model ) { $ app = JFactory :: getApplication ( ) ; $ vars = JRequest :: getVar ( 'batch' , array ( ) , 'post' , 'array' ) ; $ cid = JRequest :: getVar ( 'cid' , array ( ) , 'post' , 'array' ) ; if ( $ model -> batch ( $ vars , $ cid ) ) { $ this -> setMessage ( JText :: _ ( 'JLIB_APPLICATION_SUCCESS_BATCH' ) ) ; return true ; } else { $ this -> setMessage ( JText :: sprintf ( 'JLIB_APPLICATION_ERROR_BATCH_FAILED' , $ model -> getError ( ) ) ) ; return false ; } }
Method to run batch operations.
Method to run batch operations .
// Initialise variables. // Attempt to run the batch operation.