Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
rsslib.php File Reference

Functions

 rss_add_enclosures ($item)
 Adds RSS Media Enclosures for "podcasting" by including attachments that are specified in the item->attachments field.
 
 rss_add_http_header ($context, $componentname, $componentinstance, $title)
 Build the URL for the RSS feed and add it as a header.
 
 rss_add_items ($items)
 Generates the rss XML code for every item passed in the array.
 
 rss_delete_file ($componentname, $instance)
 Given an object, deletes all RSS files associated with it.
 
 rss_delete_token ($userid)
 Removes the token for the given user from the DB.
 
 rss_enabled_for_mod ($modname, $instance=null, $hasrsstype=true, $hasrssarticles=true)
 Are RSS feeds enabled for the supplied module instance?
 
 rss_end_tag ($tag, $level=0, $endline=true)
 Return the xml end tag.
 
 rss_full_tag ($tag, $level, $endline, $content, $attributes=null)
 Return the while xml element, including content.
 
 rss_get_file_full_name ($componentname, $filename)
 Retrieve the location and file name of a cached RSS feed.
 
 rss_get_file_name ($instance, $sql, $params=array())
 Construct the file name of the RSS File.
 
 rss_get_link ($contextid, $userid, $componentname, $id, $tooltiptext='')
 Print the link for the RSS feed with the correct RSS icon.
 
 rss_get_token ($userid)
 Get the RSS Token from a given user id.
 
 rss_get_url ($contextid, $userid, $componentname, $additionalargs)
 This function returns the URL for the RSS XML file.
 
 rss_get_userid_from_token ($token)
 Get the ID of the user from a given RSS Token.
 
 rss_geterrorxmlfile ($errortype='rsserror')
 This function return an error xml file (string) to be sent when a rss is required (file.php) and something goes wrong.
 
 rss_print_link ($contextid, $userid, $componentname, $id, $tooltiptext='')
 Print the link for the RSS feed with the correct RSS icon (Theme based)
 
 rss_save_file ($componentname, $filename, $contents, $expandfilename=true)
 This function saves to file the rss feed specified in the parameters.
 
 rss_standard_footer ()
 This function return all the common footers for every rss feed in the site.
 
 rss_standard_header ($title=NULL, $link=NULL, $description=NULL)
 This function return all the common headers for every rss feed in the site.
 
 rss_start_tag ($tag, $level=0, $endline=false, $attributes=null)
 Return the xml start tag.