Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Abstract object item used in xAPI statements. More...
Public Member Functions | |
get_data () | |
Return the original data from this item. More... | |
jsonSerialize () | |
Return the data to serialize in case JSON statement is needed. More... | |
Static Public Member Functions | |
static | create_from_data (stdClass $data) |
Create a xAPI object compatible from data (Agent, Group or Activity). More... | |
Protected Attributes | |
stdClass | $data |
the item structure. | |
Abstract object item used in xAPI statements.
Object represents the object in which a xAPI verb is applied. There are 3 types of objects supported: agent (user), group (of users) and activity (defined by every plugin).
|
static |
Create a xAPI object compatible from data (Agent, Group or Activity).
stdClass | $data | data structure from statement object |
item | item_group|item_agent|item_activity resulting object |
Reimplemented from core_xapi\local\statement\item.
Reimplemented in core_xapi\local\statement\item_activity, core_xapi\local\statement\item_actor, core_xapi\local\statement\item_agent, and core_xapi\local\statement\item_group.
|
inherited |
Return the original data from this item.
stdClass | the original data structure |
|
inherited |
Return the data to serialize in case JSON statement is needed.
stdClass | the original data structure |