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_renderer

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

Defines 1 class

core_tag_renderer:: (4 methods):
  tag_search_page()
  tag_index_page()
  tag_links()
  search_form()


Class: core_tag_renderer  - X-Ref

Class core_tag_renderer

tag_search_page($query = '', $tagcollid = 0)   X-Ref
Renders the tag search page

param: string $query
param: int $tagcollid
return: string

tag_index_page($tag, $entities, $tagareaid, $exclusivemode, $fromctx, $ctx, $rec, $page)   X-Ref
Renders the tag index page

param: core_tag_tag $tag
param: \core_tag\output\tagindex[] $entities
param: int $tagareaid
param: bool $exclusivemode if set to true it means that no other entities tagged with this tag
param: int $fromctx context id where the link was displayed, may be used by callbacks
param: int $ctx context id where to search for records
param: bool $rec search in subcontexts as well
param: int $page 0-based number of page being displayed
return: string

tag_links($tag)   X-Ref
Prints a box that contains the management links of a tag

param: core_tag_tag $tag
return: string

search_form($query = '', $tagcollid = 0)   X-Ref
Prints the tag search box

param: string $query last search string
param: int $tagcollid last selected tag collection id
return: string