File indexing completed on 2024-12-22 05:36:53

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Oauth
0017  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0018  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0019  * @version    $Id$
0020  */
0021 
0022 /** Zend_Oauth_Token */
0023 // require_once 'Zend/Oauth/Token.php';
0024 
0025 /**
0026  * @category   Zend
0027  * @package    Zend_Oauth
0028  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0029  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0030  */
0031 class Zend_Oauth_Token_Request extends Zend_Oauth_Token
0032 {
0033     /**
0034      * Constructor
0035      *
0036      * @param null|Zend_Http_Response $response
0037      * @param null|Zend_Oauth_Http_Utility $utility
0038      */
0039     public function __construct(
0040         Zend_Http_Response $response = null,
0041         Zend_Oauth_Http_Utility $utility = null
0042     ) {
0043         parent::__construct($response, $utility);
0044 
0045         // detect if server supports OAuth 1.0a
0046         if (isset($this->_params[Zend_Oauth_Token::TOKEN_PARAM_CALLBACK_CONFIRMED])) {
0047             Zend_Oauth_Client::$supportsRevisionA = true;
0048         }
0049     }
0050 }