public function __construct() { parent::__construct(); if (empty($this->APIURL) || empty($this->APIKey) || empty($this->SecretKey)) { throw new exception('Invalid API URL or API key or Secret key, please check config.inc.php'); } }
public function __construct($RRconfig = null) { global $config; parent::__construct(); $this->_config = !empty($RRconfig) ? $RRconfig : $config; if (empty($this->_config->APIURL) || empty($this->_config->APIKey) || empty($this->_config->SecretKey)) { throw new exception('Invalid API URL or API key or Secret key, please check config.inc.php'); } }
public function __construct() { parent::__construct(); $this->_config = new stdClass(); $config = C('outlogin.renren'); $this->_config->APIURL = $config['apiurl']; $this->_config->APIKey = $config['akey']; $this->_config->SecretKey = $config['skey']; $this->_config->APIVersion = $config['apiversion']; $this->_config->decodeFormat = $config['decodeformat']; if (empty($this->_config->APIURL) || empty($this->_config->APIKey) || empty($this->_config->SecretKey)) { throw new exception('Invalid API URL or API key or Secret key, please check config.inc.php'); } }
public function __construct() { parent::__construct(); $this->_configrenren = $GLOBALS['configrenren']; }
public function __construct() { global $config; parent::__construct(); $this->_config = $config; }