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.

Contains class block_rss_client\output\channel_image

Author: Brendan Anderson <brendan_anderson@hcpss.org>
Copyright: 2016 Howard County Public School System
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 151 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

channel_image:: (8 methods):
  __construct()
  export_for_template()
  set_url()
  get_url()
  set_title()
  get_title()
  set_link()
  get_link()


Class: channel_image  - X-Ref

Class to display RSS channel images

__construct(\moodle_url $url, $title, \moodle_url $link = null)   X-Ref
Contructor

param: \moodle_url $url The URL location of the image
param: string $title The title of the image
param: \moodle_url $link The URL of the image link

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

return: array The data for the template
param: renderer_base $output

set_url(\moodle_url $url)   X-Ref
Set the URL

return: \block_rss_client\output\channel_image
param: \moodle_url $url

get_url()   X-Ref
Get the URL

return: \moodle_url

set_title($title)   X-Ref
Set the title

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

get_title()   X-Ref
Get the title

return: string

set_link($link)   X-Ref
Set the link

return: \block_rss_client\output\channel_image
param: \moodle_url $link

get_link()   X-Ref
Get the link

return: \moodle_url