| @@ -1,93 +1,93 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Class LP_Course_JSON_Filter | |
| 4 | - * | |
| 5 | - * @author ThimPress | |
| 6 | - * @package LearnPress/Classes/Filters | |
| 7 | - * @version 4.2.6.9 | |
| 8 | - */ | |
| 9 | - | |
| 10 | -/** | |
| 11 | - * Prevent loading this file directly | |
| 12 | - */ | |
| 13 | -defined( 'ABSPATH' ) || exit(); | |
| 14 | - | |
| 15 | -class LP_Course_JSON_Filter extends LP_Filter { | |
| 16 | - const COL_ID = 'ID'; | |
| 17 | - const COL_POST_AUTHOR = 'post_author'; | |
| 18 | - const COL_POST_DATE_GMT = 'post_date_gmt'; | |
| 19 | - const COL_POST_CONTENT = 'post_content'; | |
| 20 | - const COL_POST_TITLE = 'post_title'; | |
| 21 | - const COL_POST_STATUS = 'post_status'; | |
| 22 | - const COL_POST_NAME = 'post_name'; | |
| 23 | - const COL_MENU_ORDER = 'menu_order'; | |
| 24 | - const COL_JSON = 'json'; | |
| 25 | - const COL_PRICE_TO_SORT = 'price_to_sort'; | |
| 26 | - const COL_IS_SALE = 'is_sale'; | |
| 27 | - const COL_LANG = 'lang'; // For multiple languages, wpml or polylang will store here. | |
| 28 | - /** | |
| 29 | - * @var string[] | |
| 30 | - */ | |
| 31 | - public $all_fields = [ | |
| 32 | - self::COL_ID, | |
| 33 | - self::COL_POST_AUTHOR, | |
| 34 | - self::COL_POST_DATE_GMT, | |
| 35 | - self::COL_POST_CONTENT, | |
| 36 | - self::COL_POST_TITLE, | |
| 37 | - self::COL_POST_STATUS, | |
| 38 | - self::COL_POST_NAME, | |
| 39 | - self::COL_MENU_ORDER, | |
| 40 | - self::COL_JSON, | |
| 41 | - self::COL_PRICE_TO_SORT, | |
| 42 | - self::COL_IS_SALE, | |
| 43 | - self::COL_LANG, | |
| 44 | - ]; | |
| 45 | - /** | |
| 46 | - * @var int | |
| 47 | - */ | |
| 48 | - public $ID; | |
| 49 | - /** | |
| 50 | - * @var string | |
| 51 | - */ | |
| 52 | - public $post_title = ''; | |
| 53 | - /** | |
| 54 | - * @var string | |
| 55 | - */ | |
| 56 | - public $post_name = ''; | |
| 57 | - /** | |
| 58 | - * @var string[] | |
| 59 | - */ | |
| 60 | - public $post_status = []; | |
| 61 | - /** | |
| 62 | - * @var int | |
| 63 | - */ | |
| 64 | - public $post_author = 0; | |
| 65 | - /** | |
| 66 | - * @var int[] | |
| 67 | - */ | |
| 68 | - public $post_authors = []; | |
| 69 | - /** | |
| 70 | - * @var array | |
| 71 | - */ | |
| 72 | - public $term_ids = []; | |
| 73 | - /** | |
| 74 | - * @var array | |
| 75 | - */ | |
| 76 | - public $tag_ids = []; | |
| 77 | - /** | |
| 78 | - * @var array | |
| 79 | - */ | |
| 80 | - public $ids = []; | |
| 81 | - /** | |
| 82 | - * @var string | |
| 83 | - */ | |
| 84 | - public $taxonomy = 'course_category'; | |
| 85 | - /** | |
| 86 | - * @var string | |
| 87 | - */ | |
| 88 | - public $lang = ''; | |
| 89 | - /** | |
| 90 | - * @var int | |
| 91 | - */ | |
| 92 | - public $is_sale = 0; | |
| 93 | -} | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Class LP_Course_JSON_Filter | |
| 4 | + * | |
| 5 | + * @author ThimPress | |
| 6 | + * @package LearnPress/Classes/Filters | |
| 7 | + * @version 4.2.6.9 | |
| 8 | + */ | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * Prevent loading this file directly | |
| 12 | + */ | |
| 13 | +defined( 'ABSPATH' ) || exit(); | |
| 14 | + | |
| 15 | +class LP_Course_JSON_Filter extends LP_Filter { | |
| 16 | + const COL_ID = 'ID'; | |
| 17 | + const COL_POST_AUTHOR = 'post_author'; | |
| 18 | + const COL_POST_DATE_GMT = 'post_date_gmt'; | |
| 19 | + const COL_POST_CONTENT = 'post_content'; | |
| 20 | + const COL_POST_TITLE = 'post_title'; | |
| 21 | + const COL_POST_STATUS = 'post_status'; | |
| 22 | + const COL_POST_NAME = 'post_name'; | |
| 23 | + const COL_MENU_ORDER = 'menu_order'; | |
| 24 | + const COL_JSON = 'json'; | |
| 25 | + const COL_PRICE_TO_SORT = 'price_to_sort'; | |
| 26 | + const COL_IS_SALE = 'is_sale'; | |
| 27 | + const COL_LANG = 'lang'; // For multiple languages, wpml or polylang will store here. | |
| 28 | + /** | |
| 29 | + * @var string[] | |
| 30 | + */ | |
| 31 | + public $all_fields = [ | |
| 32 | + self::COL_ID, | |
| 33 | + self::COL_POST_AUTHOR, | |
| 34 | + self::COL_POST_DATE_GMT, | |
| 35 | + self::COL_POST_CONTENT, | |
| 36 | + self::COL_POST_TITLE, | |
| 37 | + self::COL_POST_STATUS, | |
| 38 | + self::COL_POST_NAME, | |
| 39 | + self::COL_MENU_ORDER, | |
| 40 | + self::COL_JSON, | |
| 41 | + self::COL_PRICE_TO_SORT, | |
| 42 | + self::COL_IS_SALE, | |
| 43 | + self::COL_LANG, | |
| 44 | + ]; | |
| 45 | + /** | |
| 46 | + * @var int | |
| 47 | + */ | |
| 48 | + public $ID; | |
| 49 | + /** | |
| 50 | + * @var string | |
| 51 | + */ | |
| 52 | + public $post_title = ''; | |
| 53 | + /** | |
| 54 | + * @var string | |
| 55 | + */ | |
| 56 | + public $post_name = ''; | |
| 57 | + /** | |
| 58 | + * @var string[] | |
| 59 | + */ | |
| 60 | + public $post_status = []; | |
| 61 | + /** | |
| 62 | + * @var int | |
| 63 | + */ | |
| 64 | + public $post_author = 0; | |
| 65 | + /** | |
| 66 | + * @var int[] | |
| 67 | + */ | |
| 68 | + public $post_authors = []; | |
| 69 | + /** | |
| 70 | + * @var array | |
| 71 | + */ | |
| 72 | + public $term_ids = []; | |
| 73 | + /** | |
| 74 | + * @var array | |
| 75 | + */ | |
| 76 | + public $tag_ids = []; | |
| 77 | + /** | |
| 78 | + * @var array | |
| 79 | + */ | |
| 80 | + public $ids = []; | |
| 81 | + /** | |
| 82 | + * @var string | |
| 83 | + */ | |
| 84 | + public $taxonomy = 'course_category'; | |
| 85 | + /** | |
| 86 | + * @var string | |
| 87 | + */ | |
| 88 | + public $lang = ''; | |
| 89 | + /** | |
| 90 | + * @var int | |
| 91 | + */ | |
| 92 | + public $is_sale = 0; | |
| 93 | +} | |