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


PHP desktop_controller::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct(&$app)
 {
     if (defined('WITHOUT_DESKTOP_RPCNOTIFY') && constant('WITHOUT_DESKTOP_RPCNOTIFY')) {
         die(app::get('desktop')->_('通知已被禁用'));
     }
     parent::__construct($app);
 }
開發者ID:syjzwjj,項目名稱:quyeba,代碼行數:7,代碼來源:rpcnotify.php

示例2:

 function __construct($app)
 {
     parent::__construct($app);
     $this->_request = kernel::single('base_component_request');
     $this->_response = kernel::single('base_component_response');
     $this->_qrcode_model = $this->app->model('qrcode');
 }
開發者ID:noikiy,項目名稱:Ecstore-to-odoo,代碼行數:7,代碼來源:qrcode.php

示例3: __construct

 public function __construct($app)
 {
     parent::__construct($app);
     header("cache-control: no-store, no-cache, must-revalidate");
     //$cnt    = kernel::single('b2c_shop')->getShopBindStatus();
     $this->pagedata['cnt'] = $cnt;
 }
開發者ID:noikiy,項目名稱:Ecstore-to-odoo,代碼行數:7,代碼來源:regions.php

示例4: __construct

 /**
  * 췽
  * @params object app object
  * @return null
  */
 public function __construct($app)
 {
     parent::__construct($app);
     header("cache-control: no-store, no-cache, must-revalidate");
     $this->certi_id = base_certificate::certi_id();
     $this->token = base_certificate::token();
 }
開發者ID:dalinhuang,項目名稱:shopexts,代碼行數:12,代碼來源:bussiness.php

示例5: __construct

 public function __construct($app)
 {
     parent::__construct($app);
     $this->app = $app;
     //$this->mAd = $this->app->model('ad');
     $this->mSetting = $this->app->model('setting');
 }
開發者ID:yindonghai,項目名稱:msk.com,代碼行數:7,代碼來源:setting.php

示例6: header

 function __construct($app)
 {
     parent::__construct($app);
     $this->ui = new base_component_ui($this);
     $this->app = $app;
     header("cache-control: no-store, no-cache, must-revalidate");
 }
開發者ID:sss201413,項目名稱:ecstore,代碼行數:7,代碼來源:sso.php

示例7: __construct

 public function __construct($app)
 {
     parent::__construct($app);
     header('cache-control: no-store, no-cache, must-revalidate');
     $this->mPages = $this->app->model('pages');
     $this->_request = vmc::singleton('base_component_request');
 }
開發者ID:yindonghai,項目名稱:msk.com,代碼行數:7,代碼來源:pages.php

示例8: __construct

 /**
  * 構造方法
  * @param object $app
  * @access public
  * @version 2 Jun 20, 2011 修改
  */
 public function __construct($app)
 {
     //調用父類構造方法
     parent::__construct($app);
     //初始化請求
     $this->_request = kernel::single('base_component_request');
     //初始化響應
     $this->_response = kernel::single('base_component_response');
 }
開發者ID:sss201413,項目名稱:ecstore,代碼行數:15,代碼來源:controller.php

示例9: __construct

 public function __construct(&$app)
 {
     parent::__construct($app);
     if (!$this->user->is_super()) {
         header('Content-Type:text/html; charset=utf-8');
         echo '您無權操作';
         exit;
     }
 }
開發者ID:noikiy,項目名稱:snk,代碼行數:9,代碼來源:appcenter.php

示例10: __construct

 public function __construct($app)
 {
     parent::__construct($app);
     header('cache-control: no-store, no-cache, must-revalidate');
     $this->mPages = $this->app->model('pages');
     $this->mPosition = $this->app->model('pages_position');
     $this->mContent = $this->app->model('pages_content');
     $this->_request = vmc::singleton('base_component_request');
     $this->_filter = $this->_request->get_get('filter');
 }
開發者ID:yindonghai,項目名稱:msk.com,代碼行數:10,代碼來源:content.php

示例11: header

 function __construct($app)
 {
     header("cache-control: no-store, no-cache, must-revalidate");
     kernel::single('base_session')->start();
     $o = kernel::single("desktop_user");
     $o->user_data['status'] = true;
     if (!$o->get_id()) {
         exit('error');
     }
     parent::__construct($app);
 }
開發者ID:syjzwjj,項目名稱:quyeba,代碼行數:11,代碼來源:comeback.php

示例12: __construct

 public function __construct(&$app)
 {
     if (defined('WITHOUT_DESKTOP_APPMGR') && constant('WITHOUT_DESKTOP_APPMGR')) {
         die(app::get('desktop')->_('APP管理已被禁用'));
     }
     parent::__construct($app);
     if (!$this->user->is_super()) {
         header('Content-Type:text/html; charset=utf-8');
         echo "您無權操作";
         exit;
     }
 }
開發者ID:syjzwjj,項目名稱:quyeba,代碼行數:12,代碼來源:appmgr.php

示例13: __construct

 public function __construct($app)
 {
     parent::__construct($app);
     header("cache-control: no-store, no-cache, must-revalidate");
     define('DPGB_TMP_MODE', 1);
     define('DPGB_HOME_MODE', 2);
     $this->pagedata['dpi'] = intval(app::get('b2c')->getConf('system.clientdpi'));
     if (!$this->pagedata['dpi']) {
         $this->pagedata['dpi'] = 96;
     }
     $this->model = $this->app->model('print_tmpl');
     $this->o =& app::get('image')->model('image_attach');
     $this->obj = $this;
 }
開發者ID:dalinhuang,項目名稱:shopexts,代碼行數:14,代碼來源:printer.php

示例14: array

 function __construct($app)
 {
     parent::__construct($app);
     $this->_response = kernel::single('base_component_response');
     $this->themesdir = array('wap' => WAP_THEME_DIR, 'pc' => THEME_DIR);
     //判斷操作的模板是pc還是wap
     if (input::get('platform') == 'wap') {
         $this->platform = 'wap';
         $this->themes_dir = THEME_DIR;
     } else {
         $this->platform = 'pc';
         $this->themes_dir = WAP_THEME_DIR;
     }
 }
開發者ID:453111208,項目名稱:bbc,代碼行數:14,代碼來源:controller.php

示例15: __construct

 public function __construct($app)
 {
     parent::__construct($app);
     $this->obj_roles = kernel::single('desktop_roles');
     header("cache-control: no-store, no-cache, must-revalidate");
 }
開發者ID:453111208,項目名稱:bbc,代碼行數:6,代碼來源:roles.php


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