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.

Contains class block_rss_client\output\block

Author: Brendan Anderson <brendan_anderson@hcpss.org>
Copyright: 2015 Howard County Public School System
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 104 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

block:: (5 methods):
  __construct()
  export_for_template()
  add_feed()
  set_feeds()
  get_feeds()


Class: block  - X-Ref

Class to help display an RSS Feeds block

__construct(array $feeds = array()   X-Ref
Contruct

param: array $feeds An array of renderable feeds

export_for_template(\renderer_base $output)   X-Ref
Prepare data for use in a template

param: \renderer_base $output
return: array

add_feed(feed $feed)   X-Ref
Add a feed

param: \block_rss_client\output\feed $feed
return: \block_rss_client\output\block

set_feeds(array $feeds)   X-Ref
Set the feeds

param: array $feeds
return: \block_rss_client\output\block

get_feeds()   X-Ref
Get feeds

return: array