Abstract xAPI context class.
More...
|
| get_data () |
| Return the original data from this item.
|
|
| jsonSerialize () |
| Return the data to serialize in case JSON statement is needed.
|
|
|
static | create_from_data (stdClass $data) |
| Function to create an item from part of the xAPI statement.
|
|
|
stdClass | $data |
| the item structure.
|
|
Abstract xAPI context class.
- Copyright
- 2020 Ferran Recio
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ create_from_data()
static core_xapi\local\statement\item_context::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 | item_context xAPI generated |
Reimplemented from core_xapi\local\statement\item.
◆ get_data()
core_xapi\local\statement\item::get_data |
( |
| ) |
|
|
inherited |
Return the original data from this item.
- Return values
-
stdClass | the original data structure |
◆ jsonSerialize()
core_xapi\local\statement\item::jsonSerialize |
( |
| ) |
|
|
inherited |
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_context.php