[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/lib/ -> rsslib.php (summary)

(no description)

File Size: 594 lines (22 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 17 functions

  rss_get_link()
  rss_get_url()
  rss_print_link()
  cron_rss_feeds()
  rss_save_file()
  rss_file_name()
  rss_standard_header()
  rss_add_items()
  rss_standard_footer()
  rss_geterrorxmlfile()
  rss_start_tag()
  rss_end_tag()
  rss_full_tag()
  rss_display_feeds()
  rss_print_form()
  rss_get_form()
  rss_add_enclosures()

Functions
Functions that are not part of a class:

rss_get_link($courseid, $userid, $modulename, $id, $tooltiptext='')   X-Ref
No description

rss_get_url($courseid, $userid, $modulename, $id)   X-Ref
No description

rss_print_link($courseid, $userid, $modulename, $id, $tooltiptext='')   X-Ref
No description

cron_rss_feeds()   X-Ref
No description

rss_save_file($modname, $mod, $result)   X-Ref
No description

rss_file_name($modname, $mod)   X-Ref
No description

rss_standard_header($title = NULL, $link = NULL, $description = NULL)   X-Ref
No description

rss_add_items($items)   X-Ref
No description

rss_standard_footer($title = NULL, $link = NULL, $description = NULL)   X-Ref
No description

rss_geterrorxmlfile()   X-Ref
No description

rss_start_tag($tag,$level=0,$endline=false,$attributes=null)   X-Ref
No description

rss_end_tag($tag,$level=0,$endline=true)   X-Ref
No description

rss_full_tag($tag,$level=0,$endline=true,$content,$attributes=null)   X-Ref
No description

rss_display_feeds($courseid, $userid, $rssid='', $context)   X-Ref

param: int $courseid The id of the course the user is currently viewing
param: int $userid We need this to know which feeds the user is allowed to manage
param: int $rssid If present the rss entry matching this id alone will be displayed
param: object $context we need the context object to check what the user is allowed to do.

rss_print_form($act='none', $url='', $rssid='', $preferredtitle='', $shared=0, $courseid='', $context)   X-Ref
Wrapper function for rss_get_form


rss_get_form($act='none', $url='', $rssid='', $preferredtitle='', $shared=0, $courseid='', $context)   X-Ref
Prints or returns a form for managing rss feed entries.

param: string $act The current action. If "rssedit" then and "update" button is used, otherwise "add" is used.
param: string $url The url of the feed that is being updated or NULL
param: int $rssid The dataabse id of the feed that is being updated or NULL
param: string $preferredtitle The preferred title to display for this feed
param: int $shared Whether this feed is to be shared or not
param: int $courseid The id of the course that is currently being viewed if applicable
param: object $context The context that we will use to check for permissions
return: string Either the form is printed directly and nothing is returned or the form is returned as a string

rss_add_enclosures($item)   X-Ref
Adds RSS Media Enclosures for "podcasting" by examining links to media files,
and attachments which are media files. Please note that the RSS that is
produced cannot be strictly valid for the linked files, since we do not know
the files' sizes and cannot include them in the "length" attribute. At
present, the validity (and therefore the podcast working in most software)
can only be ensured for attachments, and not for links.
Note also that iTunes does some things very badly - one thing it does is
refuse to download ANY of your files if you're using "file.php?file=blah"
and can't use the more elegant "file.php/blah" slasharguments setting. It
stops after ".php" and assumes the files are not media files, despite what
is specified in the "type" attribute. Dodgy coding all round!

author: Hannes Gassert <hannes@mediagonal.ch>
author: Dan Stowell
param: $item     object representing an RSS item
return: string    RSS enclosure tags



Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7