Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Contains class core_tag\output\tagindex

Copyright: 2015 Marina Glancy
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 121 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

tagcloud:: (3 methods):
  __construct()
  get_count()
  export_for_template()


Class: tagcloud  - X-Ref

Class to display a tag cloud - set of tags where each has a weight.

__construct($tagset, $totalcount = 0, $fromctx = 0, $ctx = 0, $rec = 1)   X-Ref
Constructor

param: array $tagset array of core_tag or stdClass elements, each of them must have attributes:
param: int $totalcount total count of tags (for example to indicate that there are more tags than the count of tagset)
param: int $fromctx context id where this tag cloud is displayed
param: int $ctx context id for tag view link
param: int $rec recursive argument for tag view link

get_count()   X-Ref
Returns number of tags in the cloud

return: int

export_for_template(renderer_base $output)   X-Ref
Export this data so it can be used as the context for a mustache template.

param: renderer_base $output
return: stdClass