Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

Contains class block_rss_client\output\block_renderer_html

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: 124 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

renderer:: (7 methods):
  render_item()
  render_feed()
  render_block()
  render_footer()
  format_published_date()
  format_title()
  format_description()


Class: renderer  - X-Ref

Renderer for RSS Client block

render_item(\templatable $item)   X-Ref
Render an RSS Item

param: \templatable $item
return: string

render_feed(\templatable $feed)   X-Ref
Render an RSS Feed

param: \templatable $feed
return: string

render_block(\templatable $block)   X-Ref
Render an RSS feeds block

param: \templatable $block
return: string

render_footer(\templatable $footer)   X-Ref
Render the block footer

param: \templatable $footer
return: string

format_published_date($timestamp)   X-Ref
Format a timestamp to use as a published date

param: int $timestamp Unix timestamp
return: string

format_title($title)   X-Ref
Format an RSS item title

param: string $title
return: string

format_description($description)   X-Ref
Format an RSS item description

param: string $description
return: string