Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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