Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 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

return: string|boolean
param: templatable $item

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

return: string|boolean
param: templatable $feed

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

return: string|boolean
param: \templatable $block

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

return: string|boolean
param: templatable $footer

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

return: string
param: int $timestamp Unix timestamp

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

return: string
param: string $title

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

return: string
param: string $description