__construct() public method

public __construct ( $consumerKey, $consumerSecret = '' )
示例#1
0
 /**
  * Constructor
  *
  * @param string $oauth_token        the user's token
  * @param string $oauth_token_secret the user's token secret
  *
  * @return nothing
  */
 function __construct($oauth_token = null, $oauth_token_secret = null)
 {
     $consumer_key = common_config('twitter', 'consumer_key');
     $consumer_secret = common_config('twitter', 'consumer_secret');
     if (empty($consumer_key) && empty($consumer_secret)) {
         $consumer_key = common_config('twitter', 'global_consumer_key');
         $consumer_secret = common_config('twitter', 'global_consumer_secret');
     }
     parent::__construct($consumer_key, $consumer_secret, $oauth_token, $oauth_token_secret);
 }
示例#2
0
 function __construct($server, $consumerKey, $secret)
 {
     parent::__construct($consumerKey, $secret);
     $this->server = $server;
 }