Class to display feed of tagged items.
More...
Class to display feed of tagged items.
- Copyright
- 2015 Marina Glancy
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_tag\output\tagfeed::__construct |
( |
| $items = array() | ) |
|
Constructor.
Usually the most convenient way is to call constructor without arguments and add items later using add() method.
- Parameters
-
◆ add()
core_tag\output\tagfeed::add |
( |
| $img, |
|
|
| $heading, |
|
|
| $details = '' ) |
Adds one item to the tagfeed.
- Parameters
-
string | $img | HTML code representing image (or image wrapped in a link), note that core_tag/tagfeed template expects image to be 35x35 px |
string | $heading | HTML for item heading |
string | $details | HTML for item details (keep short) |
◆ export_for_template()
core_tag\output\tagfeed::export_for_template |
( |
renderer_base | $output | ) |
|
Export this data so it can be used as the context for a mustache template.
- Parameters
-
- Return values
-
Implements templatable.
The documentation for this class was generated from the following file:
- tag/classes/output/tagfeed.php