Item class used for xAPI statement elements without validation.
More...
|
stdClass | $data |
| the item structure.
|
|
Item class used for xAPI statement elements without validation.
- Copyright
- 2020 Ferran Recio
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_xapi\local\statement\item::__construct |
( |
stdClass |
$data | ) |
|
|
protected |
◆ create_from_data()
static core_xapi\local\statement\item::create_from_data |
( |
stdClass |
$data | ) |
|
|
static |
Function to create an item from part of the xAPI statement.
- Parameters
-
stdClass | $data | the original xAPI element |
- Return values
-
item | the xAPI item generated |
Reimplemented in core_xapi\local\statement\item_activity, core_xapi\local\statement\item_actor, core_xapi\local\statement\item_agent, core_xapi\local\statement\item_attachment, core_xapi\local\statement\item_context, core_xapi\local\statement\item_definition, core_xapi\local\statement\item_group, core_xapi\local\statement\item_object, core_xapi\local\statement\item_result, core_xapi\local\statement\item_score, and core_xapi\local\statement\item_verb.
◆ get_data()
core_xapi\local\statement\item::get_data |
( |
| ) |
|
Return the original data from this item.
- Return values
-
stdClass | the original data structure |
◆ jsonSerialize()
core_xapi\local\statement\item::jsonSerialize |
( |
| ) |
|
Return the data to serialize in case JSON statement is needed.
- Return values
-
stdClass | the original data structure |
The documentation for this class was generated from the following file:
- lib/xapi/classes/local/statement/item.php