_config = new Zend_Oauth_Config; if (!is_null($options)) { if ($options instanceof Zend_Config) { $options = $options->toArray(); } $this->_config->setOptions($options); } } /** * Create request token * * @return Zend_Oauth_Server * @throws Zend_Oauth_Exception for unsupported methods */ public function createRequestToken() { if (strtoupper($_SERVER['REQUEST_METHOD']) == Zend_Oauth::POST) { } elseif (strtoupper($_SERVER['REQUEST_METHOD']) == Zend_Oauth::GET) { } require_once 'Zend/Oauth/Exception.php'; throw new Zend_Oauth_Exception('Unsupported method: ' . strtoupper($_SERVER['REQUEST_METHOD'])); return $this; } /** * Create access token * * @return Zend_Oauth_Server */ public function createAccessToken() { } /** * Get redirect URL * * @return void */ public function getRedirectUrl() { } /** * Redirect * * @return void */ public function redirect() { } /** * Whether or not the request token is authorized * * @return boolean */ public function isAuthorized() { } /** * Proxy calls to config object * * @param string $method * @param array $args * @return mixed */ public function __call($method, array $args) { if (!method_exists($this->_config, $method)) { require_once 'Zend/Oauth/Exception.php'; throw new Zend_Oauth_Exception('Method does not exist: ' . $method); } return call_user_func_array(array($this->_config, $method), $args); } }