- 
		Home
	
 
	- 
LearnPress – WordPress LMS Plugin
 
- 
4.1.4
 
- 
Code
 
- 
Classes
 
-  LP_Abstract_User 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											262 | 
										
																			
											| Dependencies | 
											20 | 
										
																			
											| Dependents | 
											3 | 
										
																	
							 
													
								
																			
											| Total lines | 
											2,533 | 
										
																			
											| Lines of code | 
											958 | 
										
																			
											| Logical lines of code | 
											518 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											1,261 | 
										
																			
											| Methods | 
											91 | 
										
																			
											| Properties | 
											5 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 91
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| get_quiz_history() | 
									C  | 
																	33 | 
													23 | 
													98 | 
							
					
				| get_current_item() | 
									A  | 
																	47 | 
													11 | 
													36 | 
							
					
				| get_profile_socials() | 
									A  | 
																	48 | 
													8 | 
													36 | 
							
					
				| has_completed_item() | 
									A  | 
																	50 | 
													8 | 
													29 | 
							
					
				| complete_lesson() | 
									A  | 
																	48 | 
													7 | 
													31 | 
							
					
				| maybe_update_item() | 
									S  | 
																	55 | 
													7 | 
													20 | 
							
					
				| get_orders() | 
									S  | 
																	54 | 
													6 | 
													21 | 
							
					
				| get_answer_results() | 
									S  | 
																	54 | 
													6 | 
													21 | 
							
					
				| __get() | 
									S  | 
																	54 | 
													6 | 
													20 | 
							
					
				| _get_course() | 
									S  | 
																	59 | 
													6 | 
													15 | 
							
					
				| __construct() | 
									S  | 
																	59 | 
													6 | 
													14 | 
							
					
				| hint() | 
									S  | 
																	57 | 
													5 | 
													17 | 
							
					
				| get_item_grade() | 
									S  | 
																	60 | 
													5 | 
													12 | 
							
					
				| is() | 
									S  | 
																	60 | 
													5 | 
													12 | 
							
					
				| get_course_remaining_time() | 
									S  | 
																	62 | 
													5 | 
													11 | 
							
					
				| is_answered_question() | 
									S  | 
																	62 | 
													5 | 
													11 | 
							
					
				| get_course_data() | 
									S  | 
																	56 | 
													4 | 
													20 | 
							
					
				| get_current_question() | 
									S  | 
																	55 | 
													4 | 
													20 | 
							
					
				| check_question() | 
									S  | 
																	60 | 
													4 | 
													14 | 
							
					
				| get_item_archive() | 
									S  | 
																	62 | 
													4 | 
													12 | 
							
					
				| has_retake_quiz() | 
									S  | 
																	61 | 
													4 | 
													12 | 
							
					
				| can_edit_item() | 
									S  | 
																	62 | 
													4 | 
													11 | 
							
					
				| get_order_status() | 
									S  | 
																	58 | 
													3 | 
													17 | 
							
					
				| finish_course() | 
									S  | 
																	60 | 
													3 | 
													14 | 
							
					
				| has_passed_course() | 
									S  | 
																	60 | 
													3 | 
													14 | 
							
					
				| get_course_status() | 
									S  | 
																	62 | 
													3 | 
													12 | 
							
					
				| can_do_quiz() | 
									S  | 
																	61 | 
													3 | 
													12 | 
							
					
				| get_item_status() | 
									S  | 
																	62 | 
													3 | 
													11 | 
							
					
				| has_checked_question() | 
									S  | 
																	60 | 
													2 | 
													15 | 
							
					
				| _verify_course_item() | 
									S  | 
																	68 | 
													3 | 
													7 | 
							
					
				| get_item() | 
									S  | 
																	65 | 
													3 | 
													10 | 
							
					
				| can_check_answer() | 
									S  | 
																	66 | 
													3 | 
													9 | 
							
					
				| can_hint_answer() | 
									S  | 
																	66 | 
													3 | 
													9 | 
							
					
				| has_course_status() | 
									S  | 
																	65 | 
													3 | 
													9 | 
							
					
				| has_checked_answer() | 
									S  | 
																	68 | 
													3 | 
													7 | 
							
					
				| has_hinted_answer() | 
									S  | 
																	68 | 
													3 | 
													7 | 
							
					
				| get_role() | 
									S  | 
																	78 | 
													3 | 
													3 | 
							
					
				| can() | 
									S  | 
																	60 | 
													2 | 
													12 | 
							
					
				| has() | 
									S  | 
																	60 | 
													2 | 
													12 | 
							
					
				| get() | 
									S  | 
																	61 | 
													2 | 
													11 | 
							
					
				| get_item_data() | 
									S  | 
																	67 | 
													2 | 
													8 | 
							
					
				| get_user_item() | 
									S  | 
																	67 | 
													2 | 
													8 | 
							
					
				| get_quiz_results() | 
									S  | 
																	74 | 
													2 | 
													4 | 
							
					
				| get_quiz_data() | 
									S  | 
																	69 | 
													2 | 
													7 | 
							
					
				| get_quiz_last_results() | 
									S  | 
																	68 | 
													2 | 
													7 | 
							
					
				| _get_quiz_meta() | 
									S  | 
																	59 | 
													1 | 
													15 | 
							
					
				| get_current_results() | 
									S  | 
																	66 | 
													2 | 
													9 | 
							
					
				| is_instructor() | 
									S  | 
																	74 | 
													2 | 
													4 | 
							
					
				| is_admin() | 
									S  | 
																	74 | 
													2 | 
													4 | 
							
					
				| can_create_course() | 
									S  | 
																	79 | 
													2 | 
													3 | 
							
					
				| get_course_info() | 
									S  | 
																	69 | 
													2 | 
													7 | 
							
					
				| get_course_history_id() | 
									S  | 
																	74 | 
													2 | 
													4 | 
							
					
				| get_course_order() | 
									S  | 
																	65 | 
													2 | 
													9 | 
							
					
				| is_course_in_progress() | 
									S  | 
																	71 | 
													2 | 
													5 | 
							
					
				| evaluate_course_results() | 
									S  | 
																	74 | 
													2 | 
													4 | 
							
					
				| is_completed_all_items() | 
									S  | 
																	64 | 
													2 | 
													9 | 
							
					
				| get_course_grade() | 
									S  | 
																	66 | 
													2 | 
													8 | 
							
					
				| is_guest() | 
									S  | 
																	78 | 
													2 | 
													3 | 
							
					
				| can_edit() | 
									S  | 
																	70 | 
													2 | 
													6 | 
							
					
				| has_quiz_status() | 
									S  | 
																	62 | 
													1 | 
													13 | 
							
					
				| get_quiz_by_question() | 
									S  | 
																	61 | 
													1 | 
													13 | 
							
					
				| has_item_status() | 
									S  | 
																	63 | 
													1 | 
													12 | 
							
					
				| has_completed_quiz() | 
									S  | 
																	63 | 
													1 | 
													11 | 
							
					
				| load() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| get_quiz_status() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_lesson_status() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| getItemStatus() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| get_prev_question() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| get_next_question() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| has_role() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| can_purchase_course() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| can_finish_course() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| get_completed_items() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| is_author_of() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| has_started_quiz() | 
									S  | 
																	69 | 
													1 | 
													6 | 
							
					
				| has_completed_lesson() | 
									S  | 
																	65 | 
													1 | 
													10 | 
							
					
				| get_course_info2() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| get_purchased_courses() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_roles() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| is_exists() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| is_logged_in() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| get_upload_profile_src() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_profile_picture() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| has_reached_passing_condition() | 
									S  | 
																	72 | 
													1 | 
													5 | 
							
					
				| get_email() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_username() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_description() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_first_name() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_last_name() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_nickname() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_display_name() | 
									S  | 
																	79 | 
													1 | 
													3 |