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 400 and 402] [Versions 400 and 403]

Contains class block_rss_client\output\feed

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

Defines 1 class

feed:: (13 methods):
  __construct()
  export_for_template()
  set_title()
  get_title()
  add_item()
  set_items()
  get_items()
  set_image()
  get_image()
  set_showtitle()
  get_showtitle()
  set_showimage()
  get_showimage()


Class: feed  - X-Ref

Class to help display an RSS Feed

__construct($title, $showtitle = true, $showimage = true)   X-Ref
Contructor

param: string $title The title of the RSS feed
param: boolean $showtitle Whether to show the title
param: boolean $showimage Whether to show the channel image

export_for_template(\renderer_base $output)   X-Ref
Export this for use in a mustache template context.

return: stdClass
param: renderer_base $output

set_title($title)   X-Ref
Set the feed title

return: \block_rss_client\output\feed
param: string $title

get_title()   X-Ref
Get the feed title

return: string

add_item(item $item)   X-Ref
Add an RSS item

param: \block_rss_client\output\item $item

set_items(array $items)   X-Ref
Set the RSS items

param: array $items An array of renderable RSS items

get_items()   X-Ref
Get the RSS items

return: array An array of renderable RSS items

set_image(channel_image $image)   X-Ref
Set the channel image

param: \block_rss_client\output\channel_image $image

get_image()   X-Ref
Get the channel image

return: channel_image

set_showtitle($showtitle)   X-Ref
Set showtitle

return: \block_rss_client\output\feed
param: boolean $showtitle

get_showtitle()   X-Ref
Get showtitle

return: boolean

set_showimage($showimage)   X-Ref
Set showimage

return: \block_rss_client\output\feed
param: boolean $showimage

get_showimage()   X-Ref
Get showimage

return: boolean