Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LD_REST_Quiz_Statistics_Controller_V2::make_answer_obj( string $type, array $args = array() )
Build the answer type object and returns it.
Description Description
It throws exception for any invalid type which will be caught by callee.
Parameters Parameters
- $type
-
(Required) Type of answer object we want to build.
- $args
-
(Optional) Argument for class constructor.
Default value: array()
Return Return
(LDLMS_Answer)
Source Source
File: includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php
Changelog Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |