本文整理匯總了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();
}