Class to help display an RSS Feed.
More...
|
string null string | $channellink |
| The feed's channel link.
|
|
channel_image | $image = null |
| The channel image.
|
|
array | $items = array() |
| An array of renderable feed items.
|
|
boolean | $showimage |
| Whether or not to show the channel image.
|
|
boolean | $showtitle |
| Whether or not to show the title.
|
|
string | $title = null |
| The feed's title.
|
|
Class to help display an RSS Feed.
- Copyright
- 2015 Howard County Public School System
- 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
◆ __construct()
block_rss_client\output\feed::__construct |
( |
| $title, |
|
|
| $showtitle = true, |
|
|
| $showimage = true, |
|
|
?string | $channellink = null ) |
Contructor.
- Parameters
-
string | $title | The title of the RSS feed |
boolean | $showtitle | Whether to show the title |
boolean | $showimage | Whether to show the channel image |
string | null | $channellink | The channel link of the RSS feed |
◆ add_item()
block_rss_client\output\feed::add_item |
( |
item | $item | ) |
|
Add an RSS item.
- Parameters
-
◆ export_for_template()
block_rss_client\output\feed::export_for_template |
( |
\renderer_base | $output | ) |
|
Export this for use in a mustache template context.
- See also
- templatable::export_for_template()
- Parameters
-
- Return values
-
◆ get_image()
block_rss_client\output\feed::get_image |
( |
| ) |
|
Get the channel image.
- Return values
-
◆ get_items()
block_rss_client\output\feed::get_items |
( |
| ) |
|
Get the RSS items.
- Return values
-
array | An array of renderable RSS items |
◆ get_showimage()
block_rss_client\output\feed::get_showimage |
( |
| ) |
|
Get showimage.
- Return values
-
◆ get_showtitle()
block_rss_client\output\feed::get_showtitle |
( |
| ) |
|
Get showtitle.
- Return values
-
◆ get_title()
block_rss_client\output\feed::get_title |
( |
| ) |
|
Get the feed title.
- Return values
-
◆ set_channellink()
block_rss_client\output\feed::set_channellink |
( |
?\moodle_url | $channellink | ) |
|
Set the feed channel link.
- Parameters
-
moodle_url | null | $channellink | the URL to the channel website. |
◆ set_image()
Set the channel image.
- Parameters
-
◆ set_items()
block_rss_client\output\feed::set_items |
( |
array | $items | ) |
|
Set the RSS items.
- Parameters
-
array | $items | An array of renderable RSS items |
◆ set_showimage()
block_rss_client\output\feed::set_showimage |
( |
| $showimage | ) |
|
Set showimage.
- Parameters
-
- Return values
-
◆ set_showtitle()
block_rss_client\output\feed::set_showtitle |
( |
| $showtitle | ) |
|
Set showtitle.
- Parameters
-
- Return values
-
◆ set_title()
block_rss_client\output\feed::set_title |
( |
| $title | ) |
|
Set the feed title.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- blocks/rss_client/classes/output/feed.php