PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 4.4.7 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 All 140 releases
← All changes | inc/Models/class-lp-course-extra-info-fast-query-model.php +42 -42 4.3.9 → 4.4.9 View file →
@@ -1,42 +1,42 @@
1 -<?php
2 -
3 -/**
4 - * Class LP_Course_Extra_Info_Fast_Query_Model
5 - *
6 - * @author tungnnx
7 - * @version 1.0.2
8 - * @since 4.1.3
9 - */
10 -class LP_Course_Extra_Info_Fast_Query_Model {
11 - /**
12 - * @var int First item of Course
13 - */
14 - public $first_item_id = 0;
15 - /**
16 - * @var object Total items of course
17 - * {"count_items":"3","lp_lesson":"2","lp_quiz":"1", "{item_type}":"0"}
18 - */
19 - public $total_items;
20 - /**
21 - * @var object list sections, items of course
22 - */
23 - public $sections_items;
24 -
25 - /**
26 - * Mapper stdclass to model
27 - *
28 - * @param stdClass $object
29 - * @return LP_Course_Extra_Info_Fast_Query_Model
30 - */
31 - public function map_stdclass( stdClass $object ): self {
32 - $extra_info = new self();
33 -
34 - foreach ( $object as $key => $value ) {
35 - if ( property_exists( $extra_info, $key ) ) {
36 - $extra_info->{$key} = $value;
37 - }
38 - }
39 -
40 - return $extra_info;
41 - }
42 -}
1 +<?php
2 +
3 +/**
4 + * Class LP_Course_Extra_Info_Fast_Query_Model
5 + *
6 + * @author tungnnx
7 + * @version 1.0.2
8 + * @since 4.1.3
9 + */
10 +class LP_Course_Extra_Info_Fast_Query_Model {
11 + /**
12 + * @var int First item of Course
13 + */
14 + public $first_item_id = 0;
15 + /**
16 + * @var object Total items of course
17 + * {"count_items":"3","lp_lesson":"2","lp_quiz":"1", "{item_type}":"0"}
18 + */
19 + public $total_items;
20 + /**
21 + * @var object list sections, items of course
22 + */
23 + public $sections_items;
24 +
25 + /**
26 + * Mapper stdclass to model
27 + *
28 + * @param stdClass $object
29 + * @return LP_Course_Extra_Info_Fast_Query_Model
30 + */
31 + public function map_stdclass( stdClass $object ): self {
32 + $extra_info = new self();
33 +
34 + foreach ( $object as $key => $value ) {
35 + if ( property_exists( $extra_info, $key ) ) {
36 + $extra_info->{$key} = $value;
37 + }
38 + }
39 +
40 + return $extra_info;
41 + }
42 +}