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


PHP Common::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     if ($this->config['SYS_MEMBER']) {
         $this->adminMsg('係統禁止了會員功能');
     }
 }
開發者ID:rainbow88,項目名稱:hummel,代碼行數:7,代碼來源:Common.php

示例2:

 function __construct($that)
 {
     parent::__construct();
     $this->that = $that;
     $this->SetupSomeStuff();
     $this->AskAndYeShallBeRewarded();
 }
開發者ID:jackfruh,項目名稱:SwissArmyCrudForLaravel,代碼行數:7,代碼來源:ControllerClass.php

示例3: __construct

 /**
  * __construct
  */
 public function __construct()
 {
     parent::__construct();
     if ($this->my_login->checkLogin($this->arrCommon, URL_ADMIN_LOGIN)) {
         $this->access();
     }
 }
開發者ID:thaivuong90,項目名稱:ban_hang,代碼行數:10,代碼來源:admin.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load('cache');
     $this->load('logging');
     $this->dbh = new Database('slave');
 }
開發者ID:xingcuntian,項目名稱:SOA,代碼行數:7,代碼來源:soapcache.class.php

示例5:

 function __construct()
 {
     error_reporting(0);
     parent::__construct();
     $this->load->helper('sql_game', 'sql_player');
     $this->load->library(array('facebook'));
 }
開發者ID:BGCX067,項目名稱:facebook-slt-svn-to-git,代碼行數:7,代碼來源:game_list.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     if (!in_array($this->action, array('ajaxswfupload', 'ueditor_upload')) && (!$this->session->is_set('user_id') && !get_cookie('member_id'))) {
         $this->attMsg(lang('att-13'));
     }
     $this->dir = 'uploadfiles/';
 }
開發者ID:kennyhonghui,項目名稱:zhuoxi,代碼行數:8,代碼來源:AttachmentController.php

示例7: __construct

 public function __construct($params = array())
 {
     parent::__construct($params);
     $this->setTitle($params['title']);
     $this->setSubTitle($params['subTitle']);
     $this->setTickerText($params['tickerText']);
     $this->setVibrate($params['vibrate']);
 }
開發者ID:anilchauhan-cuelogic,項目名稱:push-notification,代碼行數:8,代碼來源:Android.php

示例8: __construct

 public function __construct($name, $logger = null)
 {
     parent::__construct($logger);
     $this->mockName = $name;
     $this->expects = array();
     $this->stubs = array();
     $this->prefixError = "mock [{$name}]: ";
     self::$mocks[] = $this;
 }
開發者ID:trilopin,項目名稱:pt_mock,代碼行數:9,代碼來源:Mock.php

示例9: __construct

 /**
  * 構造函數
  */
 public function __construct()
 {
     parent::__construct();
     $file = FCPATH . 'config/weixin.php';
     $this->wx = is_file($file) ? string2array(file_get_contents($file)) : array();
     define("TOKEN", $this->wx['token']);
     define('WECHAT_THEME', SITE_PATH . basename(VIEW_DIR) . '/weixin/');
     $this->cache->cache_dir = APP_ROOT . 'cache/weixin/';
 }
開發者ID:rainbow88,項目名稱:hummel,代碼行數:12,代碼來源:Wx.php

示例10:

 function __construct(&$DB = false, $id = null, $fieldName = null)
 {
     if ($DB && is_object($DB)) {
         self::$DB =& $DB;
     }
     if ($id) {
         parent::__construct($id, $fieldName);
     }
 }
開發者ID:alexchitoraga,項目名稱:tunet,代碼行數:9,代碼來源:ProductTrans.class.php

示例11: __construct

 protected function __construct($conf_nm = '')
 {
     //なぜかprivateにしたら怒られるためprotectedに設定
     parent::__construct($conf_nm);
     //シングルトンパターンを採用し、1回しかこの場所を通らないことを前提。
     define('TWITTER_CONSUMER_KEY', $this->config['api_key']);
     define('TWITTER_CONSUMER_SECRET', $this->config['api_secret']);
     define('OAUTH_TOKEN', $this->config['access_token']);
     define('OAUTH_SECRET', $this->config['access_token_secret']);
 }
開發者ID:Keech,項目名稱:twitter,代碼行數:10,代碼來源:user_stream.php

示例12: __construct

 public function __construct($mockName, $methodName, $logger = null)
 {
     parent::__construct($logger);
     $this->mockName = $mockName;
     $this->methodName = $methodName;
     $this->args = null;
     $this->hash = null;
     $this->valueToReturn = null;
     $this->exceptionToRaise = null;
     $this->prefixError = "Stub [{$methodName}]: ";
 }
開發者ID:trilopin,項目名稱:pt_mock,代碼行數:11,代碼來源:Stub.php

示例13: exit

 function __construct()
 {
     parent::__construct();
     if (!isset($_GET['gid']) or empty($_GET['gid'])) {
         exit("Invalid");
     } else {
         $this->gid = $_GET['gid'];
     }
     $this->load->helper('sql_game', 'sql_player');
     $this->load->library(array('facebook'));
 }
開發者ID:BGCX067,項目名稱:facebook-slt-svn-to-git,代碼行數:11,代碼來源:game.php

示例14: exit

 function __construct()
 {
     //error_reporting(0);
     parent::__construct();
     $this->load->helper(array('sql_player', 'sql_game', 'sql_suit'));
     if (isset($_GET['id'])) {
         $this->id = $_GET['id'];
     } else {
         exit('Please Specify a valid card');
     }
 }
開發者ID:BGCX067,項目名稱:facebook-slt-svn-to-git,代碼行數:11,代碼來源:card.php

示例15: __construct

 public function __construct($model)
 {
     parent::__construct();
     $this->model = $model;
     $this->smarty = new Smarty();
     $this->smarty->template_dir = __BASEDIR__ . "app/" . __APP__ . "/view/templates/";
     $this->smarty->compile_dir = __BASEDIR__ . "app/" . __APP__ . "/view/templates_c/";
     $this->smarty->config_dir = __BASEDIR__ . "app/" . __APP__ . "/view/config/";
     $this->smarty->cache_dir = __BASEDIR__ . "app/" . __APP__ . "/view/cache/";
     $this->smarty->assign("ticket", md5(__APP__));
 }
開發者ID:atsbjc,項目名稱:micce,代碼行數:11,代碼來源:CommonView.class.php


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