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


PHP comquick2cartHelper::isSpecialAccess方法代码示例

本文整理汇总了PHP中comquick2cartHelper::isSpecialAccess方法的典型用法代码示例。如果您正苦于以下问题:PHP comquick2cartHelper::isSpecialAccess方法的具体用法?PHP comquick2cartHelper::isSpecialAccess怎么用?PHP comquick2cartHelper::isSpecialAccess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在comquick2cartHelper的用法示例。


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

示例1: display

 /**
  * Display the view
  *
  * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
  *
  * @return  void
  */
 public function display($tpl = null)
 {
     $this->params = JComponentHelper::getParams('com_quick2cart');
     $comquick2cartHelper = new comquick2cartHelper();
     $storeHelper = new storeHelper();
     $model = $this->getModel('vendor');
     $mainframe = JFactory::getApplication();
     $input = $mainframe->input;
     $option = $input->get('option');
     $task = $input->get('task');
     $layout = $input->get('layout', 'cp');
     $this->adminCall = $adminCall = $input->get('adminCall', 0, 'INTEGER');
     $store_id = $input->get('store_id', '0');
     $this->storeinfo = '';
     if ($layout != "contactus") {
         $specialAccess = 0;
         if ($layout == "createstore") {
             $user = JFactory::getUser();
             if (!$user->id) {
                 echo "<div class=\"techjoomla-bootstrap\" >\n\t\t\t\t\t<div class=\"well\" >\n\t\t\t\t\t\t<div class=\"alert alert-error\">\n\t\t\t\t\t\t\t<span >" . JText::_('QTC_LOGIN') . " </span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>";
                 return false;
             }
             if (!empty($adminCall)) {
                 $specialAccess = $comquick2cartHelper->isSpecialAccess();
             }
         }
         // Check for multivender COMPONENT PARAM
         $isMultivenderOFFmsg = $comquick2cartHelper->isMultivenderOFF();
         if (!empty($isMultivenderOFFmsg)) {
             if (!empty($adminCall)) {
                 // CALLED FROM ADMIN
                 if ($specialAccess == 0) {
                     echo $this->specialAccessMsg();
                     return false;
                 }
             } else {
                 print $isMultivenderOFFmsg;
                 return false;
             }
         }
     }
     /*if($layout=="default")
     		{
     		$this->site=1;
     		$filter_order_Dir	= $mainframe->getUserStateFromRequest( "$option.filter_order_Dir",	'filter_order_Dir',	'desc',			'word' );
     		$filter_type		= $mainframe->getUserStateFromRequest( "$option.filter_type",		'filter_type', 		0,			'string' );
     		$filter_state = $mainframe->getUserStateFromRequest( $option.'search_list', 'search_list', '', 'string' );
     		$search = $mainframe->getUserStateFromRequest( $option.'search', 'search','', 'string' );
     		$search = JString::strtolower( $search );
     		$limit = '';
     		$limitstart = '';
     		$cid[0]='';
     		if($search==null)
     		$search='';
     
     		$model	= $this->getModel( 'vendor' );
     		$task = $input->get('task');
     
     		$total 		= $model->getTotal();
     		$this->pagination = $pagination = $model->getPagination();
     
     		$this->storeinfo = $storeinfo = $comquick2cartHelper->getStoreDetail();
     
     		$lists['search_select']	= $search;
     		$lists['search']		= $search;
     		$lists['search_list']	= $filter_state;
     		$lists['order']			= $filter_type;
     		$lists['order_Dir']		= $filter_order_Dir;
     		$lists['limit']			= $limit;
     		$lists['limitstart']	= $limitstart;
     		$this->lists = $lists;
     
     		}// end of $layout=="mystores" if
     		else */
     if ($layout == "createstore") {
         $this->orders_site = 1;
         $store_id = $input->get('store_id', '0');
         // DEFAULT ALLOW TO CREAT STORE
         $this->allowToCreateStore = 1;
         // Means edit task
         if (!empty($store_id)) {
             $this->store_authorize = $comquick2cartHelper->store_authorize("vendor_createstore", $store_id);
             $this->editview = 1;
             $this->storeinfo = $storeinfo = $comquick2cartHelper->editstore($store_id);
             // Get weight and length select box
             $this->legthList = $storeHelper->getLengthClassSelectList($storeid = 0, $this->storeinfo[0]->length_id);
             $this->weigthList = $storeHelper->getWeightClassSelectList($storeid = 0, $this->storeinfo[0]->weight_id);
         } else {
             // NEW STORE TASK:: CK FOR WHETHER WE HV TO ALLOW OR NOT
             $storeHelper = new storeHelper();
             $this->allowToCreateStore = $storeHelper->isAllowedToCreateNewStore();
             // Get weight and length select box
             $this->legthList = $storeHelper->getLengthClassSelectList($storeid = 0, 0);
//.........这里部分代码省略.........
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:101,代码来源:view.html.php


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