tce_functions_questions.php
Tags
Table of Contents
Functions
- F_question_set_enabled() : mixed
- Enable/Disable selected question
- F_question_get_position() : int
- Get question position
- F_question_get_data() : array<string|int, mixed>
- Get question data
- F_question_delete() : mixed
- Delete selected question (or disable it if used)
- F_question_copy() : mixed
- Copy selected question to another topic
Functions
F_question_set_enabled()
Enable/Disable selected question
F_question_set_enabled( $question_id[,
$enabled
= true
]) : mixed
Parameters
- $question_id :
-
(int) question ID
- $enabled : = true
-
(boolean) if true enables question, false otherwise
Tags
F_question_get_position()
Get question position
F_question_get_position( $question_id)
: int
Parameters
Tags
Return values
int —question position
F_question_get_data()
Get question data
F_question_get_data( $question_id)
: array<string|int,
mixed>
Parameters
Tags
Return values
array<string|int, mixed> —containing selected question data, false in case of error
F_question_delete()
Delete selected question (or disable it if used)
F_question_delete( $question_id,
$subject_id)
: mixed
Parameters
Tags
F_question_copy()
Copy selected question to another topic
F_question_copy( $question_id,
$new_subject_id)
: mixed