/** * Retrieve client id and secret from the query string, if they are specified. * This is used so that they don't have to save the settings prior to using the Login button. */ private function getTwitterOptionsFromQueryString() { if (isset($_GET['twitter_clientkey'])) { $this->clientKey = $_GET['twitter_clientkey']; $this->clientSecret = $_GET['twitter_clientsecret']; OptionPage::saveAWCOption(OptionPage::OPTION_TWITTER_CLIENTKEY, $this->clientKey); OptionPage::saveAWCOption(OptionPage::OPTION_TWITTER_CLIENTSECRET, $this->clientSecret); } }
public static function getAWCOption($optionName) { $opts = new OptionPage(); return $opts->getOption($optionName); }