- 
		Home
	
 
	- 
LearnPress – WordPress LMS Plugin
 
- 
4.1.4
 
- 
Code
 
- 
Classes
 
-  LP_Question 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											158 | 
										
																			
											| Dependencies | 
											10 | 
										
																			
											| Dependents | 
											18 | 
										
																	
							 
													
								
																			
											| Total lines | 
											1,100 | 
										
																			
											| Lines of code | 
											595 | 
										
																			
											| Logical lines of code | 
											289 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											330 | 
										
																			
											| Methods | 
											55 | 
										
																			
											| Properties | 
											9 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 55
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| store() | 
									A  | 
																	43 | 
													11 | 
													45 | 
							
					
				| _get() | 
									A  | 
																	49 | 
													11 | 
													30 | 
							
					
				| setup_data() | 
									A  | 
																	54 | 
													10 | 
													19 | 
							
					
				| get_answer_options() | 
									A  | 
																	49 | 
													9 | 
													31 | 
							
					
				| __construct() | 
									A  | 
																	50 | 
													9 | 
													28 | 
							
					
				| get_user_answered() | 
									A  | 
																	51 | 
													9 | 
													28 | 
							
					
				| get_question() | 
									A  | 
																	48 | 
													8 | 
													35 | 
							
					
				| update_answer_orders() | 
									A  | 
																	47 | 
													7 | 
													37 | 
							
					
				| get_question_object() | 
									S  | 
																	60 | 
													6 | 
													12 | 
							
					
				| create_default_answers() | 
									S  | 
																	52 | 
													5 | 
													24 | 
							
					
				| save_user_answer() | 
									S  | 
																	57 | 
													4 | 
													17 | 
							
					
				| get_answers() | 
									S  | 
																	58 | 
													4 | 
													15 | 
							
					
				| _get_default_answers() | 
									S  | 
																	70 | 
													4 | 
													6 | 
							
					
				| get_data() | 
									S  | 
																	62 | 
													3 | 
													12 | 
							
					
				| set_type() | 
									S  | 
																	63 | 
													3 | 
													11 | 
							
					
				| empty_answers() | 
									S  | 
																	56 | 
													2 | 
													20 | 
							
					
				| _filter_meta_box_meta() | 
									S  | 
																	67 | 
													3 | 
													7 | 
							
					
				| get_class_name_from_question_type() | 
									S  | 
																	68 | 
													3 | 
													6 | 
							
					
				| get_name() | 
									S  | 
																	63 | 
													2 | 
													12 | 
							
					
				| get_default_answers() | 
									S  | 
																	55 | 
													1 | 
													23 | 
							
					
				| get_supports() | 
									S  | 
																	70 | 
													2 | 
													6 | 
							
					
				| save() | 
									S  | 
																	68 | 
													2 | 
													8 | 
							
					
				| show_correct_answers() | 
									S  | 
																	70 | 
													2 | 
													6 | 
							
					
				| disable_answers() | 
									S  | 
																	70 | 
													2 | 
													6 | 
							
					
				| get() | 
									S  | 
																	73 | 
													2 | 
													4 | 
							
					
				| is_selected_option() | 
									S  | 
																	65 | 
													2 | 
													8 | 
							
					
				| get_question_class() | 
									S  | 
																	63 | 
													2 | 
													10 | 
							
					
				| _get_checked() | 
									S  | 
																	73 | 
													2 | 
													4 | 
							
					
				| _set_checked() | 
									S  | 
																	73 | 
													2 | 
													4 | 
							
					
				| get_editor_settings() | 
									S  | 
																	63 | 
													1 | 
													13 | 
							
					
				| get_types() | 
									S  | 
																	62 | 
													1 | 
													12 | 
							
					
				| add_support() | 
									S  | 
																	74 | 
													1 | 
													4 | 
							
					
				| is_support() | 
									S  | 
																	74 | 
													1 | 
													4 | 
							
					
				| get_type_support_answer_options() | 
									S  | 
																	89 | 
													1 | 
													2 | 
							
					
				| log() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| load() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| get_default_meta() | 
									S  | 
																	67 | 
													1 | 
													8 | 
							
					
				| get_mark() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| set_mark() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| set_answered() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| get_answered() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| set_explanation() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| get_explanation() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| set_hint() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| get_hint() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| get_type() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| get_type_label() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| _init() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| get_default_answer() | 
									S  | 
																	65 | 
													1 | 
													9 | 
							
					
				| sanitize_name_callback() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| set() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| can_check_answer() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| check() | 
									S  | 
																	69 | 
													1 | 
													7 | 
							
					
				| get_answer_at() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| get_editor_default_settings() | 
									S  | 
																	65 | 
													1 | 
													10 |