Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core_tag\output\tagindex Class Reference

Class to display items tagged with a specific tag. More...

Inheritance diagram for core_tag\output\tagindex:
templatable

Public Member Functions

 __construct ($tag, $component, $itemtype, $content, $exclusivemode=false, $fromctx=0, $ctx=0, $rec=1, $page=0, $totalpages=1)
 Constructor.
 
 __get ($name)
 Magic getter.
 
 __isset ($name)
 Magic isset.
 
 __set ($name, $value)
 Magic setter.
 
 export_for_template (renderer_base $output)
 Export this data so it can be used as the context for a mustache template.
 

Protected Attributes

stdClass $record
 
core_tag_tag stdClass $tag
 
stdClass $tagarea
 

Detailed Description

Class to display items tagged with a specific tag.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_tag\output\tagindex::__construct ( $tag,
$component,
$itemtype,
$content,
$exclusivemode = false,
$fromctx = 0,
$ctx = 0,
$rec = 1,
$page = 0,
$totalpages = 1 )

Constructor.

Parameters
core_tag_tag | stdClass$tag
string$component
string$itemtype
string$content
bool$exclusivemode
int$fromctxcontext id where the link was displayed, may be used by callbacks to display items in the same context first
int$ctxcontext id where we need to search for items
int$recsearch items in sub contexts as well
int$page
bool$totalpages

Member Function Documentation

◆ __get()

core_tag\output\tagindex::__get ( $name)

Magic getter.

Parameters
string$name
Return values
mixed

◆ __isset()

core_tag\output\tagindex::__isset ( $name)

Magic isset.

Parameters
string$name
Return values
bool

◆ __set()

core_tag\output\tagindex::__set ( $name,
$value )

Magic setter.

Parameters
string$name
mixed$value

◆ export_for_template()

core_tag\output\tagindex::export_for_template ( renderer_base $output)

Export this data so it can be used as the context for a mustache template.

Parameters
renderer_base$output
Return values
stdClass

Implements templatable.


The documentation for this class was generated from the following file: