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


PHP CommonController::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     // 獲取參數
     $code = I('get.code');
     $this->data = unserialize(base64_decode($code));
 }
開發者ID:pf5512,項目名稱:ecshop_alipay_wap,代碼行數:7,代碼來源:RespondController.class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->asid = isset($_GET['asid']) ? (int) $_GET['asid'] : 0;
     $this->cid = isset($_GET['cid']) ? (int) $_GET['cid'] : 0;
     $this->uid = isset($_GET['uid']) ? (int) $_GET['uid'] : 0;
 }
開發者ID:symoo,項目名稱:project,代碼行數:7,代碼來源:QuestionController.class.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->mobile = in($_POST['mobile']);
     $this->mobile_code = in($_POST['mobile_code']);
     $this->sms_code = in($_POST['sms_code']);
 }
開發者ID:ChanHarold,項目名稱:ecshop,代碼行數:7,代碼來源:SmsController.class.php

示例4:

 function __construct()
 {
     parent::__construct();
     $this->table = 'franchise_region';
     $this->page_view = $this->default;
     $this->controllername = 'user/region';
 }
開發者ID:ravinderphp,項目名稱:landlordv2,代碼行數:7,代碼來源:region.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     // 獲取參數
     $code = I('code');
     $this->data = unserialize(urlsafe_b64decode($code));
 }
開發者ID:m7720647,項目名稱:demo,代碼行數:7,代碼來源:RespondController.class.php

示例6: __construct

 public function __construct(Authorizer $authorizer)
 {
     parent::__construct($authorizer);
     // $this->beforeFilter('oauth', ['except' => 'tmp']);
     // $this->beforeFilter('oauth.checkClient', ['only' => 'store']);
     // $this->beforeFilter('validation');
 }
開發者ID:safarishi,項目名稱:Api-Via-Laravel-4.2.17,代碼行數:7,代碼來源:UserController.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     if (ACTION_NAME == 'list') {
         $this->index();
     }
 }
開發者ID:pf5512,項目名稱:ViciEctouch,代碼行數:7,代碼來源:GroupbuyController.class.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->dailyDb = M('daily');
     $this->typeDb = M('daily_type');
     $this->permissionDb = M('permission');
     $this->draftDb = M('draft_daily');
 }
開發者ID:knight-chen,項目名稱:myblog,代碼行數:8,代碼來源:DailyController.class.php

示例9: D

 function __construct()
 {
     parent::__construct();
     $this->goods = D("Goods");
     $this->goods_discount = D("goods_discount");
     $this->goods_type = D("goods_type");
     $this->goods_face = D("goods_face");
 }
開發者ID:283541486,項目名稱:kaixinwa2.0,代碼行數:8,代碼來源:IndexController.class.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->assign("sidebar_active", array("Work", "index"));
     $this->_page_location = __APP__ . '?s=Work/index';
     $this->assign("classlist", $this->_course_class);
     $this->assign("typelist", $this->_work_type);
 }
開發者ID:imbzd,項目名稱:sessdw,代碼行數:8,代碼來源:WorkController.class.php

示例11: __construct

 /**
  * [__construct description]
  *
  */
 public function __construct(Authorizer $authorizer)
 {
     parent::__construct($authorizer);
     $this->beforeFilter('oauth', ['except' => ['functionName', 'test']]);
     $this->beforeFilter('validation');
     // $this->beforeFilter('@prepare', ['only' => ['reply', 'anonymousReply', 'favour', 'unfavour']]);
     $this->afterFilter('disconnect:major', ['only' => ['functionName', 'test']]);
 }
開發者ID:safarishi,項目名稱:laravel4api,代碼行數:12,代碼來源:TestController.php

示例12: M

 function __construct()
 {
     parent::__construct();
     $this->permissionDb = M("permission");
     $this->typeDb = M("photo_type");
     $this->albumDb = M("photo_album");
     $this->photoDb = M("photo");
 }
開發者ID:knight-chen,項目名稱:myblog,代碼行數:8,代碼來源:PhotoController.class.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->action = ACTION_NAME;
     /* 如果是顯示頁麵,對頁麵進行相應賦值 */
     assign_template();
     $this->assign('action', $this->action);
 }
開發者ID:noikiy,項目名稱:shop-3,代碼行數:8,代碼來源:BrandController.class.php

示例14: __construct

 /**
  * 構造方法
  */
 public function __construct()
 {
     parent::__construct();
     $this->openid = I('get.openid');
     $this->title = I('get.title');
     $this->msg = I('get.msg');
     $this->url = I('get.url');
     $this->url = $this->url ? base64_decode(urldecode($this->url)) : '';
 }
開發者ID:noikiy,項目名稱:shop-3,代碼行數:12,代碼來源:ApiController.class.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_course_class = C('USER.course_class');
     $this->assign('courseclass', $this->_course_class);
     //統計課程學習情況
     $usercourselearninfo = D('User')->gcUserCourseLearn($this->userinfo['userid'], $this->_course_class);
     $this->assign('usercourselearninfo', $usercourselearninfo);
 }
開發者ID:imbzd,項目名稱:sessdw,代碼行數:9,代碼來源:TestingController.class.php


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