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


PHP control::__construct方法代码示例

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


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

示例1: __construct

 /**
  * The construc method, to do some auto things.
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->common->startSession();
     $this->common->sendHeader();
     $this->common->setCompany();
     $this->common->setUser();
     $this->common->loadConfigFromDB();
     if (isset($this->config->custom->productproject)) {
         $productCommon = $projectCommon = 0;
         list($productCommon, $projectCommon) = explode('_', $this->config->custom->productproject);
         if ($productCommon != 0 or $projectCommon != 0) {
             $this->lang->productCommon = $this->lang->productCommonList[$productCommon];
             $this->lang->projectCommon = $this->lang->projectCommonList[$projectCommon];
             $this->app->loadLang('common');
         } else {
             $this->lang->productCommon = "产品";
             $this->lang->projectCommon = "Sprint";
         }
     }
     $this->common->loadCustomFromDB();
     if ($this->app->getViewType() == 'mhtml') {
         $this->common->setMobileMenu();
     }
     $this->app->loadLang('company');
 }
开发者ID:XMGmen,项目名称:zentao,代码行数:32,代码来源:control.php

示例2: __construct

 /**
  * The construction function , check is install or not.
  * 
  * @access public
  * @return array
  */
 public function __construct()
 {
     if (!defined('RUN_MODE') or RUN_MODE != 'install') {
         die('error');
     }
     parent::__construct();
 }
开发者ID:leowh,项目名称:colla,代码行数:13,代码来源:control.php

示例3: __construct

 /**
  * Construct 
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('company')->setMenu();
     $this->loadModel('dept');
     $this->loadModel('todo');
 }
开发者ID:heeeello,项目名称:zentaopms,代码行数:13,代码来源:control.php

示例4: __construct

 /**
  * Construct function, load dept and user models auto.
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('dept');
     $this->app->loadLang('user');
     $this->company->setMenu();
 }
开发者ID:huokedu,项目名称:zentao,代码行数:13,代码来源:control.php

示例5: __construct

 /**
  * construct. 
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     if (!$this->loadModel('sso')->checkKey()) {
         die('');
     }
 }
开发者ID:universal-youth,项目名称:pm.universal-youth.com,代码行数:13,代码来源:control.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     if ($this->app->user->account != 'guest') {
         $this->cart->mergeToDb();
     }
 }
开发者ID:wenyinos,项目名称:chanzhieps,代码行数:7,代码来源:control.php

示例7: __construct

 /**
  * Construct function, load model of task, bug, my.
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('task');
     $this->loadModel('bug');
     $this->loadModel('my')->setMenu();
 }
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:13,代码来源:control.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->loadModel('tree');
     $this->loadModel('user');
     $this->loadModel('action');
     $this->infolibs = $this->info->getLibs();
 }
开发者ID:huokedu,项目名称:zentao,代码行数:8,代码来源:control.php

示例9: __construct

 /**
  * The construction function , check is install or not.
  * 
  * @access public
  * @return array
  */
 public function __construct()
 {
     if (!defined('RUN_MODE') or RUN_MODE != 'install') {
         die('error');
     }
     parent::__construct();
     $this->loadModel('site')->setSite();
 }
开发者ID:jnan77,项目名称:chanzhieps,代码行数:14,代码来源:control.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     if (RUN_MODE == 'admin') {
         $this->view->treeModuleMenu = $this->loadModel('tree')->getTreeMenu('product', 0, array('treeModel', 'createAdminLink'));
         $this->view->treeManageLink = html::a(helper::createLink('tree', 'browse', "type=product"), $this->lang->tree->manage);
     }
 }
开发者ID:mustafakarali,项目名称:b2c-1,代码行数:8,代码来源:control.php

示例11: __construct

 /**
  * Construct.
  * 
  * @access public
  * @return void
  */
 public function __construct($moduleName = '', $methodName = '')
 {
     parent::__construct($moduleName, $methodName);
     /* Task #1967. check the function of fsocket. */
     if (isset($this->config->mail->mta) and $this->config->mail->mta != 'sendcloud' and !function_exists('fsockopen')) {
         echo js::alert($this->lang->mail->nofsocket);
         die(js::locate('back'));
     }
 }
开发者ID:caiwenhao,项目名称:zentao,代码行数:15,代码来源:control.php

示例12: __construct

 /**
  * The construct function, load product, tree, user auto.
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('product');
     $this->loadModel('project');
     $this->loadModel('tree');
     $this->loadModel('user');
     $this->loadModel('action');
 }
开发者ID:iamazhi,项目名称:zentaopms,代码行数:15,代码来源:control.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     if (RUN_MODE == 'admin') {
         $this->view->treeModuleMenu = $this->loadModel('tree')->getTreeMenu('product', 0, array('treeModel', 'createAdminLink'));
         $this->view->treeManageLink = html::a(helper::createLink('product', 'setting'), $this->lang->product->setting, "data-toggle='modal'");
         $this->view->treeManageLink .= '  ' . html::a(helper::createLink('tree', 'browse', "type=product"), $this->lang->tree->manage);
     }
 }
开发者ID:peirancao,项目名称:chanzhieps,代码行数:9,代码来源:control.php

示例14: __construct

 /**
  * Construct.
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     /* Task #1967. check the function of fsocket. */
     if (!function_exists('fsockopen')) {
         echo js::alert($this->lang->mail->nofsocket);
         die(js::locate('back'));
     }
 }
开发者ID:fanscky,项目名称:HTPMS,代码行数:15,代码来源:control.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     if (empty($this->config->site->yangcong)) {
         $this->send(array('result' => 'fail', 'message' => $this->lang->yangcong->getQrcodeFaild));
     }
     $config = json_decode($this->config->site->yangcong);
     $this->app->loadClass('yangcongapi', true);
     $this->api = new yangcongapi($config);
 }
开发者ID:hansen1416,项目名称:eastsoft,代码行数:10,代码来源:control.php


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