Skip to content

Commit

Permalink
Document settings class
Browse files Browse the repository at this point in the history
  • Loading branch information
lhausammann committed Oct 3, 2023
1 parent 297fa85 commit a217aa9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wp-plugin/srf-weather-widget/SrfWeatherWidgetSettings.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php

/**
* Settings:
* API Key and API Secret are required and validated against the api by retreiving an access_token.
* Geolocation and name are optional.
* Geolocation is replaced with the next available geolocation in the api. These query is expensive and therefore only performed onced (by updating the setting with the correcgt value).
* Name is avaible as last resort and causes an expensive name search on everey (frontend) request.
*/
class SrfWeatherWidgetSettings {
const SRF_WEATHER_OPTION_GROUP = 'srf-weather-widget-auth';
const SRF_WEATHER_API_KEY = 'srf-weather-api-key';
Expand Down

0 comments on commit a217aa9

Please sign in to comment.