| @@ -10,14 +10,14 @@ | ||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace LearnPress\Models\Question; |
| 13 | 13 | |
| 14 | -use ClassPress\Helpers\Debug; | |
| 15 | 14 | use Exception; |
| 16 | 15 | use LearnPress\Databases\QuestionAnswersDB; |
| 17 | 16 | use LearnPress\Filters\QuestionAnswersFilter; |
| 18 | 17 | use LearnPress\Models\PostModel; |
| 19 | 18 | use LP_Cache; |
| 19 | +use LP_Debug; | |
| 20 | 20 | use LP_Question_Filter; |
| 21 | 21 | |
| 22 | 22 | class QuestionPostModel extends PostModel { |
| 23 | 23 | /** |
| @@ -90,9 +90,9 @@ | ||
| 90 | 90 | |
| 91 | 91 | $this->answer_options = $answer_options; |
| 92 | 92 | } |
| 93 | 93 | } catch ( Exception $e ) { |
| 94 | - Debug::error_log( $e ); | |
| 94 | + LP_Debug::error_log( $e ); | |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | return $this->answer_options; |
| 98 | 98 | } |
| @@ -158,19 +158,8 @@ | ||
| 158 | 158 | $this->question_type = $this->get_meta_value_by_key( self::META_KEY_TYPE, '' ); |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | return $this->question_type; |
| 162 | - } | |
| 163 | - | |
| 164 | - /** | |
| 165 | - * @param $question_type | |
| 166 | - * @return $this | |
| 167 | - */ | |
| 168 | - public function set_type($question_type) | |
| 169 | - { | |
| 170 | - $this->question_type = $question_type; | |
| 171 | - | |
| 172 | - return $this; | |
| 173 | 162 | } |
| 174 | 163 | |
| 175 | 164 | /** |
| 176 | 165 | * Check type question is valid |