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 401 and 402] [Versions 401 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.

param: renderer_base $output
return: stdClass

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

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

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

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

get_showtitle()   X-Ref
Get showtitle

return: boolean

set_showimage($showimage)   X-Ref
Set showimage

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

get_showimage()   X-Ref
Get showimage

return: boolean