Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
core_tag\external\util Class Reference

Tag external functions utility class. More...

Static Public Member Functions

static get_item_tags ($component, $itemtype, $itemid, $standardonly=core_tag_tag::BOTH_STANDARD_AND_NOT, $tiuserid=0)
 Get the array of core_tag_tag objects for external functions associated with an item (instances). More...
 

Detailed Description

Tag external functions utility class.

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

Member Function Documentation

◆ get_item_tags()

static core_tag\external\util::get_item_tags (   $component,
  $itemtype,
  $itemid,
  $standardonly = core_tag_tag::BOTH_STANDARD_AND_NOT,
  $tiuserid = 0 
)
static

Get the array of core_tag_tag objects for external functions associated with an item (instances).

Parameters
string$componentcomponent responsible for tagging. For BC it can be empty but in this case the query will be slow because DB index will not be used.
string$itemtypetype of the tagged item
int$itemid
int$standardonlywether to return only standard tags or any
int$tiuseridtag instance user id, only needed for tag areas with user tagging
Return values
arraytags for external functions

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