PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.7
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 4.2.0 4.2.1 All 138 releases
learnpress / inc / Filters / Course / CourseJsonFilter.php

CourseJsonFilter.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.7, at inc/Filters/Course/CourseJsonFilter.php

72 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace LearnPress\Filters\Course;
3
4 use Edu_Press\Init\init;
5 use LearnPress\Filters\FilterBase;
6
7 defined( 'ABSPATH' ) || exit();
8
9 /**
10 * Class LP_Course_JSON_Filter
11 *
12 * Move from LP_Course_JSON_Filter to here
13 * Query table learnpress_courses
14 *
15 * @version 4.3.2.3
16 * @version 1.0.0
17 */
18 class CourseJsonFilter extends FilterBase {
19 const COL_ID = 'ID';
20 const COL_POST_AUTHOR = 'post_author';
21 const COL_POST_DATE_GMT = 'post_date_gmt';
22 const COL_POST_CONTENT = 'post_content';
23 const COL_POST_TITLE = 'post_title';
24 const COL_POST_STATUS = 'post_status';
25 const COL_POST_NAME = 'post_name';
26 const COL_MENU_ORDER = 'menu_order';
27 const COL_JSON = 'json';
28 const COL_PRICE_TO_SORT = 'price_to_sort';
29 const COL_IS_SALE = 'is_sale';
30 const COL_LANG = 'lang'; // For multiple languages, wpml or polylang will store here.
31 /**
32 * @var string[]
33 */
34 public $all_fields = [
35 self::COL_ID,
36 self::COL_POST_AUTHOR,
37 self::COL_POST_DATE_GMT,
38 self::COL_POST_CONTENT,
39 self::COL_POST_TITLE,
40 self::COL_POST_STATUS,
41 self::COL_POST_NAME,
42 self::COL_MENU_ORDER,
43 self::COL_JSON,
44 self::COL_PRICE_TO_SORT,
45 self::COL_IS_SALE,
46 self::COL_LANG,
47 ];
48
49 public int $ID;
50 public string $post_title;
51 public string $post_name;
52 public int $post_author;
53 public string $lang;
54 public int $is_sale; // 0, 1
55
56 /***** Fields not is columns in DB *****/
57 public array $post_status = [];
58 public array $post_authors = [];
59 public string $taxonomy = 'course_category';
60 public array $term_ids = [];
61 public array $tag_ids = [];
62 public array $ids = [];
63 /**
64 * @var string[] free, paid
65 */
66 public array $type_price = [];
67 public int $is_feature; // 0, 1
68 public array $levels;
69 public string $type; // offline, online
70 /***** End fields not is columns in DB *****/
71 }
72