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.
 

Detailed Description

Function Documentation

◆ data_rss_delete_file()

data_rss_delete_file ( $data)

Given a database object, deletes all cached RSS files associated with it.

Parameters
stdClass$data

◆ data_rss_get_feed()

data_rss_get_feed ( $context,
$args )

Generates the Database modules RSS Feed.

Parameters
strClass$contextthe context the feed should be created under
array$argsarray of arguments to be used in the creation of the RSS Feed
Return values
NULL|stringNULL if there is nothing to return, or the file path of the cached file if there is

◆ data_rss_get_sql()

data_rss_get_sql ( $data,
$time = 0 )

Creates and returns a SQL query for the items that would be included in the RSS Feed.

Parameters
stdClass$datadatabase instance object
int$timeepoch timestamp to compare time-modified to, 0 for all or a proper value
Return values
stringSQL query string to get the items for the databse RSS Feed

◆ data_rss_newstuff()

data_rss_newstuff ( $data,
$time )

If there is new stuff in since $time this returns true Otherwise it returns false.

Parameters
stdClass$datathe data activity object
int$timetimestamp
Return values
booltrue if there is new stuff for the RSS Feed