Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Script to let a user edit the properties of a particular RSS feed.

Copyright: 2009 Tim Hunt
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 232 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

feed_edit_form:: (6 methods):
  __construct()
  definition()
  definition_after_data()
  validation()
  get_data()
  autodiscover_feed_url()


Class: feed_edit_form  - X-Ref

__construct($actionurl, $isadding, $caneditshared)   X-Ref
No description

definition()   X-Ref
No description

definition_after_data()   X-Ref
No description

validation($data, $files)   X-Ref
No description

get_data()   X-Ref
No description

autodiscover_feed_url($url)   X-Ref
Autodiscovers a feed url from a given url, to be used by the formslibs
filter function

Uses simplepie with autodiscovery set to maximum level to try and find
a feed to subscribe to.
See: http://simplepie.org/wiki/reference/simplepie/set_autodiscovery_level

param: string URL to autodiscover a url
return: string URL of feed or original url if none found