public function __construct($clientId, $clientSecret, $redirect) { //argument test Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string')->argument(3, 'string'); //Argument 4 must be a string parent::__construct($clientId, $clientSecret, $redirect, self::REQUEST_URL, self::ACCESS_URL); }
public function __construct($key, $secret, $redirect) { //argument test Eden_Facebook_Error::i()->argument(1, 'string')->argument(2, 'string')->argument(3, 'string'); //Argument 4 must be a string parent::__construct($key, $secret, $redirect, self::REQUEST_URL, self::ACCESS_URL); }
public function __construct($clientId, $clientSecret, $redirect, $apiKey = NULL) { //argument test Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string')->argument(3, 'string')->argument(4, 'string', 'null'); //Argument 4 must be a string or null $this->_apiKey = $apiKey; parent::__construct($clientId, $clientSecret, $redirect, self::REQUEST_URL, self::ACCESS_URL); }
if(!class_exists('Eden_Facebook_Auth')){class Eden_Facebook_Auth extends Eden_Oauth2_Client{const REQUEST_URL='https://www.facebook.com/dialog/oauth';const ACCESS_URL='https://graph.facebook.com/oauth/access_token';const USER_AGENT='facebook-php-3.1';protected $_key=NULL;protected $_secret=NULL;protected $_redirect=NULL;public static function i(){return self::_getMultiple(__CLASS__);}public function __construct($key,$secret,$redirect){Eden_Facebook_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string');parent::__construct($key,$secret,$redirect,self::REQUEST_URL,self::ACCESS_URL);}}}