Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
block_rss_client\output\channel_image Class Reference

Class to display RSS channel images. More...

Inheritance diagram for block_rss_client\output\channel_image:

Public Member Functions

 __construct (\moodle_url $url, $title, ?\moodle_url $link=null)
 Contructor.
 
 export_for_template (\renderer_base $output)
 Export this for use in a mustache template context.
 
 get_link ()
 Get the link.
 
 get_title ()
 Get the title.
 
 get_url ()
 Get the URL.
 
 set_link ($link)
 Set the link.
 
 set_title ($title)
 Set the title.
 
 set_url (\moodle_url $url)
 Set the URL.
 

Protected Attributes

string $link
 The URL of the image link.
 
string $title
 The title of the image.
 
string $url
 The URL location of the image.
 

Detailed Description

Class to display RSS channel images.

Author
Brendan Anderson brend.nosp@m.an_a.nosp@m.nders.nosp@m.on@h.nosp@m.cpss..nosp@m.org
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

block_rss_client\output\channel_image::__construct ( \moodle_url $url,
$title,
?\moodle_url $link = null )

Contructor.

Parameters
moodle_url$urlThe URL location of the image
string$titleThe title of the image
moodle_url$linkThe URL of the image link

Member Function Documentation

◆ export_for_template()

block_rss_client\output\channel_image::export_for_template ( \renderer_base $output)

Export this for use in a mustache template context.

See also
templatable::export_for_template()
Parameters
renderer_base$output
Return values
arrayThe data for the template

◆ get_link()

block_rss_client\output\channel_image::get_link ( )

Get the link.

Return values
moodle_url

◆ get_title()

block_rss_client\output\channel_image::get_title ( )

Get the title.

Return values
string

◆ get_url()

block_rss_client\output\channel_image::get_url ( )

Get the URL.

Return values
moodle_url

◆ set_link()

block_rss_client\output\channel_image::set_link ( $link)

Set the link.

Parameters
moodle_url$link
Return values
block_rss_client\output\channel_image

◆ set_title()

block_rss_client\output\channel_image::set_title ( $title)

Set the title.

Parameters
string$title
Return values
block_rss_client\output\channel_image

◆ set_url()

block_rss_client\output\channel_image::set_url ( \moodle_url $url)

Set the URL.

Parameters
moodle_url$url
Return values
block_rss_client\output\channel_image

The documentation for this class was generated from the following file: