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


PHP WapAction::__construct方法代码示例

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


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

示例1: __construct

	public function __construct(){
		
		

		parent::__construct();

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			$where['token']=$this->token;
		$kefu=M('Kefu')->where($where)->find();
		$this->assign('kefu',$kefu);

		$this->assign('wecha_id',$this->wecha_id);

		$this->Zhaopin_model=M('Zhaopin');

		
		

		



	}
开发者ID:kevicki,项目名称:pig,代码行数:35,代码来源:ZhaopinAction.class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     //普通活动或者现场活动
     $this->act_type = $this->_get('act_type', 'intval');
     $this->shake_model = M('Shake');
 }
开发者ID:liuguogen,项目名称:weixin,代码行数:7,代码来源:ShakeAction.class.php

示例3: __construct

	public function __construct(){

		

		parent::__construct();

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			$where['token']=$this->token;
		
		$this->assign('wecha_id',$this->wecha_id);

		$this->Yingyong_model=M('Yingyong');

	
		

		



	}
开发者ID:royalwang,项目名称:saivi,代码行数:33,代码来源:YingyongAction.class.php

示例4: __construct

	public function __construct(){

		

		parent::__construct();
		if($this->_get('wecha_id')){
			$cover = 0;
		}else{
			$cover = 1;
		}
		$this->assign('cover',$cover);

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			$where['token']=$this->token;

		$this->assign('wecha_id',$this->wecha_id);
     



	}
开发者ID:royalwang,项目名称:saivi,代码行数:33,代码来源:JikedatiAction.class.php

示例5: __construct

	public function __construct(){

		parent::__construct();

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			
		$this->assign('wecha_id',$this->wecha_id);

		$this->scene_model=M('Scene');
		$this->scene_addtp=M('scene_addtp');


	}
开发者ID:royalwang,项目名称:saivi,代码行数:25,代码来源:SceneAction.class.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->token = $this->_get('token');
     $this->reply_info_model = M('reply_info');
     $thisInfoConfig = $this->reply_info_model->where(array('infotype' => 'message', 'token' => $this->token))->find();
     $detailConfig = unserialize($thisInfoConfig['config']);
     $this->needCheck = intval($detailConfig['needcheck']);
     $this->needpass = intval($detailConfig['needpass']);
     $this->sepTime = 60;
     $this->wecha_id = $this->_get('wecha_id');
     $this->assign('wecha_id', $this->wecha_id);
     $this->assign('needCheck', $this->needCheck);
     $this->assign('needpass', $this->needpass);
     $this->assign('token', $this->token);
 }
开发者ID:ww102111,项目名称:weixin,代码行数:16,代码来源:ReplyAction.class.php

示例7: __construct

	public function __construct(){
		 $agent = $_SERVER['HTTP_USER_AGENT'];
        if(!strpos($agent,"icroMessenger")) {
            echo '此功能只能在微信浏览器中使用';exit;
        }

		

		parent::__construct();

		$this->token=session('token');

		// $this->token = $this->_get('token');

		$this->assign('token',$this->token);

		$this->wecha_id	= $this->_get('wecha_id');

		if (!$this->wecha_id){

			$this->wecha_id='null';

		}
			$where['token']=$this->token;
		$kefu=M('Kefu')->where($where)->find();
		$this->assign('kefu',$kefu);

		$this->assign('wecha_id',$this->wecha_id);

		$this->Zhaopin_model=M('Zhaopin');

		
		

		



	}
开发者ID:royalwang,项目名称:saivi,代码行数:39,代码来源:ZhaopinAction.class.php


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