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

Defines 1 class

item:: (16 methods):
  __construct()
  export_for_template()
  set_id()
  get_id()
  set_link()
  get_link()
  set_title()
  get_title()
  set_description()
  get_description()
  set_permalink()
  get_permalink()
  set_timestamp()
  get_timestamp()
  set_showdescription()
  get_showdescription()


Class: item  - X-Ref

Class to help display an RSS Item

__construct($id, \moodle_url $link, $title, $description, \moodle_url $permalink, $timestamp,$showdescription = true)   X-Ref
Contructor

param: string $id The id of the RSS item
param: \moodle_url $link The URL of the RSS item
param: string $title The title pf the RSS item
param: string $description The description of the RSS item
param: \moodle_url $permalink The permalink of the RSS item
param: int $timestamp The Unix timestamp that represents the published date
param: boolean $showdescription Whether or not to show the description

export_for_template(\renderer_base $output)   X-Ref
Export context for use in mustache templates

return: array
param: renderer_base $output

set_id($id)   X-Ref
Set id

return: \block_rss_client\output\item
param: string $id

get_id()   X-Ref
Get id

return: string

set_link(\moodle_url $link)   X-Ref
Set link

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

get_link()   X-Ref
Get link

return: \moodle_url

set_title($title)   X-Ref
Set title

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

get_title()   X-Ref
Get title

return: string

set_description($description)   X-Ref
Set description

return: \block_rss_client\output\item
param: string $description

get_description()   X-Ref
Get description

return: string

set_permalink($permalink)   X-Ref
Set permalink

return: \block_rss_client\output\item
param: string $permalink

get_permalink()   X-Ref
Get permalink

return: string

set_timestamp($timestamp)   X-Ref
Set timestamp

return: \block_rss_client\output\item
param: int $timestamp

get_timestamp()   X-Ref
Get timestamp

return: string

set_showdescription($showdescription)   X-Ref
Set showdescription

return: \block_rss_client\output\item
param: boolean $showdescription

get_showdescription()   X-Ref
Get showdescription

return: boolean