當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。