Loads the settings for this client library. If the settings INI file
located at $settingsIniPath cannot be loaded, then the
parameters passed into this method are used.
public LoadSettings ( string $settingsIniPath, string $defaultVersion, string $defaultServer, string $defaultLogsDir, string $logsRelativePathBase ) | ||
$settingsIniPath | string | the path to the settings INI file |
$defaultVersion | string | the default version if the settings INI file cannot be loaded |
$defaultServer | string | the default server if the settings INI file cannot be loaded |
$defaultLogsDir | string | the default logs directory if the settings INI file cannot be loaded |
$logsRelativePathBase | string | the relative path base for the logs directory |
/** * Overrides {@link AdsUser::LoadSettings()} * added settings - locale */ public function LoadSettings($settingsIniPath, $defaultVersion, $defaultServer, $defaultLogsDir, $logsRelativePathBase) { $settingsIni = parse_ini_file($settingsIniPath, TRUE); if (isset($settingsIni)) { if (array_key_exists('LOCAL', $settingsIni)) { if (array_key_exists('DEFAULT_LOCALE', $settingsIni['LOCAL'])) { $this->SetLocale($settingsIni['LOCAL']['DEFAULT_LOCALE']); } } } parent::LoadSettings($settingsIniPath, $defaultVersion, $defaultServer, $defaultLogsDir, $logsRelativePathBase); }