LLMS_Quiz_Attempt_Question::__construct( array $data = array() )

Constructor


Parameters Parameters

$data

(array) (Optional) Question data array from attempt record.

Default value: array()


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/models/model.llms.quiz.attempt.question.php

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
public function __construct( $data = array() ) {
 
    $this->data = wp_parse_args(
        $data,
        array(
            'id'      => null,
            'earned'  => null,
            'points'  => null,
            'remarks' => null,
            'answer'  => null,
            'correct' => null,
        )
    );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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