HEX
Server: LiteSpeed
System: Linux l24.yourwebhosting.net 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: turkishi (1582)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/turkishi/www/wp-content/plugins/learnpress/inc/Filters/QuestionAnswersFilter.php
<?php

namespace LearnPress\Filters;

use LP_Filter;

defined( 'ABSPATH' ) || exit();

/**
 * Class QuestionAnswersFilter
 *
 * @author  ThimPress
 * @package LearnPress/Classes/Filters
 * @instead of LP_Question_Answers_Filter
 * @since  4.2.9
 * @author tungnx
 * @version 1.0.1
 */
class QuestionAnswersFilter extends FilterBase {
	const COL_QUESTION_ANSWER_ID = 'question_answer_id';
	const COL_QUESTION_ID        = 'question_id';
	const COL_TITLE              = 'title';
	const COL_VALUE              = 'value';
	const COL_ORDER              = 'order';
	const COL_IS_TRUE            = 'is_true';
	/**
	 * @var string[]
	 */
	public $all_fields = [
		self::COL_QUESTION_ANSWER_ID,
		self::COL_QUESTION_ID,
		self::COL_TITLE,
		self::COL_VALUE,
		self::COL_ORDER,
		self::COL_IS_TRUE,
	];

	public $field_count = 'question_answer_id';
	/**
	 * @var int
	 */
	public $question_answer_id;
	/**
	 * @var int
	 */
	public $question_id;
	/**
	 * @var string
	 */
	public $title;
	/**
	 * @var string
	 */
	public $value;
	/**
	 * @var string
	 */
	public $is_true;
	/**
	 * @var int[]
	 */
	public $question_answer_ids = [];
	/**
	 * @var int[]
	 */
	public $question_ids = [];
	public $order_by     = '`order`';
	public $order        = 'ASC';
}