Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 402] [Versions 39 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

param: renderer_base $output
return: array

set_id($id)   X-Ref
Set id

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

get_id()   X-Ref
Get id

return: string

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

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

get_link()   X-Ref
Get link

return: \moodle_url

set_title($title)   X-Ref
Set title

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

get_title()   X-Ref
Get title

return: string

set_description($description)   X-Ref
Set description

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

get_description()   X-Ref
Get description

return: string

set_permalink($permalink)   X-Ref
Set permalink

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

get_permalink()   X-Ref
Get permalink

return: string

set_timestamp($timestamp)   X-Ref
Set timestamp

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

get_timestamp()   X-Ref
Get timestamp

return: string

set_showdescription($showdescription)   X-Ref
Set showdescription

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

get_showdescription()   X-Ref
Get showdescription

return: boolean