本文整理汇总了PHP中shopFunctionsF::isFEmanager方法的典型用法代码示例。如果您正苦于以下问题:PHP shopFunctionsF::isFEmanager方法的具体用法?PHP shopFunctionsF::isFEmanager怎么用?PHP shopFunctionsF::isFEmanager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类shopFunctionsF
的用法示例。
在下文中一共展示了shopFunctionsF::isFEmanager方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
require VMPATH_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php';
}
//dont remove that file it is actually in every view
$_controller = vRequest::getCmd('view', vRequest::getCmd('controller', 'tsmart'));
$trigger = 'onVmSiteController';
// $task = vRequest::getCmd('task',vRequest::getCmd('layout',$_controller) ); $this makes trouble!
$task = vRequest::getCmd('task', '');
$session = JFactory::getSession();
$manage = vRequest::getCmd('manage', $session->get('manage', false, 'vm'));
if (!$manage) {
$session->set('manage', 0, 'vm');
}
$feViews = array('askquestion', 'cart', 'invoice', 'pdf', 'pluginresponse', 'productdetails', 'recommend', 'vendor', 'vmplg');
$app = JFactory::getApplication();
if ($manage and $task != 'feed' and !in_array($_controller, $feViews)) {
if (shopFunctionsF::isFEmanager()) {
$session->set('manage', 1, 'vm');
vRequest::setVar('manage', '1');
vRequest::setVar('tmpl', 'component');
tsmConfig::loadJLang('com_virtuemart');
$jlang = JFactory::getLanguage();
$tag = $jlang->getTag();
$jlang->load('', JPATH_ADMINISTRATOR, $tag, true);
tsmConfig::loadJLang('com_virtuemart');
$basePath = VMPATH_ADMIN;
$trigger = 'onVmAdminController';
vmJsApi::jQuery(false);
vmJsApi::loadBECSS();
$router = $app->getRouter();
$router->setMode(0);
} else {