Class to display a tag cloud - set of tags where each has a weight.
More...
|
array | $tagset |
|
int | $totalcount |
|
Class to display a tag cloud - set of tags where each has a weight.
- Copyright
- 2015 Marina Glancy
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_tag\output\tagcloud::__construct |
( |
| $tagset, |
|
|
| $totalcount = 0, |
|
|
| $fromctx = 0, |
|
|
| $ctx = 0, |
|
|
| $rec = 1 ) |
Constructor.
- Parameters
-
array | $tagset | array of core_tag or stdClass elements, each of them must have attributes: name, rawname, tagcollid preferrably also have attributes: isstandard, count, flag |
int | $totalcount | total count of tags (for example to indicate that there are more tags than the count of tagset) leave 0 if count of tagset is the actual count of tags |
int | $fromctx | context id where this tag cloud is displayed |
int | $ctx | context id for tag view link |
int | $rec | recursive argument for tag view link |
◆ export_for_template()
core_tag\output\tagcloud::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.
◆ get_count()
core_tag\output\tagcloud::get_count |
( |
| ) |
|
Returns number of tags in the cloud.
- Return values
-
The documentation for this class was generated from the following file:
- tag/classes/output/tagcloud.php