Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Functions | |
data_rss_delete_file ($data) | |
Given a database object, deletes all cached RSS files associated with it. | |
data_rss_get_feed ($context, $args) | |
Generates the Database modules RSS Feed. | |
data_rss_get_sql ($data, $time=0) | |
Creates and returns a SQL query for the items that would be included in the RSS Feed. | |
data_rss_newstuff ($data, $time) | |
If there is new stuff in since $time this returns true Otherwise it returns false. | |
data_rss_delete_file | ( | $data | ) |
Given a database object, deletes all cached RSS files associated with it.
stdClass | $data |
data_rss_get_feed | ( | $context, | |
$args ) |
Generates the Database modules RSS Feed.
strClass | $context | the context the feed should be created under |
array | $args | array of arguments to be used in the creation of the RSS Feed |
NULL|string | NULL if there is nothing to return, or the file path of the cached file if there is |
data_rss_get_sql | ( | $data, | |
$time = 0 ) |
Creates and returns a SQL query for the items that would be included in the RSS Feed.
stdClass | $data | database instance object |
int | $time | epoch timestamp to compare time-modified to, 0 for all or a proper value |
string | SQL query string to get the items for the databse RSS Feed |
data_rss_newstuff | ( | $data, | |
$time ) |
If there is new stuff in since $time this returns true Otherwise it returns false.
stdClass | $data | the data activity object |
int | $time | timestamp |
bool | true if there is new stuff for the RSS Feed |