Public Member Functions |
| __construct ($config, $soap) |
| ListHotSpots ($token, $day=null) |
| getHistory ($token, $country_id, $history_id=null) |
| getHistory2 ($token, $country_id, $dates, $intervals) |
Data Fields |
| $soap |
Protected Member Functions |
| _listHotSpots ($day=null) |
| _getHistory ($date, $intervals, $country_id, $my) |
Protected Attributes |
| $config = null |
Constructor & Destructor Documentation
Member Function Documentation
_getHistory |
( |
$ |
date, |
|
|
$ |
intervals, |
|
|
$ |
country_id, |
|
|
$ |
my |
|
) |
| [protected] |
Gets the history for a given date
- Parameters:
-
int | $date | The date |
int | $intervals | The number of intervals to get the history |
string | $country_id | The country identifier |
mysqli | $my | The mysql database connection protected |
- Returns:
- HotspotsResultSet
Get the list of hotspots for a day without authentification
- Parameters:
-
int | $day | The day for which to retrieve the hotspots (null means the current date) [OPTIONAL] |
- Returns:
- string[] A list of countries iso codes.
getHistory |
( |
$ |
token, |
|
|
$ |
country_id, |
|
|
$ |
history_id = null |
|
) |
| |
Gets the number of articles for all the 63 weeks for a country
- Parameters:
-
string | $token | The session identifier |
string | $country_id | The country identifier |
int | $history_id | If specified, the history identifier to retrieve [OPTIONAL] public |
- Returns:
- int[]
getHistory2 |
( |
$ |
token, |
|
|
$ |
country_id, |
|
|
$ |
dates, |
|
|
$ |
intervals |
|
) |
| |
Gets the number of articles for all the 63 weeks for a country
- Parameters:
-
string | $token | The session identifier |
string | $country_id | The country identifier |
| int[] | $dates The dates to search from (unix timestamp) |
int | $intervals | The number of intervals to search public |
- Returns:
- HotspotsResultSet[]
Get the list of hotspots for a day
- Parameters:
-
string | $token | The session identifier |
int | $day | The day for which to retrieve the hotspots (null means the current date) [OPTIONAL] |
- Returns:
- string[] A list of countries iso codes.
Field Documentation
$config = null [protected] |
The documentation for this class was generated from the following file: