当前位置: 首页>>代码示例>>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;未经允许,请勿转载。