Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/forum/rsslib.php File Reference

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Functions

 forum_rss_get_feed ($context, $args)
 forum_rss_delete_file ($forum)
 forum_rss_newstuff ($forum, $cm, $time)
 forum_rss_get_sql ($forum, $cm, $time=0)
 forum_rss_feed_discussions_sql ($forum, $cm, $newsince=0)
 forum_rss_feed_posts_sql ($forum, $cm, $newsince=0)
 forum_rss_get_group_sql ($cm, $groupmode, $currentgroup, $modcontext=null)
 forum_rss_feed_contents ($forum, $sql)

Function Documentation

forum_rss_delete_file ( forum)

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

Parameters:
object$forum
Returns:
void

Definition at line 94 of file rsslib.php.

Here is the call graph for this function:

forum_rss_feed_contents ( forum,
sql 
)

This function return the XML rss contents about the forum It returns false if something is wrong

Parameters:
object$forum
bool

Definition at line 264 of file rsslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

forum_rss_feed_discussions_sql ( forum,
cm,
newsince = 0 
)

Users must fulfill timed posts

Definition at line 133 of file rsslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

forum_rss_feed_posts_sql ( forum,
cm,
newsince = 0 
)

Definition at line 188 of file rsslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

forum_rss_get_feed ( context,
args 
)

Returns the path to the cached rss feed contents. Creates/updates the cache if necessary. object $CFG object $DB

Parameters:
object$contextthe context
int$forumidthe ID of the forum
array$argsthe arguments received in the url
Returns:
string the full path to the cached RSS feed directory. Null if there is a problem.

Definition at line 35 of file rsslib.php.

Here is the call graph for this function:

forum_rss_get_group_sql ( cm,
groupmode,
currentgroup,
modcontext = null 
)

Definition at line 231 of file rsslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

forum_rss_get_sql ( forum,
cm,
time = 0 
)

Definition at line 119 of file rsslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

forum_rss_newstuff ( forum,
cm,
time 
)

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

Parameters:
object$forumthe forum object
object$cm
int$timetimestamp
Returns:
bool

Definition at line 110 of file rsslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations