Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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