Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are 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