files-admin-code-tce-functions-questions

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

tce_functions_questions.php

Tags
file

Functions to manipulate questions.

author

Nicola Asuni

since
2008-11-26

Table of Contents

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
author

Nicola Asuni

since
2008-11-26
Return values
mixed

F_question_get_position()

Get question position

F_question_get_position( $question_id) : int
Parameters
$question_id :

(int) question ID

Tags
author

Nicola Asuni

since
2008-11-26
Return values
int

question position

F_question_get_data()

Get question data

F_question_get_data( $question_id) : array<string|int, mixed>
Parameters
$question_id :

(int) question ID

Tags
author

Nicola Asuni

since
2008-11-26
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
$question_id :

(int) question ID

$subject_id :

(int) subject ID

Tags
author

Nicola Asuni

since
2008-11-26
Return values
mixed

F_question_copy()

Copy selected question to another topic

F_question_copy( $question_id,  $new_subject_id) : mixed
Parameters
$question_id :

(int) question ID

$new_subject_id :

(int) new subject ID

Tags
author

Nicola Asuni

since
2008-11-26
Return values
mixed
 

© 2004-2022 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy