PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / trunk
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses vtrunk
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 4.2.1.1 All 137 releases
learnpress / inc / Models / Question / QuestionPostMultipleChoiceModel.php

QuestionPostMultipleChoiceModel.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses trunk, at inc/Models/Question/QuestionPostMultipleChoiceModel.php

45 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }
45