本文整理汇总了PHP中JControllerAdmin::checkin方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerAdmin::checkin方法的具体用法?PHP JControllerAdmin::checkin怎么用?PHP JControllerAdmin::checkin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JControllerAdmin
的用法示例。
在下文中一共展示了JControllerAdmin::checkin方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkin
public function checkin()
{
parent::checkin();
if (!$this->getError()) {
$app = JFactory::getApplication();
$link = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&filter_project=' . (int) $app->input->get('filter_project') . '&filter_album=' . (int) $app->input->get('filter_album') . '&id=' . (int) $app->input->get('id') . '&revision=' . (int) $app->input->get('revision');
$this->setRedirect(JRoute::_($link, false));
return true;
}
return false;
}
示例2: checkin
public function checkin()
{
$app = JFactory::getApplication();
parent::checkin();
$rootCat = JUDirectoryFrontHelperCategory::getRootCategory();
$cat_id = $app->input->getInt('cat_id', $rootCat->id);
if ($app->input->getString('view', 'listcats') == 'treestructure') {
$this->setRedirect("index.php?option=com_judirectory&view=treestructure");
} else {
$this->setRedirect("index.php?option=com_judirectory&view={$this->view_list}&cat_id={$cat_id}");
}
}
示例3: checkin
/**
* Check in of one or more records.
*
* Overrides JControllerAdmin::checkin to check the core.admin permission.
*
* @since 1.6
*/
public function checkin()
{
if (!JFactory::getUser()->authorise('core.admin', $this->option)) {
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
jexit();
}
return parent::checkin();
}
示例4: checkin
/**
* Check in of one or more records.
*
* Overrides JControllerAdmin::checkin to check the core.admin permission.
*
* @since 1.6
*/
public function checkin()
{
if (!JFactory::getUser()->authorise('core.admin', $this->option)) {
JError::raiseError(500, JText::_('JERROR_ALERTNOAUTHOR'));
jexit();
}
return parent::checkin();
}
示例5: checkin
public function checkin()
{
$app = JFactory::getApplication();
$documentid = $app->input->post->get('documentid', array(), 'array');
$app->input->post->set('cid', $documentid);
$_POST['cid'] = $documentid;
parent::checkin();
$rootCat = JUDownloadFrontHelperCategory::getRootCategory();
$cat_id = $app->input->getInt('cat_id', $rootCat->id);
$this->setRedirect("index.php?option=com_judownload&view={$this->view_list}&cat_id={$cat_id}");
}
示例6: checkin
public function checkin()
{
parent::checkin();
}
示例7: checkin
/**
* Check in of one or more records.
*
* Overrides JControllerAdmin::checkin to redirect to URL with extension.
*
* @return boolean True on success
*
* @since 3.6.0
*/
public function checkin()
{
// Process parent checkin method.
$result = parent::checkin();
// Overrride the redirect Uri.
$redirectUri = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&extension=' . $this->input->get('extension', '', 'CMD');
$this->setRedirect(JRoute::_($redirectUri, false), $this->message, $this->messageType);
return $result;
}
示例8: checkin
/**
* Check in of one or more records.
*
* Overrides JControllerAdmin::checkin to check the core.admin permission.
*
* @since 1.6
*/
public function checkin()
{
if (!User::authorise('core.admin', $this->option)) {
App::abort(500, Lang::txt('JERROR_ALERTNOAUTHOR'));
exit;
}
return parent::checkin();
}