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.

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.

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

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

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

get_url()   X-Ref
Get the URL

return: \moodle_url

set_title($title)   X-Ref
Set the title

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

get_title()   X-Ref
Get the title

return: string

set_link($link)   X-Ref
Set the link

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

get_link()   X-Ref
Get the link

return: \moodle_url