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.

Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 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: 121 lines (3 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|boolean

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

param: templatable $feed
return: string|boolean

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

param: \templatable $block
return: string|boolean

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

param: templatable $footer
return: string|boolean

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