PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.7
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
← All changes | inc/Models/Question/QuestionPostMultipleChoiceModel.php +44 -44 4.3.84.4.7 View file →
@@ -1,44 +1,44 @@
1 -<?php
2 -
3 -namespace LearnPress\Models\Question;
4 -
5 -/**
6 - * Class QuestionPostTrueFalseModel
7 - * To replace class LP_Question old
8 - *
9 - * @package LearnPress/Classes
10 - * @version 1.0.0
11 - * @since 4.2.9
12 - */
13 -class QuestionPostMultipleChoiceModel extends QuestionPostModel {
14 - public $question_type = 'multi_choice';
15 -
16 - public function get_default_answers(): array {
17 - return array(
18 - array(
19 - 'is_true' => 'yes',
20 - 'value' => learn_press_random_value(),
21 - 'title' => esc_html__( 'First option', 'learnpress' ),
22 - 'order' => 1,
23 - ),
24 - array(
25 - 'is_true' => '',
26 - 'value' => learn_press_random_value(),
27 - 'title' => esc_html__( 'Second option', 'learnpress' ),
28 - 'order' => 2,
29 - ),
30 - array(
31 - 'is_true' => '',
32 - 'value' => learn_press_random_value(),
33 - 'title' => esc_html__( 'Third option', 'learnpress' ),
34 - 'order' => 3,
35 - ),
36 - array(
37 - 'is_true' => '',
38 - 'value' => learn_press_random_value(),
39 - 'title' => esc_html__( 'Four option', 'learnpress' ),
40 - 'order' => 4,
41 - ),
42 - );
43 - }
44 -}
1 +<?php
2 +
3 +namespace LearnPress\Models\Question;
4 +
5 +/**
6 + * Class QuestionPostTrueFalseModel
7 + * To replace class LP_Question old
8 + *
9 + * @package LearnPress/Classes
10 + * @version 1.0.0
11 + * @since 4.2.9
12 + */
13 +class QuestionPostMultipleChoiceModel extends QuestionPostModel {
14 + public $question_type = 'multi_choice';
15 +
16 + public function get_default_answers(): array {
17 + return array(
18 + array(
19 + 'is_true' => 'yes',
20 + 'value' => learn_press_random_value(),
21 + 'title' => esc_html__( 'First option', 'learnpress' ),
22 + 'order' => 1,
23 + ),
24 + array(
25 + 'is_true' => '',
26 + 'value' => learn_press_random_value(),
27 + 'title' => esc_html__( 'Second option', 'learnpress' ),
28 + 'order' => 2,
29 + ),
30 + array(
31 + 'is_true' => '',
32 + 'value' => learn_press_random_value(),
33 + 'title' => esc_html__( 'Third option', 'learnpress' ),
34 + 'order' => 3,
35 + ),
36 + array(
37 + 'is_true' => '',
38 + 'value' => learn_press_random_value(),
39 + 'title' => esc_html__( 'Four option', 'learnpress' ),
40 + 'order' => 4,
41 + ),
42 + );
43 + }
44 +}