dolibarr 21.0.0-alpha
|
Class to parse Fediverse files. More...
Public Member Functions | |
__construct ($platform) | |
Constructor. | |
parser ($urlAPI, $maxNb=5, $cacheDelay=60, $cacheDir='') | |
Parse Fediverse API to retrieve posts. | |
getPosts () | |
Get the list of retrieved posts. | |
getLastFetchDate () | |
Get the last fetch date. | |
Class to parse Fediverse files.
Definition at line 30 of file fediverseparser.class.php.
FediverseParser::__construct | ( | $platform | ) |
Constructor.
string | $platform | name of social network |
Definition at line 52 of file fediverseparser.class.php.
FediverseParser::getLastFetchDate | ( | ) |
Get the last fetch date.
Definition at line 99 of file fediverseparser.class.php.
FediverseParser::getPosts | ( | ) |
Get the list of retrieved posts.
Definition at line 89 of file fediverseparser.class.php.
FediverseParser::parser | ( | $urlAPI, | |
$maxNb = 5, | |||
$cacheDelay = 60, | |||
$cacheDir = '' ) |
Parse Fediverse API to retrieve posts.
string | $urlAPI | URL of the Fediverse API. |
int | $maxNb | Maximum number of posts to retrieve (default is 5). |
int | $cacheDelay | Number of seconds to use cached data (0 to disable caching). |
string | $cacheDir | Directory to store cached data. |
Definition at line 69 of file fediverseparser.class.php.