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


PHP desktop_controller类代码示例

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


在下文中一共展示了desktop_controller类的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: __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

示例3: __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

示例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: 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

示例6: __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

示例7:

 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

示例8: index

 function index($cpnsId = null)
 {
     if ($cpnsId) {
         parent::index(array('params' => array('cpns_id' => $cpnsId)));
     } else {
         parent::index();
     }
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:8,代码来源:couponGenerate.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

 /**
  * 构造方法
  * @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

示例11: __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

示例12: page

 function page($page = '')
 {
     $get_params = $_GET;
     unset($get_params['menu']);
     $this->pagedata['_QUERY_STRING'] = http_build_query($get_params);
     $this->pagedata['_PAGE_'] = $page;
     if (true) {
         $this->pagedata['_ACTIONS_'] = array('inbox' => '事务', 'account' => '账号', 'status' => '状态');
     }
     parent::display('flow/page.html');
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:11,代码来源:flow.php

示例13: 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

示例14: __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

示例15: __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


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