Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
core_xapi\local\statement\item Class Reference

Item class used for xAPI statement elements without validation. More...

Inheritance diagram for core_xapi\local\statement\item:
core_xapi\local\statement\item_attachment core_xapi\local\statement\item_context core_xapi\local\statement\item_object core_xapi\local\statement\item_result core_xapi\local\statement\item_score core_xapi\local\statement\item_verb core_xapi\local\statement\item_activity core_xapi\local\statement\item_actor core_xapi\local\statement\item_agent core_xapi\local\statement\item_group

Public Member Functions

 get_data ()
 Return the original data from this item.
 
 jsonSerialize ()
 Return the data to serialize in case JSON statement is needed.
 

Static Public Member Functions

static create_from_data (stdClass $data)
 Function to create an item from part of the xAPI statement.
 

Protected Member Functions

 __construct (stdClass $data)
 Item constructor.
 

Protected Attributes

stdClass $data
 the item structure.
 

Detailed Description

Item class used for xAPI statement elements without validation.

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

Constructor & Destructor Documentation

◆ __construct()

core_xapi\local\statement\item::__construct ( stdClass $data)
protected

Item constructor.

Parameters
stdClass$datafrom the specific xAPI element

Reimplemented in core_xapi\local\statement\item_verb.

Member Function Documentation

◆ create_from_data()

static core_xapi\local\statement\item::create_from_data ( stdClass $data)
static

◆ get_data()

core_xapi\local\statement\item::get_data ( )

Return the original data from this item.

Return values
stdClassthe original data structure

◆ jsonSerialize()

core_xapi\local\statement\item::jsonSerialize ( )

Return the data to serialize in case JSON statement is needed.

Return values
stdClassthe original data structure

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