com-tecnick-tcexam-admin

# Procedural File: tce_functions_questions.php Source Location: /admin/code/tce_functions_questions.php ## Page Details: Functions to manipulate questions. #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2008-11-26
license: | GNU Affero General Public License
### F_question_copy [line 201]
`void F_question_copy( int $question_id, int $new_subject_id, boolean $enables)`
Copy selected question to another topic #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2008-11-26
license: | GNU Affero General Public License
#### Parameters
int | $question_id | question ID
int | $new_subject_id | new subject ID
boolean | $enables | if true enables question, false otherwise
[ Top ] ### F_question_delete [line 147]
`void F_question_delete( int $question_id, int $subject_id, boolean $enables)`
Delete selected question (or disable it if used) #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2008-11-26
license: | GNU Affero General Public License
#### Parameters
int | $question_id | question ID
int | $subject_id | subject ID
boolean | $enables | if true enables question, false otherwise
[ Top ] ### F_question_get_data [line 117]
`array F_question_get_data( int $question_id)`
Get question data #### Tags:
return: | containing selected question data, false in case of error
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2008-11-26
license: | GNU Affero General Public License
#### Parameters
int | $question_id | question ID
[ Top ] ### F_question_get_position [line 88]
`int F_question_get_position( int $question_id)`
Get question position #### Tags:
return: | question position
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2008-11-26
license: | GNU Affero General Public License
#### Parameters
int | $question_id | question ID
[ Top ] ### F_question_set_enabled [line 63]
`void F_question_set_enabled( int $question_id, int $subject_id, [ $enabled = true], boolean $enables)`
Enable/Disable selected question #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2008-11-26
license: | GNU Affero General Public License
#### Parameters
int | $question_id | question ID
int | $subject_id | subject ID
boolean | $enables | if true enables question, false otherwise
| $enabled |
[ Top ] Documentation generated on Mon, 06 Dec 2010 12:03:05 +0100 by phpDocumentor 1.4.3