Table of contents
Package: com\tecnick\tcexam
Constants
- K_UPDATE_PASSKEY = ‘0’: UPDATES PASSKEY
- K_UPDATE_SERVER = ‘http://updates.tcexam.com’: Updating server
Functions
- F_send_report_emails() : mixed: Sends email test reports to users.
- F_deleteMediaFile() : true: Delete the selected media file
- F_renameMediaFile() : true: Rename the selected media file
- F_createMediaDir() : true: Create a new media directory inside the cache
- F_deleteMediaDir() : true: Delete the specified media directory
- F_getFileInfo() : associative: Get file information
- F_formatFileSize() : string: Return a formatted file size
- F_getMediaDirPathLink() : an: Get an html string containing active path of the specified directory with links to subdirectories.
- F_getDirFiles() : an: Get an associative array of directories and folder inside the specified dir.
- F_isUsedMediaFile() : true: Return true if the file is used on question or answer descriptions
- F_getDirTable() : html: Get an html table containing files and subdirs
- F_getDirVisualTable() : html: Get an html visual list of files and subdirs
- F_getAuthorizedDirs() : a: Returns a regular expression to match authorised directories.
- F_isAuthorizedDir() : true: Returns true if the user is authorized to use the specified directory, false otherwise.
- 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
- tcecodeEditorTagButtons() : XHTML: Display TCExam Code EDITOR Tag Buttons
- getImageButton() : XHTML: Display one tag button
- F_select_test() : true: Display test selection for using F_show_select_test function.
- F_show_select_test() : false: Display test selection XHTML table.
- F_show_select_test_popup() : false: Display user selection XHTML table (popup mode).
- F_isTestOnSSLCerts() : bool: Return true if the selected test is active for the selected SSL Certificate
- F_is_allowed_upload() : true: Check if the uploaded file extension is allowed.
- F_upload_file() : mixed: Uploads image file to the server.
- F_read_file_size() : mixed: returns the file size in bytes
- F_select_user() : true: Display user selection for using F_show_select_user function.
- F_show_select_user() : false: Display user selection XHTML table.
- F_show_select_user_popup() : false: Display user selection XHTML table (popup mode).
- F_isTestOnGroup() : bool: Return true if the selected test is active for the selected group
- F_isUserOnGroup() : bool: Return true if the selected user belongs to the selected group
- F_isAuthorizedEditorForGroup() : bool: Return true if the current user is an administrator or belongs to the group, false otherwise
- F_isAuthorizedEditorForUser() : bool: Return true if the current user is authorized to edit the specified user
- F_user_group_select_sql() : sql: Return the SQL selection query for user groups
- F_user_group_select() : table: Display select box for user groups
- F_get_user_groups() : array<string|int, mixed>: Returns an array containing groups IDs to which the specified user belongs
- F_getUIDfromRegnum() : int: Return the user ID from registration number.
- F_show_online_users() : false: Display online users form using F_list_online_users function.
- F_list_online_users() : false: Display online users.
- F_TSVQuestionImporter() : bool: Import questions from TSV file (tab delimited text).
- F_import_tsv_users() : bool: Import users from TSV file (tab delimited text).
- F_show_select_questions() : false: Display a list of selected questions.
- F_tsv_export_questions() : TSV: Export all questions of the selected subject to TSV.
- F_tsv_export_users() : TSV: Export all users to TSV grouped by users’ groups.
- F_xml_export_question_stats() : XML: Export all question statistics of the selected test to XML.
- F_xml_export_questions() : XML: Export all questions of the selected subject to XML.
- F_xml_export_results() : XML: Export results in XML format.
- F_xml_export_user_results() : XML: Export user results in XML format.
- F_xml_export_users() : XML: Export all users to XML grouped by users’ groups.
- F_select_modules_sql() : string: Returns a SQL string to select modules accounting for user authorizations.
- F_select_subjects_sql() : string: Returns a SQL string to select subjects accounting for user authorizations.
- F_select_module_subjects_sql() : string: Returns a SQL string to select modules and subjects accounting for user authorizations.
- F_select_tests_sql() : string: Returns a SQL string to select tests accounting for user authorizations.
- F_select_executed_tests_sql() : string: Returns a SQL string to select executed tests accounting for user authorizations.
- F_getArrayStatistics() : array<string|int, mixed>: Return an array containing descriptive statistics for the bidimensional input array.
- F_getSVGGraphCode() : converted: Replace angular parenthesis with html equivalents (html entities).
- F_getSVGGraph() : converted: Replace angular parenthesis with html equivalents (html entities).
Constants
FORCE_CURL
File: tce_functions_email_reports.php line 119
public mixed FORCE_CURL = true
K_PATH_FONTS
File: tce_pdf_all_questions.php line 26
public mixed K_PATH_FONTS = \realpath(__DIR__ . '/../../vendor/tecnickcom/tc-lib-pdf-font/target/fonts')
K_PATH_FONTS
File: tce_pdf_results.php line 33
public mixed K_PATH_FONTS = \realpath(__DIR__ . '/../../vendor/tecnickcom/tc-lib-pdf-font/target/fonts')
K_PATH_FONTS
File: tce_pdf_testgen.php line 34
public mixed K_PATH_FONTS = \realpath(__DIR__ . '/../../vendor/tecnickcom/tc-lib-pdf-font/target/fonts')
K_PATH_FONTS
File: tce_pdf_results.php line 33
public mixed K_PATH_FONTS = \realpath(__DIR__ . '/../../vendor/tecnickcom/tc-lib-pdf-font/target/fonts')
K_UPDATE_PASSKEY
File: tce_update.php line 37
public mixed K_UPDATE_PASSKEY = '0'
K_UPDATE_SERVER
File: tce_update.php line 32
public mixed K_UPDATE_SERVER = 'http://updates.tcexam.com'
Functions
F_isValidbackupFile()
File: tce_edit_backup.php line 45
F_isValidbackupFile(mixed $file) : mixed
Parameters
- $file : mixed
F_send_report_emails()
File: tce_functions_email_reports.php line 37
F_send_report_emails(mixed $test_id[, mixed $user_id = 0 ][, mixed $testuser_id = 0 ][, mixed $group_id = 0 ][, mixed $startdate = 0 ][, mixed $enddate = 0 ][, mixed $mode = 0 ][, mixed $display_mode = 1 ][, mixed $show_graph = false ]) : mixed
Parameters
- $test_id : mixed: (int) TEST ID
- $user_id : mixed = 0: (int) USER ID (0 means all users)
- $testuser_id : mixed = 0: (int) test-user ID - if greater than zero, filter stats for the specified test-user.
- $group_id : mixed = 0: (int) GROUP ID (0 means all groups)
- $startdate : mixed = 0: (int) start date ID - if greater than zero, filter stats for the specified starting date
- $enddate : mixed = 0: (int) end date ID - if greater than zero, filter stats for the specified ending date
- $mode : mixed = 0: (int) type of report to send: 0=detailed report; 1=summary report (without questions)
- $display_mode : mixed = 1: display (int) mode: 0 = disabled; 1 = minimum; 2 = module; 3 = subject; 4 = question; 5 = answer.
- $show_graph : mixed = false: (boolean) If true display the score graph.
Tags
- author: Nicola Asuni
- since: 2005-02-24
F_deleteMediaFile()
File: tce_functions_filemanager.php line 29
F_deleteMediaFile(mixed $filename) : true
Parameters
- $filename : mixed: (string) the file name
Tags
- author: Nicola Asuni
Return values
true —
in case of success, false otherwise
F_renameMediaFile()
File: tce_functions_filemanager.php line 70
F_renameMediaFile(mixed $filename, mixed $newname) : true
Parameters
- $filename : mixed: (string) old file name
- $newname : mixed: (string) new file name
Tags
- author: Nicola Asuni
Return values
true —
in case of success, false otherwise
F_createMediaDir()
File: tce_functions_filemanager.php line 131
F_createMediaDir(mixed $dirname) : true
Parameters
- $dirname : mixed: (string) the directory name
Tags
- author: Nicola Asuni
Return values
true —
in case of success, false otherwise
F_deleteMediaDir()
File: tce_functions_filemanager.php line 160
F_deleteMediaDir(mixed $dirname) : true
Parameters
- $dirname : mixed: (string) the directory name
Tags
- author: Nicola Asuni
Return values
true —
in case of success, false otherwise
F_getFileInfo()
File: tce_functions_filemanager.php line 185
F_getFileInfo(mixed $file) : associative
Parameters
- $file : mixed: (string) the file name
Tags
- author: Nicola Asuni
Return values
associative —
array containing file info or false in case of error
F_formatFileSize()
File: tce_functions_filemanager.php line 225
F_formatFileSize(mixed $size) : string
Parameters
- $size : mixed: (int) size in bytes
Tags
- author: Nicola Asuni
Return values
string —
formatted size
F_getMediaDirPathLink()
File: tce_functions_filemanager.php line 247
F_getMediaDirPathLink(mixed $dirpath[, mixed $viewmode = true ]) : an
Parameters
- $dirpath : mixed: (string) the directory path
- $viewmode : mixed = true: (boolean) true=table, false=visual
Tags
- author: Nicola Asuni
Return values
an —
html string
F_getDirFiles()
File: tce_functions_filemanager.php line 297
F_getDirFiles(mixed $dir[, mixed $rootdir = K_PATH_CACHE ][, mixed $authdirs = '' ]) : an
Parameters
- $dir : mixed: (string) the starting directory path
- $rootdir : mixed = K_PATH_CACHE: (string) the user root dir.
- $authdirs : mixed = ‘’: (string) regular expression containing the authorized dirs.
Tags
- author: Nicola Asuni
Return values
an —
associative array containing sorted ‘dirs’ and ‘files’
F_isUsedMediaFile()
File: tce_functions_filemanager.php line 337
F_isUsedMediaFile(mixed $file) : true
Parameters
- $file : mixed: (string) the file to search
Tags
- author: Nicola Asuni
Return values
true —
if the file is used, false otherwise
F_getDirTable()
File: tce_functions_filemanager.php line 390
F_getDirTable(mixed $dir[, mixed $selected = '' ][, mixed $params = '' ][, mixed $rootdir = K_PATH_CACHE ][, mixed $authdirs = '' ]) : html
Parameters
- $dir : mixed: (string) the starting directory path
- $selected : mixed = ‘’: (string) the selected file
- $params : mixed = ‘’: (string) additional parameters to add on links
- $rootdir : mixed = K_PATH_CACHE: (string) the user root dir.
- $authdirs : mixed = ‘’: (string) regular expression containing the authorized dirs.
Tags
- author: Nicola Asuni
Return values
html —
table
F_getDirVisualTable()
File: tce_functions_filemanager.php line 496
F_getDirVisualTable(mixed $dir[, mixed $selected = '' ][, mixed $params = '' ][, mixed $rootdir = K_PATH_CACHE ][, mixed $authdirs = '' ]) : html
Parameters
- $dir : mixed: (string) the starting directory path
- $selected : mixed = ‘’: (string) the selected file
- $params : mixed = ‘’: (string) additional parameters to add on links
- $rootdir : mixed = K_PATH_CACHE: (string) the user root dir.
- $authdirs : mixed = ‘’: (string) regular expression containing the authorized dirs.
Tags
- author: Nicola Asuni
Return values
html —
table
F_getAuthorizedDirs()
File: tce_functions_filemanager.php line 620
F_getAuthorizedDirs() : a
Return values
a —
regular expression to match authorised directories.
F_isAuthorizedDir()
File: tce_functions_filemanager.php line 639
F_isAuthorizedDir(mixed $dir, mixed $rootdir[, mixed $authdirs = '' ]) : true
Parameters
- $dir : mixed: (string) the directory to check.
- $rootdir : mixed: (string) the user root dir.
- $authdirs : mixed = ‘’: (string) regular expression containing the authorized dirs.
Return values
true —
if the user is authorized to use the specified directory, false otherwise.
F_question_set_enabled()
File: tce_functions_questions.php line 30
F_question_set_enabled(mixed $question_id[, mixed $enabled = true ]) : mixed
Parameters
- $question_id : mixed: (int) question ID
- $enabled : mixed = true: (boolean) if true enables question, false otherwise
Tags
- author: Nicola Asuni
- since: 2008-11-26
F_question_get_position()
File: tce_functions_questions.php line 57
F_question_get_position(mixed $question_id) : int
Parameters
- $question_id : mixed: (int) question ID
Tags
- author: Nicola Asuni
- since: 2008-11-26
Return values
int —
question position
F_question_get_data()
File: tce_functions_questions.php line 85
F_question_get_data(mixed $question_id) : array<string|int, mixed>
Parameters
- $question_id : mixed: (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()
File: tce_functions_questions.php line 113
F_question_delete(mixed $question_id, mixed $subject_id) : mixed
Parameters
- $question_id : mixed: (int) question ID
- $subject_id : mixed: (int) subject ID
Tags
- author: Nicola Asuni
- since: 2008-11-26
F_question_copy()
File: tce_functions_questions.php line 170
F_question_copy(mixed $question_id, mixed $new_subject_id) : mixed
Parameters
- $question_id : mixed: (int) question ID
- $new_subject_id : mixed: (int) new subject ID
Tags
- author: Nicola Asuni
- since: 2008-11-26
tcecodeEditorTagButtons()
File: tce_functions_tcecode_editor.php line 32
tcecodeEditorTagButtons(mixed $callingform, mixed $callingfield) : XHTML
Parameters
- $callingform : mixed: (string) name of calling xhtml form
- $callingfield : mixed: (string) name of calling form field (textarea where output code will be sent)
Tags
- author: Nicola Asuni
- since: 2006-03-07
Return values
XHTML —
string
getImageButton()
File: tce_functions_tcecode_editor.php line 196
getImageButton(mixed $name, mixed $tag, mixed $image[, mixed $onclick = '' ][, mixed $accesskey = '' ]) : XHTML
Parameters
- $name : mixed: (string) name of the button
- $tag : mixed: (string) tag value
- $image : mixed: (string) image file of button
- $onclick : mixed = ‘’: (string) default onclick action
- $accesskey : mixed = ‘’: (string) accesskey: character for keyboard shortcut
Tags
- author: Nicola Asuni
- since: 2006-03-07
Return values
XHTML —
string
F_select_test()
File: tce_functions_test_select.php line 34
F_select_test(mixed $order_field, mixed $orderdir, mixed $firstrow, mixed $rowsperpage[, mixed $andwhere = '' ][, mixed $searchterms = '' ]) : true
Parameters
- $order_field : mixed: (string) order by column name
- $orderdir : mixed: (string) oreder direction
- $firstrow : mixed: (string) number of first row to display
- $rowsperpage : mixed: (string) number of rows per page
- $andwhere : mixed = ‘’: (string) additional SQL WHERE query conditions
- $searchterms : mixed = ‘’: (string) search terms
Tags
- author: Nicola Asuni
Return values
true
F_show_select_test()
File: tce_functions_test_select.php line 53
F_show_select_test(mixed $order_field, mixed $orderdir, mixed $firstrow, mixed $rowsperpage[, mixed $andwhere = '' ][, mixed $searchterms = '' ]) : false
Parameters
- $order_field : mixed: (string) Order by column name.
- $orderdir : mixed: (int) Order direction.
- $firstrow : mixed: (int) Number of first row to display.
- $rowsperpage : mixed: (int) Number of rows per page.
- $andwhere : mixed = ‘’: (string) Additional SQL WHERE query conditions.
- $searchterms : mixed = ‘’: (string) Search terms.
Tags
- author: Nicola Asuni
Return values
false —
in case of empty database, true otherwise
F_show_select_test_popup()
File: tce_functions_test_select.php line 350
F_show_select_test_popup(mixed $order_field, mixed $orderdir, mixed $firstrow, mixed $rowsperpage[, mixed $andwhere = '' ][, mixed $searchterms = '' ][, string $cid = 0 ]) : false
Parameters
- $order_field : mixed: (string) Order by column name.
- $orderdir : mixed: (int) Order direction.
- $firstrow : mixed: (int) Number of first row to display.
- $rowsperpage : mixed: (int) Number of rows per page.
- $andwhere : mixed = ‘’: (string) Additional SQL WHERE query conditions.
- $searchterms : mixed = ‘’: (string) Search terms.
- $cid : string = 0: ID of the calling form field.
Tags
- author: Nicola Asuni
- since: 2012-04-14
Return values
false —
in case of empty database, true otherwise
F_isTestOnSSLCerts()
File: tce_functions_test_select.php line 603
F_isTestOnSSLCerts(mixed $test_id, mixed $ssl_id) : bool
Parameters
- $test_id : mixed: (int) test ID
- $ssl_id : mixed: (int) SSL Certificate ID
Tags
- since: 12.1.000 (2013-07-09)
Return values
bool —
true/false
F_is_allowed_upload()
File: tce_functions_upload.php line 30
F_is_allowed_upload(mixed $filename) : true
Parameters
- $filename : mixed: (string) the filename
Tags
- author: Nicola Asuni
- since: 2001-11-19
Return values
true —
in case of allowed file type, false otherwise
F_upload_file()
File: tce_functions_upload.php line 49
F_upload_file(mixed $fieldname, mixed $uploaddir) : mixed
Parameters
- $fieldname : mixed: (string) form field name containing the source file path
- $uploaddir : mixed: (string) upload directory
Tags
- author: Nicola Asuni
- since: 2010-06-12
Return values
mixed —
file name or false in case of error
F_read_file_size()
File: tce_functions_upload.php line 78
F_read_file_size(mixed $filetocheck) : mixed
Parameters
- $filetocheck : mixed: (string) file to check (local path or URL)
Tags
- author: Nicola Asuni
- since: 2001-11-19
Return values
mixed —
file size in bytes or false in case of error
F_select_user()
File: tce_functions_user_select.php line 36
F_select_user(mixed $order_field, mixed $orderdir, mixed $firstrow, mixed $rowsperpage[, mixed $group_id = 0 ][, mixed $andwhere = '' ][, mixed $searchterms = '' ]) : true
Parameters
- $order_field : mixed: (string) order by column name
- $orderdir : mixed: (string) oreder direction
- $firstrow : mixed: (string) number of first row to display
- $rowsperpage : mixed: (string) number of rows per page
- $group_id : mixed = 0: (int) id of the group (default = 0 = no specific group selected)
- $andwhere : mixed = ‘’: (string) additional SQL WHERE query conditions
- $searchterms : mixed = ‘’: (string) search terms
Tags
- author: Nicola Asuni
- since: 2001-09-13
Return values
true
F_show_select_user()
File: tce_functions_user_select.php line 64
F_show_select_user(mixed $order_field, mixed $orderdir, mixed $firstrow, mixed $rowsperpage[, mixed $group_id = 0 ][, mixed $andwhere = '' ][, mixed $searchterms = '' ]) : false
Parameters
- $order_field : mixed: (string) Order by column name.
- $orderdir : mixed: (int) Order direction.
- $firstrow : mixed: (int) Number of first row to display.
- $rowsperpage : mixed: (int) Number of rows per page.
- $group_id : mixed = 0: (int) ID of the group (default = 0 = no specific group selected).
- $andwhere : mixed = ‘’: (string) Additional SQL WHERE query conditions.
- $searchterms : mixed = ‘’: (string) Search terms.
Tags
- author: Nicola Asuni
- since: 2001-09-13
Return values
false —
in case of empty database, true otherwise
F_show_select_user_popup()
File: tce_functions_user_select.php line 489
F_show_select_user_popup(mixed $order_field, mixed $orderdir, mixed $firstrow, mixed $rowsperpage[, mixed $group_id = 0 ][, mixed $andwhere = '' ][, mixed $searchterms = '' ][, string $cid = 0 ]) : false
Parameters
- $order_field : mixed: (string) Order by column name.
- $orderdir : mixed: (int) Order direction.
- $firstrow : mixed: (int) Number of first row to display.
- $rowsperpage : mixed: (int) Number of rows per page.
- $group_id : mixed = 0: (int) ID of the group (default = 0 = no specific group selected).
- $andwhere : mixed = ‘’: (string) Additional SQL WHERE query conditions.
- $searchterms : mixed = ‘’: (string) Search terms.
- $cid : string = 0: ID of the calling form field.
Tags
- author: Nicola Asuni
- since: 2012-04-14
Return values
false —
in case of empty database, true otherwise
F_isTestOnGroup()
File: tce_functions_user_select.php line 824
F_isTestOnGroup(mixed $test_id, mixed $group_id) : bool
Parameters
- $test_id : mixed: (int) test ID
- $group_id : mixed: (int) group ID
Tags
- since: 11.1.003 (2010-10-05)
Return values
bool —
true/false
F_isUserOnGroup()
File: tce_functions_user_select.php line 846
F_isUserOnGroup(mixed $user_id, mixed $group_id) : bool
Parameters
- $user_id : mixed: (int) user ID
- $group_id : mixed: (int) group ID
Tags
- since: 11.1.003 (2010-10-05)
Return values
bool —
true/false
F_isAuthorizedEditorForGroup()
File: tce_functions_user_select.php line 867
F_isAuthorizedEditorForGroup(mixed $group_id) : bool
Parameters
- $group_id : mixed: (int) group ID
Tags
- since: 11.1.003 (2010-10-05)
Return values
bool —
true/false
F_isAuthorizedEditorForUser()
File: tce_functions_user_select.php line 885
F_isAuthorizedEditorForUser(mixed $user_id) : bool
Parameters
- $user_id : mixed: (int) user ID
Tags
- since: 11.1.003 (2010-10-05)
Return values
bool —
true/false
F_user_group_select_sql()
File: tce_functions_user_select.php line 923
F_user_group_select_sql([mixed $where = '' ]) : sql
Parameters
- $where : mixed = ‘’: (string) filters to add on WHERE clause
Tags
- since: 11.1.003 (2010-10-05)
Return values
sql —
selection string
F_user_group_select()
File: tce_functions_user_select.php line 950
F_user_group_select([mixed $name = 'group_id' ]) : table
Parameters
- $name : mixed = ‘group_id’: (string) name of the select field
Return values
table —
header element string
F_get_user_groups()
File: tce_functions_user_select.php line 990
F_get_user_groups(mixed $user_id) : array<string|int, mixed>
Parameters
- $user_id : mixed: (int) user ID
Return values
array<string|int, mixed> —
containing user’s groups IDs
F_getUIDfromRegnum()
File: tce_functions_user_select.php line 1015
F_getUIDfromRegnum(mixed $regnum) : int
Parameters
- $regnum : mixed
Tags
- since: 11.3.005 (2012-07-31)
Return values
int —
User ID or 0 in case of error.
F_show_online_users()
File: tce_functions_users_online.php line 34
F_show_online_users(mixed $wherequery, mixed $order_field, mixed $orderdir, mixed $firstrow, mixed $rowsperpage) : false
Parameters
- $wherequery : mixed: (string) users selection query
- $order_field : mixed: (string) order by column name
- $orderdir : mixed: (string) oreder direction
- $firstrow : mixed: (string) number of first row to display
- $rowsperpage : mixed: (string) number of rows per page
Tags
- author: Nicola Asuni
- since: 2001-10-18
Return values
false —
in case of empty database, true otherwise
F_list_online_users()
File: tce_functions_users_online.php line 53
F_list_online_users(mixed $wherequery, mixed $order_field, mixed $orderdir, mixed $firstrow, mixed $rowsperpage) : false
Parameters
- $wherequery : mixed: (string) users selection query
- $order_field : mixed: (string) order by column name
- $orderdir : mixed: (int) oreder direction
- $firstrow : mixed: (int) number of first row to display
- $rowsperpage : mixed: (int) number of rows per page
Tags
- author: Nicola Asuni
- since: 2001-10-18
Return values
false —
in case of empty database, true otherwise
F_TSVQuestionImporter()
File: tce_import_questions.php line 153
F_TSVQuestionImporter(mixed $tsvfile) : bool
The format of TSV is the same obtained by exporting data from TCExam interface.
Parameters
- $tsvfile : mixed: (string) TSV (tab delimited text) file name
Return values
bool —
TRUE in case of success, FALSE otherwise
F_import_tsv_users()
File: tce_import_users.php line 602
F_import_tsv_users(mixed $tsvfile) : bool
The format of TSV is the same obtained by exporting data from Users Selection Form.
Parameters
- $tsvfile : mixed: (string) TSV (tab delimited text) file name
Return values
bool —
TRUE in case of success, FALSE otherwise
F_show_select_questions()
File: tce_show_all_questions.php line 480
F_show_select_questions(mixed $wherequery, mixed $subject_module_id, mixed $subject_id, mixed $order_field, mixed $orderdir, mixed $firstrow, mixed $rowsperpage[, mixed $hide_answers = false ]) : false
Parameters
- $wherequery : mixed: (string) question selection query
- $subject_module_id : mixed: (string) module ID
- $subject_id : mixed: (string) topic ID
- $order_field : mixed: (string) order by column name
- $orderdir : mixed: (int) oreder direction
- $firstrow : mixed: (int) number of first row to display
- $rowsperpage : mixed: (int) number of rows per page
- $hide_answers : mixed = false: (boolean) if true hide answers
Tags
- author: Nicola Asuni
- since: 2005-07-06
Return values
false —
in case of empty database, true otherwise
F_tsv_export_questions()
File: tce_tsv_questions.php line 79
F_tsv_export_questions(mixed $module_id, mixed $subject_id, mixed $expmode) : TSV
Parameters
- $module_id : mixed: (int) module ID
- $subject_id : mixed: (int) topic ID
- $expmode : mixed: (int) export mode: 1 = selected topic; 2 = selected module; 3 = all modules.
Return values
TSV —
data
F_tsv_export_users()
File: tce_tsv_users.php line 52
F_tsv_export_users() : TSV
Tags
- author: Nicola Asuni
- since: 2006-03-30
Return values
TSV —
data
F_xml_export_question_stats()
File: tce_xml_question_stats.php line 95
F_xml_export_question_stats(mixed $test_id) : XML
Parameters
- $test_id : mixed: (int) test ID
Tags
- author: Nicola Asuni
- since: 2010-05-10
Return values
XML —
data
F_xml_export_questions()
File: tce_xml_questions.php line 110
F_xml_export_questions(mixed $module_id, mixed $subject_id, mixed $expmode) : XML
Parameters
- $module_id : mixed: (int) module ID
- $subject_id : mixed: (int) topic ID
- $expmode : mixed: (int) export mode: 1 = selected topic; 2 = selected module; 3 = all modules.
Tags
- author: Nicola Asuni
- since: 2006-03-06
Return values
XML —
data
F_xml_export_results()
File: tce_xml_results.php line 115
F_xml_export_results(mixed $test_id[, mixed $group_id = 0 ][, mixed $user_id = 0 ][, mixed $startdate = 0 ][, mixed $enddate = 0 ][, mixed $display_mode = 1 ]) : XML
Parameters
- $test_id : mixed: (int) test ID.
- $group_id : mixed = 0: (int) group ID - if greater than zero, filter stats for the specified user group.
- $user_id : mixed = 0: (int) user ID - if greater than zero, filter stats for the specified user.
- $startdate : mixed = 0: (int) start date ID - if greater than zero, filter stats for the specified starting date
- $enddate : mixed = 0: (int) end date ID - if greater than zero, filter stats for the specified ending date
- $display_mode : mixed = 1: (int) display mode: 0 = disabled; 1 = minimum; 2 = module; 3 = subject; 4 = question; 5 = answer.
Tags
- author: Nicola Asuni
Return values
XML —
data
F_xml_export_user_results()
File: tce_xml_user_results.php line 124
F_xml_export_user_results(mixed $user_id, mixed $startdate, mixed $enddate, mixed $order_field) : XML
Parameters
- $user_id : mixed: (int) user ID - if greater than zero, filter stats for the specified user.
- $startdate : mixed: (string) start date ID - if greater than zero, filter stats for the specified starting date
- $enddate : mixed: (string) end date ID - if greater than zero, filter stats for the specified ending date
- $order_field : mixed: (string) Ordering fields for SQL query.
Tags
- author: Nicola Asuni
Return values
XML —
data
F_xml_export_users()
File: tce_xml_users.php line 80
F_xml_export_users() : XML
Tags
- author: Nicola Asuni
- since: 2006-03-17
Return values
XML —
data
F_select_modules_sql()
File: tce_functions_auth_sql.php line 30
F_select_modules_sql([mixed $andwhere = '' ]) : string
Parameters
- $andwhere : mixed = ‘’: (string) additional WHERE statements (e.g.: “module_enabled=‘1’”)
Tags
- author: Nicola Asuni
- since: 2010-06-16
Return values
string —
sql statement
F_select_subjects_sql()
File: tce_functions_auth_sql.php line 56
F_select_subjects_sql([mixed $andwhere = '' ]) : string
Parameters
- $andwhere : mixed = ‘’: (string) additional WHERE statements (e.g.: “subject_enabled=‘1’”)
Tags
- author: Nicola Asuni
- since: 2006-03-12
Return values
string —
sql statement
F_select_module_subjects_sql()
File: tce_functions_auth_sql.php line 68
F_select_module_subjects_sql([mixed $andwhere = '' ]) : string
Parameters
- $andwhere : mixed = ‘’: (string) additional WHERE statements (e.g.: “subject_enabled=‘1’”)
Tags
- author: Nicola Asuni
- since: 2008-11-28
Return values
string —
sql statement
F_select_tests_sql()
File: tce_functions_auth_sql.php line 93
F_select_tests_sql() : string
Tags
- author: Nicola Asuni
- since: 2006-03-12
Return values
string —
sql statement
F_select_executed_tests_sql()
File: tce_functions_auth_sql.php line 111
F_select_executed_tests_sql() : string
Tags
- author: Nicola Asuni
- since: 2006-06-26
Return values
string —
sql statement
F_getArrayStatistics()
File: tce_functions_statistics.php line 30
F_getArrayStatistics(mixed $data) : array<string|int, mixed>
Parameters
- $data : mixed: (array) input data as bidimesional array. The first dimension is a set of data, the second contains data.
Tags
- author: Nicola Asuni
- since: 2008-12-25
Return values
array<string|int, mixed> —
of statistical results. The keys of the input data are peserved.
F_getSVGGraphCode()
File: tce_functions_svg_graph.php line 30
F_getSVGGraphCode(mixed $p[, mixed $w = '' ][, mixed $h = '' ]) : converted
Parameters
- $p : mixed: (string) String containing point data.
- $w : mixed = ‘’: (int) Graph width.
- $h : mixed = ‘’: (int) Graph height.
Return values
converted —
string
F_getSVGGraph()
File: tce_functions_svg_graph.php line 157
F_getSVGGraph(mixed $p[, mixed $w = '' ][, mixed $h = '' ]) : converted
Parameters
- $p : mixed: (string) String containing point data.
- $w : mixed = ‘’: (int) Graph width.
- $h : mixed = ‘’: (int) Graph height.
Return values
converted —
string