/** * Returns class instance * * @return FBCONNECT_BOL_AdminService */ public static function getInstance() { if (null === self::$classInstance) { self::$classInstance = new self(); } return self::$classInstance; }
public function process() { $values = $this->getValues(); $config = OW::getConfig(); $apiId = trim($values['appId']); $apiSecret = trim($values['secret']); $config->saveConfig('fbconnect', 'app_id', $apiId); $config->saveConfig('fbconnect', 'api_secret', $apiSecret); return FBCONNECT_BOL_AdminService::getInstance()->configureApplication(); }