當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Shop::id_shop_owner方法代碼示例

本文整理匯總了PHP中Shop::id_shop_owner方法的典型用法代碼示例。如果您正苦於以下問題:PHP Shop::id_shop_owner方法的具體用法?PHP Shop::id_shop_owner怎麽用?PHP Shop::id_shop_owner使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Shop的用法示例。


在下文中一共展示了Shop::id_shop_owner方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct()
 {
     global $cookie;
     parent::__construct();
     $this->is_seller = $cookie->profile == (int) Configuration::get('AGILE_MS_PROFILE_ID');
     Shop::$id_shop_owner = $this->is_seller ? $cookie->id_employee : 0;
     if (Module::isInstalled('agilemultipleseller') and !isset($_GET['logout']) and $this->is_seller and (Tools::getValue("controller") == "" or Tools::getValue("controller") == "adminhome")) {
         $tid = Tab::getIdFromClassName('AdminProducts');
         $token = Tools::getAdminToken('AdminProducts' . intval($tid) . intval($cookie->id_employee));
         Tools::redirectAdmin("./index.php?controller=AdminProducts&token=" . $token);
     }
     if (Module::isInstalled('agilesellerlistoptions')) {
         require_once _PS_ROOT_DIR_ . '/modules/agilesellerlistoptions/agilesellerlistoptions.php';
         $aslo_module = new AgileSellerListOptions();
         $msg = $aslo_module->hookAgileAdminTop(null);
         if (!empty($msg)) {
             $this->displayWarning($msg);
         }
     }
     $tab = Tab::getInstanceFromClassName('AdminShopGroup');
     if (Module::isInstalled('agilemultipleshop')) {
         $tab->active = 1;
     } else {
         $tab->active = 0;
     }
     $tab->update();
 }
開發者ID:evilscripts,項目名稱:gy,代碼行數:27,代碼來源:AdminController.php

示例2: initialize

 public static function initialize()
 {
     global $cookie;
     $shop = parent::initialize();
     if (Module::isInstalled('agilemultipleseller') and Module::isInstalled('agilemultipleshop') and $shop->id > 1) {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleshop/agilemultipleshop.php";
         self::$id_shop_owner = AgileSellerManager::getSellerIdByShopId($shop->id);
         self::$id_shop_virtual = $shop->id;
         self::$sellerinfo = new SellerInfo(SellerInfo::getIdBSellerId(self::$id_shop_owner));
         $shop->id = Configuration::get('PS_SHOP_DEFAULT');
         self::$context_id_shop = $shop->id;
     }
     return $shop;
 }
開發者ID:evilscripts,項目名稱:gy,代碼行數:15,代碼來源:Shop.php


注:本文中的Shop::id_shop_owner方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。