本文整理汇总了PHP中JControllerForm::batch方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerForm::batch方法的具体用法?PHP JControllerForm::batch怎么用?PHP JControllerForm::batch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JControllerForm
的用法示例。
在下文中一共展示了JControllerForm::batch方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: batch
/**
* 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
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
$model = $this->getModel('Item', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_menus&view=items' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例2: batch
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True on success, false on failure
*
* @since 2.5
*/
public function batch($model = null)
{
JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('User', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_tz_portfolio&view=users' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例3: batch
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True on success, false on failure
*
* @since 2.5
*/
public function batch($model = null)
{
Session::checkToken() or exit(Lang::txt('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('User', '', array());
// Preset the redirect
$this->setRedirect(Route::url('index.php?option=com_users&view=users' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例4: batch
/**
* 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
*/
public function batch($model = null)
{
Session::checkToken() or exit(Lang::txt('JINVALID_TOKEN'));
// Initialise variables.
$model = $this->getModel('Item', '', array());
// Preset the redirect
$this->setRedirect(Route::url('index.php?option=com_menus&view=items' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例5: batch
/**
* 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
*/
public function batch($model = null)
{
JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Audiotrack');
// Preset the redirect
$this->setRedirect('index.php?option=com_playjoom&view=audiotracks');
return parent::batch($model);
}
示例6: batch
/**
* Method to run batch operations.
*
* @param string $model The model
*
* @return boolean True on success.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Recommendation', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_testyourself&view=recommendations' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例7: batch
/**
* 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
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('defaults_meally', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_sibdiet&view=defaults_meallys' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例8: batch
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Field');
// Preset the redirect
$this->setRedirect('index.php?option=com_dpfields&view=fields&context=' . $this->internalContext);
return parent::batch($model);
}
示例9: batch
/**
* Method to run batch opterations.
*
* @return void
* @since 1.6
*/
public function batch($model)
{
JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Initialise variables.
$model = $this->getModel('Adminitem', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_menus&view=adminitems' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例10: batch
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel($this->getName(), 'JDeveloperModel');
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_jdeveloper&view=' . $this->view_list, false));
return parent::batch($model);
}
示例11: batch
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Page', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_azurapagebuilder&view=pages' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例12: batch
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 3.1
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('Tag');
// Preset the redirect
$this->setRedirect('index.php?option=com_tags&view=tags');
return parent::batch($model);
}
示例13: batch
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 1.7
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
$model = $this->getModel('H_cfg_fitnessunit', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_htraininglogs&view=h_cfg_fitnessunits' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例14: batch
/**
* Method to run batch operations.
*
* @param object $model The model.
*
* @return boolean True if successful, false otherwise and internal error is set.
*
* @since 2.5
*/
public function batch($model = null)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
/** @var ContactModelContact $model */
$model = $this->getModel('Contact', '', array());
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_contact&view=contacts' . $this->getRedirectToListAppend(), false));
return parent::batch($model);
}
示例15: batch
/**
* Method to run batch operations.
*
* @param JModelLegacy $model The model of the component being processed.
*
* @return void
*
* @since 1.6
*/
public function batch($model)
{
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
// Set the model
/** @var $model JModelLegacy */
$model = $this->getModel('Member', '', []);
// Preset the redirect
$this->setRedirect(JRoute::_('index.php?option=com_churchdirectory&view=members' . $this->getRedirectToListAppend(), false));
parent::batch($model);
}