public function __construct($appid, $appkey, $scope, $callback, $errorReport) { parent::__construct(); $this->recorder->write("appid", $appid); $this->recorder->write("appkey", $appkey); $this->recorder->write("scope", $scope); $this->recorder->write("callback", $callback); $this->recorder->write("errorReport", $errorReport); $this->keysArr = array("oauth_consumer_key" => (int) $this->recorder->readInc("appid"), "access_token" => null, "openid" => null); }