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


PHP OAuthRequest::__construct方法代码示例

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


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

示例1:

 /**
  * Construct the request to be verified
  * 
  * @param string request
  * @param string method
  */
 function __construct($uri = null, $method = 'GET')
 {
     $this->store = elggconnect_get_oauth_store();
     //OAuthStore::instance();
     parent::__construct($uri, $method);
     OAuthRequestLogger::start($this);
 }
开发者ID:redvabel,项目名称:Vabelgg,代码行数:13,代码来源:OAuthRequestVerifier.php

示例2: array

 /**
  * Construct the request to be verified
  * 
  * @param string request
  * @param string method
  * @param array params The request parameters
  */
 function __construct($uri = null, $method = null, $params = null)
 {
     if ($params) {
         $encodedParams = array();
         foreach ($params as $key => $value) {
             if (preg_match("/^oauth_/", $key)) {
                 continue;
             }
             $encodedParams[rawurlencode($key)] = rawurlencode($value);
         }
         $this->param = array_merge($this->param, $encodedParams);
     }
     $this->store = OAuthStore::instance();
     parent::__construct($uri, $method);
     OAuthRequestLogger::start($this);
 }
开发者ID:pegasus2013,项目名称:socialigniter,代码行数:23,代码来源:OauthRequestVerifier.php

示例3: foreach

 /**
  * Construct the request to be signed.  Parses or appends the parameters in the params url.
  * When you supply an params array, then the params should not be urlencoded.
  * When you supply a string, then it is assumed it is of the type application/x-www-form-urlencoded
  * 
  * @param string request	url
  * @param string method		PUT, GET, POST etc.
  * @param mixed params 		string (for urlencoded data, or array with name/value pairs)
  * @param string body		optional body for PUT and/or POST requests
  */
 function __construct($request, $method = 'GET', $params = null, $body = null)
 {
     $this->store = OAuthStore::instance();
     if (is_string($params)) {
         parent::__construct($request, $method, $params);
     } else {
         parent::__construct($request, $method);
         if (is_array($params)) {
             foreach ($params as $name => $value) {
                 $this->setParam($name, $value);
             }
         }
     }
     // With put/ post we might have a body (not for application/x-www-form-urlencoded requests)
     if ($method == 'PUT' || $method == 'POST') {
         $this->setBody($body);
     }
 }
开发者ID:ki8asui,项目名称:isography,代码行数:28,代码来源:OAuthRequestSigner.php

示例4:

 /**
  * Construct the request to be verified
  * 
  * @param string request
  * @param string method
  */
 function __construct($uri = null, $method = 'GET')
 {
     $this->store = OAuthStore::instance();
     parent::__construct($uri, $method);
     OAuthRequestLogger::start($this);
 }
开发者ID:kamoti01,项目名称:morsle-google,代码行数:12,代码来源:OAuthRequestVerifier.php

示例5:

 /**
  * Construct the request to be verified
  * 
  * @param string request
  * @param string method
  * @param string postdata
  */
 function __construct()
 {
     $this->store = OAuthStore::instance();
     parent::__construct();
     OAuthRequestLogger::start($this);
 }
开发者ID:phill104,项目名称:branches,代码行数:13,代码来源:OAuthRequestVerifier.php


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