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


PHP control類代碼示例

本文整理匯總了PHP中control的典型用法代碼示例。如果您正苦於以下問題:PHP control類的具體用法?PHP control怎麽用?PHP control使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了control類的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

 public function __CONSTRUCT()
 {
     parent::__CONSTRUCT();
     $this->loadModel('customer', 'crm');
     $this->loadModel('contact', 'crm');
     $this->loadModel('resume', 'crm');
 }
開發者ID:leowh,項目名稱:colla,代碼行數:7,代碼來源: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

 public function __construct()
 {
     parent::__construct();
     if ($this->app->user->account != 'guest') {
         $this->cart->mergeToDb();
     }
 }
開發者ID:wenyinos,項目名稱:chanzhieps,代碼行數:7,代碼來源:control.php

示例5: __construct

 /**
  * Construct function, load model of project and story modules.
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('project');
     $this->loadModel('story');
     $this->loadModel('tree');
 }
開發者ID:huokedu,項目名稱:zentao,代碼行數:13,代碼來源:control.php

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

示例7: init

 function init()
 {
     parent::init();
     if (!empty($this->params['oninit'])) {
         $this->do_call();
     }
 }
開發者ID:kronius,項目名稱:vidpro,代碼行數:7,代碼來源:controls.php

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

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

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

示例11: create

 /**
  * 發起團
  * http://localhost/beauty/index.php?m=ruan&c=index&a=create
  */
 public function create()
 {
     $data = tool::getParams("data", '');
     $data['created'] = strtotime(date('Y-m-d H:i:s'));
     $data['orderNum'] = 0;
     $result = parent::save($data);
     echo json_encode(array('code' => '0', 'message' => '成功', 'data' => $result));
 }
開發者ID:mustafakarali,項目名稱:b2c-1,代碼行數:12,代碼來源:control.php

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

示例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('tree', 'browse', "type=product"), $this->lang->tree->manage);
     }
 }
開發者ID:mustafakarali,項目名稱:b2c-1,代碼行數:8,代碼來源:control.php

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

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


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