Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)

Functions

 glossary_rss_delete_file ($glossary)
 Given a glossary object, deletes all cached RSS files associated with it.
 
 glossary_rss_get_feed ($context, $args)
 This file adds support to rss feeds generation.
 
 glossary_rss_get_sql ($glossary, $time=0)
 The appropriate SQL query for the glossary items to go into the RSS feed.
 
 glossary_rss_newstuff ($glossary, $time)
 If there is new stuff in since $time this returns true Otherwise it returns false.
 

Detailed Description

Function Documentation

◆ glossary_rss_delete_file()

glossary_rss_delete_file ( $glossary)

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

Parameters
stdClass$glossary

◆ glossary_rss_get_feed()

glossary_rss_get_feed ( $context,
$args )

This file adds support to rss feeds generation.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Returns the path to the cached rss feed contents. Creates/updates the cache if necessary.
Parameters
stdClass$contextthe context
array$argsthe arguments received in the url
Return values
stringthe full path to the cached RSS feed directory. Null if there is a problem.

◆ glossary_rss_get_sql()

glossary_rss_get_sql ( $glossary,
$time = 0 )

The appropriate SQL query for the glossary items to go into the RSS feed.

Parameters
stdClass$glossarythe glossary object
int$timecheck for items since this epoch timestamp
Return values
stringthe SQL query to be used to get the entried from the glossary table of the database

◆ glossary_rss_newstuff()

glossary_rss_newstuff ( $glossary,
$time )

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

Parameters
stdClass$glossarythe glossary activity object
int$timeepoch timestamp to compare new items against, 0 for everyting
Return values
booltrue if there are new items