当前位置: 首页>>代码示例>>PHP>>正文


PHP checkAccessController函数代码示例

本文整理汇总了PHP中checkAccessController函数的典型用法代码示例。如果您正苦于以下问题:PHP checkAccessController函数的具体用法?PHP checkAccessController怎么用?PHP checkAccessController使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了checkAccessController函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('add', 'edit');
     checkAccessController("orders");
     addSubmenu("orders");
 }
开发者ID:ngogiangthanh,项目名称:damtvnewversion,代码行数:7,代码来源:orders.php

示例2: __construct

 function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     checkAccessController("productfieldgroups");
     addSubmenu("other");
 }
开发者ID:Tommar,项目名称:vino2,代码行数:8,代码来源:productfieldgroups.php

示例3: display

 function display($cachable = false, $urlparams = false)
 {
     checkAccessController("panel");
     addSubmenu("");
     $view = $this->getView("panel", 'html');
     $view->setLayout("home");
     $view->displayHome();
 }
开发者ID:Tommar,项目名称:vino2,代码行数:8,代码来源:panel.php

示例4: __construct

 function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('add', 'edit');
     checkAccessController("orders");
     addSubmenu("orders");
     JPluginHelper::importPlugin('jshoppingorder');
 }
开发者ID:olegverstka,项目名称:monax.dev,代码行数:8,代码来源:orders.php

示例5: __construct

 function __construct($config = array())
 {
     $mainframe = JFactory::getApplication();
     parent::__construct($config);
     checkAccessController("update");
     addSubmenu("update");
     $language = JFactory::getLanguage();
     $language->load('com_installer');
 }
开发者ID:panickylemon,项目名称:joomlastayn,代码行数:9,代码来源:update.php

示例6: __construct

 function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('apply', 'save');
     $this->registerTask('applyseo', 'saveseo');
     $this->registerTask('applystatictext', 'savestatictext');
     checkAccessController("config");
     addSubmenu("config");
 }
开发者ID:panickylemon,项目名称:joomlastayn,代码行数:9,代码来源:config.php

示例7: __construct

 function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('orderup', 'reorder');
     $this->registerTask('orderdown', 'reorder');
     $this->registerTask('publish', 'republish');
     $this->registerTask('unpublish', 'republish');
     checkAccessController("shippingextprice");
     addSubmenu("other");
 }
开发者ID:olegverstka,项目名称:monax.dev,代码行数:10,代码来源:shippingextprice.php

示例8: display

 function display($cachable = false, $urlparams = false)
 {
     checkAccessController("panel");
     addSubmenu("");
     $view = $this->getView("panel", 'html');
     $view->setLayout("home");
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeDisplayHomePanel', array(&$view));
     $view->displayHome();
 }
开发者ID:olegverstka,项目名称:monax.dev,代码行数:10,代码来源:panel.php

示例9: display

 function display($cachable = false, $urlparams = false)
 {
     checkAccessController("other");
     addSubmenu("other");
     $view = $this->getView("panel", 'html');
     $view->setLayout("options");
     $view->sidebar = JHtmlSidebar::render();
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeDisplayOptionsPanel', array(&$view));
     $view->displayOptions();
 }
开发者ID:olegverstka,项目名称:monax.dev,代码行数:11,代码来源:other.php

示例10: display

 function display($cachable = false, $urlparams = false)
 {
     checkAccessController("info");
     addSubmenu("info");
     $jshopConfig = JSFactory::getConfig();
     $data = JApplicationHelper::parseXMLInstallFile($jshopConfig->admin_path . "jshopping.xml");
     if ($jshopConfig->display_updates_version) {
         $update_model = JSFactory::getModel("info");
         $update = $update_model->getUpdateObj($data['version'], $jshopConfig);
     } else {
         $update = new stdClass();
     }
     $view = $this->getView("panel", 'html');
     $view->setLayout("info");
     $view->assign("data", $data);
     $view->assign("update", $update);
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeDisplayInfo', array(&$view));
     $view->displayInfo();
 }
开发者ID:arkane0906,项目名称:lasercut-bootstrap,代码行数:20,代码来源:info.php

示例11: __construct

 function __construct($config = array())
 {
     parent::__construct($config);
     checkAccessController("importexport");
     addSubmenu("other");
 }
开发者ID:ngogiangthanh,项目名称:damtvnewversion,代码行数:6,代码来源:importexport.php

示例12: __construct

 function __construct($config = array())
 {
     parent::__construct($config);
     addSubmenu("other");
     checkAccessController("statistic");
 }
开发者ID:ngogiangthanh,项目名称:damtvnewversion,代码行数:6,代码来源:statistic.php

示例13: display

 function display($cachable = false, $urlparams = false)
 {
     checkAccessController("product_list_selectable");
     JHTML::_('behavior.framework');
     $app = JFactory::getApplication();
     $db = JFactory::getDBO();
     $jshopConfig = JSFactory::getConfig();
     $prodMdl = JSFactory::getModel('Products', 'JShoppingModel');
     $context = "jshoping.list.admin.product";
     $limit = $app->getUserStateFromRequest($context . 'limit', 'limit', $app->getCfg('list_limit'), 'int');
     $limitstart = $app->getUserStateFromRequest($context . 'limitstart', 'limitstart', 0, 'int');
     if (isset($_GET['category_id']) && $_GET['category_id'] === "0") {
         $app->setUserState($context . 'category_id', 0);
         $app->setUserState($context . 'manufacturer_id', 0);
         $app->setUserState($context . 'label_id', 0);
         $app->setUserState($context . 'publish', 0);
         $app->setUserState($context . 'text_search', '');
     }
     $category_id = $app->getUserStateFromRequest($context . 'category_id', 'category_id', 0, 'int');
     $manufacturer_id = $app->getUserStateFromRequest($context . 'manufacturer_id', 'manufacturer_id', 0, 'int');
     $label_id = $app->getUserStateFromRequest($context . 'label_id', 'label_id', 0, 'int');
     $publish = $app->getUserStateFromRequest($context . 'publish', 'publish', 0, 'int');
     $text_search = $app->getUserStateFromRequest($context . 'text_search', 'text_search', '');
     $eName = JRequest::getVar('e_name');
     $jsfname = JRequest::getVar('jsfname');
     $eName = preg_replace('#[^A-Z0-9\\-\\_\\[\\]]#i', '', $eName);
     if (!$jsfname) {
         $jsfname = 'selectProductBehaviour';
     }
     $filter = array("category_id" => $category_id, "manufacturer_id" => $manufacturer_id, "label_id" => $label_id, "publish" => $publish, "text_search" => $text_search);
     $total = $prodMdl->getCountAllProducts($filter);
     $pagination = new JPagination($total, $limitstart, $limit);
     $rows = $prodMdl->getAllProducts($filter, $pagination->limitstart, $pagination->limit);
     $parentTop = new stdClass();
     $parentTop->category_id = 0;
     $parentTop->name = " - " . _JSHOP_CATEGORY . " - ";
     $categories_select = buildTreeCategory(0, 1, 0);
     array_unshift($categories_select, $parentTop);
     $lists['treecategories'] = JHTML::_('select.genericlist', $categories_select, 'category_id', 'onchange="document.adminForm.submit();"', 'category_id', 'name', $category_id);
     $manuf1 = array();
     $manuf1[0] = new stdClass();
     $manuf1[0]->manufacturer_id = '0';
     $manuf1[0]->name = " - " . _JSHOP_NAME_MANUFACTURER . " - ";
     $manufs = JSFactory::getModel('Manufacturers', 'JShoppingModel')->getList();
     $manufs = array_merge($manuf1, $manufs);
     $lists['manufacturers'] = JHTML::_('select.genericlist', $manufs, 'manufacturer_id', 'onchange="document.adminForm.submit();"', 'manufacturer_id', 'name', $manufacturer_id);
     if ($jshopConfig->admin_show_product_labels) {
         $alllabels = JSFactory::getModel('ProductLabels', 'JShoppingModel')->getList();
         $first = array();
         $first[] = JHTML::_('select.option', '0', " - " . _JSHOP_LABEL . " - ", 'id', 'name');
         $lists['labels'] = JHTML::_('select.genericlist', array_merge($first, $alllabels), 'label_id', 'onchange="document.adminForm.submit();"', 'id', 'name', $label_id);
     }
     $f_option = array();
     $f_option[] = JHTML::_('select.option', 0, " - " . _JSHOP_SHOW . " - ", 'id', 'name');
     $f_option[] = JHTML::_('select.option', 1, _JSHOP_PUBLISH, 'id', 'name');
     $f_option[] = JHTML::_('select.option', 2, _JSHOP_UNPUBLISH, 'id', 'name');
     $lists['publish'] = JHTML::_('select.genericlist', $f_option, 'publish', 'onchange="document.adminForm.submit();"', 'id', 'name', $publish);
     $view = $this->getView('product_list', 'html');
     $view->setLayout("selectable");
     $view->assign('rows', $rows);
     $view->assign('lists', $lists);
     $view->assign('category_id', $category_id);
     $view->assign('manufacturer_id', $manufacturer_id);
     $view->assign('pagination', $pagination);
     $view->assign('text_search', $text_search);
     $view->assign('config', $jshopConfig);
     $view->assign('eName', $eName);
     $view->assign('jsfname', $jsfname);
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeDisplayProductListSelectable', array(&$view));
     $view->displaySelectable();
 }
开发者ID:arkane0906,项目名称:lasercut-bootstrap,代码行数:72,代码来源:product_list_selectable.php


注:本文中的checkAccessController函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。