Class to help display an RSS Item.
More...
|
string | $description |
| The description of the item.
|
|
string | $id |
| The unique id of the item.
|
|
moodle_url | $link |
| The link to the item.
|
|
moodle_url | $permalink |
| The item's permalink.
|
|
string | $showdescription |
| Whether or not to show the item's description.
|
|
int | $timestamp |
| The publish date of the item in Unix timestamp format.
|
|
string | $title |
| The title of the item.
|
|
Class to help display an RSS Item.
- 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\item::__construct |
( |
| $id, |
|
|
moodle_url | $link, |
|
|
| $title, |
|
|
| $description, |
|
|
moodle_url | $permalink, |
|
|
| $timestamp, |
|
|
| $showdescription = true ) |
Contructor.
- Parameters
-
string | $id | The id of the RSS item |
moodle_url | $link | The URL of the RSS item |
string | $title | The title pf the RSS item |
string | $description | The description of the RSS item |
moodle_url | $permalink | The permalink of the RSS item |
int | $timestamp | The Unix timestamp that represents the published date |
boolean | $showdescription | Whether or not to show the description |
◆ export_for_template()
block_rss_client\output\item::export_for_template |
( |
\renderer_base | $output | ) |
|
Export context for use in mustache templates.
- See also
- templatable::export_for_template()
- Parameters
-
- Return values
-
◆ get_description()
block_rss_client\output\item::get_description |
( |
| ) |
|
Get description.
- Return values
-
◆ get_id()
block_rss_client\output\item::get_id |
( |
| ) |
|
◆ get_link()
block_rss_client\output\item::get_link |
( |
| ) |
|
◆ get_permalink()
block_rss_client\output\item::get_permalink |
( |
| ) |
|
Get permalink.
- Return values
-
◆ get_showdescription()
block_rss_client\output\item::get_showdescription |
( |
| ) |
|
Get showdescription.
- Return values
-
◆ get_timestamp()
block_rss_client\output\item::get_timestamp |
( |
| ) |
|
Get timestamp.
- Return values
-
◆ get_title()
block_rss_client\output\item::get_title |
( |
| ) |
|
◆ set_description()
block_rss_client\output\item::set_description |
( |
| $description | ) |
|
Set description.
- Parameters
-
- Return values
-
◆ set_id()
block_rss_client\output\item::set_id |
( |
| $id | ) |
|
Set id.
- Parameters
-
- Return values
-
◆ set_link()
block_rss_client\output\item::set_link |
( |
\moodle_url | $link | ) |
|
Set link.
- Parameters
-
- Return values
-
◆ set_permalink()
block_rss_client\output\item::set_permalink |
( |
| $permalink | ) |
|
Set permalink.
- Parameters
-
- Return values
-
◆ set_showdescription()
block_rss_client\output\item::set_showdescription |
( |
| $showdescription | ) |
|
Set showdescription.
- Parameters
-
- Return values
-
◆ set_timestamp()
block_rss_client\output\item::set_timestamp |
( |
| $timestamp | ) |
|
Set timestamp.
- Parameters
-
- Return values
-
◆ set_title()
block_rss_client\output\item::set_title |
( |
| $title | ) |
|
Set title.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- blocks/rss_client/classes/output/item.php