class-ldlms-model-question.php
839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Class to extend LDLMS_Model_Post to LDLMS_Model_Question.
*
* @since 3.4.0
* @package LearnDash\Question
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ( class_exists( 'LDLMS_Model_Post' ) ) && ( ! class_exists( 'LDLMS_Model_Question' ) ) ) {
/**
* Class for LearnDash Model Question.
*
* @since 3.4.0
* @uses LDLMS_Model_Post
*/
class LDLMS_Model_Question extends LDLMS_Model_Post {
/**
* Initialize post.
*
* @since 3.4.0
*
* @param int $question_id Question Post ID to load.
*/
public function __construct( $question_id = 0 ) {
$this->post_type = learndash_get_post_type_slug( 'question' );
$this->load( $question_id );
}
/**
* Load question
*
* @param int $question_id Question ID.
*/
public function load( $question_id ) {}
// End of functions.
}
}