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()


Top ↑

Return Return

(LDLMS_Answer)


Top ↑

Source Source

File: includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.