Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

The question tags column subclass.

Copyright: 2018 Simey Lameze <simey@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 102 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

tags_action_column:: (5 methods):
  init()
  get_name()
  display_content()
  get_link_url_and_attributes()
  get_action_menu_link()


Class: tags_action_column  - X-Ref

Action to add and remove tags to questions.

init()   X-Ref


get_name()   X-Ref
Return the name for this column.

return: string

display_content($question, $rowclasses)   X-Ref
Display tags column content.

param: object $question The question database record.
param: string $rowclasses

get_link_url_and_attributes($question)   X-Ref
Helper used by display_content and get_action_menu_link.

param: object $question the row from the $question table, augmented with extra information.
return: array with two elements, \moodle_url and

get_action_menu_link(\stdClass $question)   X-Ref
No description