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.

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