Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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