## [com.tecnick.tcexam.shared] element index

### Package indexes

- com.tecnick.tcexam.admin
- com.tecnick.tcexam.public
- com.tecnick.tcpdf
- PHPMailer
- com.tecnick.tcexam.shared.mysql
- com.tecnick.tcexam.shared.postgresql
- com.tecnick.tmxphpbridge

All elements
f
top

FPDF_FONTPATH
  FPDF_FONTPATH in tce_paths.php
  full path to PDF fonts directory
F_addLogAnswers
  F_addLogAnswers() in tce_functions_test.php
  Add specified answers on tce_tests_logs_answer table.
F_checkTestStatus
  F_checkTestStatus() in tce_functions_test.php
  Check and returns specific test status for the specified user.
F_check_fields_format
  F_check_fields_format() in tce_functions_form.php
  Check fields format using regular expression comparisons.
  Returns a string containing a list of wrong fields (comma separated).
F_check_form_fields
  F_check_form_fields() in tce_functions_form.php
  Check Form Fields.
F_check_required_fields
  F_check_required_fields() in tce_functions_form.php
  Check Required Form Fields.
  Returns a string containing a list of missing fields (comma separated).
F_check_unique
  F_check_unique() in tce_functions_general.php
  Check if specified fields are unique on table.
F_close_button
  F_close_button() in tce_functions_form.php
  Returns XHTML code string to display a window close button
F_compact_string
  F_compact_string() in tce_functions_general.php
  Remove the following characters:
F_count_rows
  F_count_rows() in tce_functions_general.php
  Count rows of the given table.
F_createTest
  F_createTest() in tce_functions_test.php
  Create user's test and returns TRUE on success.
F_decode_form_fields
  F_decode_form_fields() in tce_functions_form.php
  Returns an array containing form fields.
F_decode_tcecode
  F_decode_tcecode() in tce_functions_tcecode.php
  Returns XHTML code from text marked-up with TCExam Code Tags
F_display_db_error
  F_display_db_error() in tce_functions_errmsg.php
  Print the database error message.
F_empty_to_null
  F_empty_to_null() in tce_functions_general.php
  Prepare field value for SQL query.
  Returns the quoted string if not empty, NULL otherwise.
F_error_handler
  F_error_handler() in tce_functions_errmsg.php
  Custom PHP error handler function.
F_executeTest
  F_executeTest() in tce_functions_test.php
  Returns true if the current user is authorized to execute the selected test.
  Generates the test if it's not already generated.
F_getAuthorizedUsers
  F_getAuthorizedUsers() in tce_functions_authorization.php
  Returns a comma separated string of ID of the users that belong to the same groups.
F_getBoolean
  F_getBoolean() in tce_functions_general.php
  Returns boolean value from string.
  This function is needed to get the right boolean value from boolean field returned by PostgreSQL query.
F_getFirstTestUser
  F_getFirstTestUser() in tce_functions_test.php
  Returns the ID of the tce_tests_users table corresponding to a complete test of $test_id type.
F_getQuestionTestStat
  F_getQuestionTestStat() in tce_functions_test_stats.php
  Returns test data structure for selected question:
F_getTestBasicScore
  F_getTestBasicScore() in tce_functions_test.php
  Returns the basic score for right questions.
F_getTestData
  F_getTestData() in tce_functions_test.php
  Returns the test data.
F_getTestDuration
  F_getTestDuration() in tce_functions_test.php
  Returns the test duration time in seconds.
F_getTestName
  F_getTestName() in tce_functions_test.php
  Returns the test name.
F_getTestStartTime
  F_getTestStartTime() in tce_functions_test.php
  Returns the user's test start time in seconds since UNIX epoch (1970-01-01 00:00:00).
F_getUserTests
  F_getUserTests() in tce_functions_test.php
  Returns an XHTML unordered list of user's enabled tests.
F_getUserTestStat
  F_getUserTestStat() in tce_functions_test_stats.php
  Returns test data structure for selected user:
F_isAuthorizedUser
  F_isAuthorizedUser() in tce_functions_authorization.php
  Returns true if the current user is authorized to update and delete the selected database record.
F_isRightTestlogUser
  F_isRightTestlogUser() in tce_functions_test.php
  Checks if the current user is the right testlog_id owner.
  This function is used for security reasons.
F_isValidIP
  F_isValidIP() in tce_functions_test.php
  Check if user's IP is valid over test IP range
F_isValidTestUser
  F_isValidTestUser() in tce_functions_test.php
  Check if user is authorized to execute the specified test
F_lockUserTest
  F_lockUserTest() in tce_functions_test_stats.php
  Lock the user's test.
F_loginForm
  F_loginForm() in tce_functions_authorization.php
  Returns XHTML / CSS formatted string for login form.
F_login_form
  F_login_form() in tce_functions_authorization.php
  Display login page.
  NOTE: This function calls exit() after execution.
F_logout_form
  F_logout_form() in tce_functions_authorization.php
  Display logout form.
F_logout_page
  F_logout_page() in tce_functions_authorization.php
  Display logout page.
  NOTE: This function calls exit() after execution.
F_newTestLog
  F_newTestLog() in tce_functions_test.php
  Creates a new tce_tests_logs table entry and returns inserted ID.
F_objects_callback
  F_objects_callback() in tce_functions_tcecode.php
  Callback function for preg_replace_callback.
F_objects_replacement
  F_objects_replacement() in tce_functions_tcecode.php
  Returns the xhtml code needed to display the object by MIME type.
F_printTestInfo
  F_printTestInfo() in tce_functions_test.php
  Returns an XHTML string containing specified test information.
F_print_error
  F_print_error() in tce_functions_errmsg.php
  Handle error/warning/system messages.
F_questionForm
  F_questionForm() in tce_functions_test.php
  Returns a formatted XHTML form code to handle the specified question.
F_questionsMenu
  F_questionsMenu() in tce_functions_test.php
  Return a formatted XHTML ordered list containing test questions menu.
F_remove_tcecode
  F_remove_tcecode() in tce_functions_tcecode.php
  Returns specified string without tcecode mark-up tags
F_replace_angulars
  F_replace_angulars() in tce_functions_general.php
  Replace angular parenthesis with html equivalents (html entities).
F_selectAnswers
  F_selectAnswers() in tce_functions_test.php
  Return an array containing answer_id field of selected answers.
F_session_close
  F_session_close() in tce_functions_session.php
  Close session.
  Call garbage collector function to remove expired sessions.
F_session_destroy
  F_session_destroy() in tce_functions_session.php
  Deletes the specific session.
F_session_gc
  F_session_gc() in tce_functions_session.php
  Garbage collector.
  Deletes expired sessions.
  NOTE: while time() function returns a 32 bit integer, it works fine until year 2038.
F_session_open
  F_session_open() in tce_functions_session.php
  Open session.
F_session_read
  F_session_read() in tce_functions_session.php
  Get session data.
F_session_string_to_array
  F_session_string_to_array() in tce_functions_session.php
  Convert encoded session string data to array.
F_session_write
  F_session_write() in tce_functions_session.php
  Insert or Update session.
F_show_page_navigator
  F_show_page_navigator() in tce_functions_page.php
  Display Pages navigation index.
F_stripslashes_formfields
  F_stripslashes_formfields() in tce_functions_form.php
  Strip slashes from posted form fields.
F_submit_button
  F_submit_button() in tce_functions_form.php
  Returns XHTML code string to display Form Submit Button.
F_substrHTML
  F_substrHTML() in tce_functions_tcecode.php
  Return a substring of XHTML code while making sure no html tags are chopped.
F_substr_utf8
  F_substr_utf8() in tce_functions_general.php
  Return part of a string removing remaining non-ASCII characters.
F_tcecodeToLine
  F_tcecodeToLine() in tce_functions_tcecode.php
  Converts tcecode text to a single XHTML string removing some eobjects.
F_tcecodeToTitle
  F_tcecodeToTitle() in tce_functions_tcecode.php
  Converts tcecode text to simple string for XHTML title attribute.
F_terminateUserTest
  F_terminateUserTest() in tce_functions_test.php
  Terminate user's test
F_testComment
  F_testComment() in tce_functions_test.php
  Display a textarea for user's comment.
F_testInfoLink
  F_testInfoLink() in tce_functions_test.php
  Returns XHTML link to open test info popup.
F_text_to_xml
  F_text_to_xml() in tce_functions_general.php
  Escape some special characters (&lt; &gt; &amp;).
F_twoColRow
  F_twoColRow() in tce_functions_test.php
  Return a formatted XHTML row to display 2 columns data.
F_updateQuestionLog
  F_updateQuestionLog() in tce_functions_test.php
  Updates question log data (register user's answers).
F_updateTestComment
  F_updateTestComment() in tce_functions_test.php
  Updates user's test comment.
F_xml_to_text
  F_xml_to_text() in tce_functions_general.php
  Unescape some special characters (&lt; &gt; &amp;).
F_zero_to_null
  F_zero_to_null() in tce_functions_general.php
  Prepare field value for SQL query.
  Returns the num if different from zero, NULL otherwise.

g
top

guide_br.php
  guide_br.php in guide_br.php
guide_en.php
  guide_en.php in guide_en.php
guide_es.php
  guide_es.php in guide_es.php
guide_it.php
  guide_it.php in guide_it.php
guide_tr.php
  guide_tr.php in guide_tr.php

k
top

K_ANSWER_TEXTAREA_COLS
  K_ANSWER_TEXTAREA_COLS in tce_config.php
  number of columns for answer textarea
K_ANSWER_TEXTAREA_ROWS
  K_ANSWER_TEXTAREA_ROWS in tce_config.php
  number of rows for answer textarea
K_BLANK_IMAGE
  K_BLANK_IMAGE in tce_paths.php
  full path to a blank image
K_COOKIE_DOMAIN
  K_COOKIE_DOMAIN in tce_config.php
  cookie domain
K_COOKIE_EXPIRE
  K_COOKIE_EXPIRE in tce_config.php
  expiration time for cookies
K_COOKIE_PATH
  K_COOKIE_PATH in tce_config.php
  cookie path
K_COOKIE_SECURE
  K_COOKIE_SECURE in tce_config.php
  if true use secure cookies
K_DATABASE_HOST
  K_DATABASE_HOST in tce_db_config.php
  database Host name (eg: localhost)
K_DATABASE_NAME
  K_DATABASE_NAME in tce_db_config.php
  database name (tcexam)
K_DATABASE_PORT
  K_DATABASE_PORT in tce_db_config.php
  database port (eg: 3306 or 5432)
K_DATABASE_TYPE
  K_DATABASE_TYPE in tce_db_config.php
  database type (POSTGRESQL or MYSQL)
K_DATABASE_USER_NAME
  K_DATABASE_USER_NAME in tce_db_config.php
  database user name
K_DATABASE_USER_PASSWORD
  K_DATABASE_USER_PASSWORD in tce_db_config.php
  database user password
K_ENABLE_JSERRORS
  K_ENABLE_JSERRORS in tce_config.php
  if true display messages and errors on Javascript popup window
K_ERROR_TYPES
  K_ERROR_TYPES in tce_config.php
  define error reporting types for debug
K_LANGUAGE
  K_LANGUAGE in tce_config.php
  2-letters language code
K_PATH_CACHE
  K_PATH_CACHE in tce_paths.php
  full path to cache directory
K_PATH_FONTS
  K_PATH_FONTS in tce_paths.php
  full path to fonts directory
K_PATH_HOST
  K_PATH_HOST in tce_paths.php
  host URL (e.g.: "http://www.yoursite.com")
K_PATH_IMAGES
  K_PATH_IMAGES in tce_paths.php
  relative path to images directory
K_PATH_JSCRIPTS
  K_PATH_JSCRIPTS in tce_paths.php
  relative path to javascript directory
K_PATH_MAIN
  K_PATH_MAIN in tce_paths.php
  real full path where this program is installed (e.g: "/var/www/html/TCExam/")
K_PATH_PUBLIC_CODE
  K_PATH_PUBLIC_CODE in tce_paths.php
  path to public code
K_PATH_PUBLIC_CODE_REAL
  K_PATH_PUBLIC_CODE_REAL in tce_paths.php
  server path to public code
K_PATH_SHARED_JSCRIPTS
  K_PATH_SHARED_JSCRIPTS in tce_paths.php
  relative path to shared javascript directory
K_PATH_STYLE_SHEETS
  K_PATH_STYLE_SHEETS in tce_paths.php
  relative path to stylesheets directory
K_PATH_TCEXAM
  K_PATH_TCEXAM in tce_paths.php
  relative URL where this program is installed (e.g.: "/")
K_PATH_TMX_FILE
  K_PATH_TMX_FILE in tce_paths.php
  full path to TMX language file
K_PATH_URL_CACHE
  K_PATH_URL_CACHE in tce_paths.php
  url path to to cache directory
K_QUESTION_DIFFICULTY_LEVELS
  K_QUESTION_DIFFICULTY_LEVELS in tce_config.php
  number of difficulty levels for questions
K_QUESTION_LINE_MAX_LENGTH
  K_QUESTION_LINE_MAX_LENGTH in tce_config.php
  define max line length in chars for question navigator on test execution interface
K_RANDOM_SECURITY
  K_RANDOM_SECURITY in tce_general_constants.php
  string used as a seed for some security code generation please change this value and keep it secret
K_REDIRECT_LOGIN_MODE
  K_REDIRECT_LOGIN_MODE in tce_config.php
  various pages redirection modes after login(valid values are 1,2 and 3).
K_SECONDS_IN_DAY
  K_SECONDS_IN_DAY in tce_general_constants.php
  number of seconds in one day
K_SECONDS_IN_HOUR
  K_SECONDS_IN_HOUR in tce_general_constants.php
  number of seconds in one hour
K_SECONDS_IN_MINUTE
  K_SECONDS_IN_MINUTE in tce_general_constants.php
  number of seconds in one minute
K_SECONDS_IN_MONTH
  K_SECONDS_IN_MONTH in tce_general_constants.php
  number of seconds in one month
K_SECONDS_IN_WEEK
  K_SECONDS_IN_WEEK in tce_general_constants.php
  number of seconds in one week
K_SECONDS_IN_YEAR
  K_SECONDS_IN_YEAR in tce_general_constants.php
  number of seconds in one year
K_SESSION_LIFE
  K_SESSION_LIFE in tce_config.php
  user's session life time in seconds
K_STANDARD_PORT
  K_STANDARD_PORT in tce_paths.php
  standard port for http (80) or https (443)
K_TABLE_ANSWERS
  K_TABLE_ANSWERS in tce_db_config.php
K_TABLE_GROUPS
  K_TABLE_GROUPS in tce_db_config.php
K_TABLE_LOG_ANSWER
  K_TABLE_LOG_ANSWER in tce_db_config.php
K_TABLE_PREFIX
  K_TABLE_PREFIX in tce_db_config.php
  prefix for database tables names
K_TABLE_QUESTIONS
  K_TABLE_QUESTIONS in tce_db_config.php
K_TABLE_SESSIONS
  K_TABLE_SESSIONS in tce_db_config.php
K_TABLE_SUBJECTS
  K_TABLE_SUBJECTS in tce_db_config.php
K_TABLE_SUBJECT_SET
  K_TABLE_SUBJECT_SET in tce_db_config.php
K_TABLE_TESTS
  K_TABLE_TESTS in tce_db_config.php
K_TABLE_TESTS_LOGS
  K_TABLE_TESTS_LOGS in tce_db_config.php
K_TABLE_TEST_GROUPS
  K_TABLE_TEST_GROUPS in tce_db_config.php
K_TABLE_TEST_SUBJSET
  K_TABLE_TEST_SUBJSET in tce_db_config.php
K_TABLE_TEST_USER
  K_TABLE_TEST_USER in tce_db_config.php
K_TABLE_USERGROUP
  K_TABLE_USERGROUP in tce_db_config.php
K_TABLE_USERS
  K_TABLE_USERS in tce_db_config.php
K_TCEXAM_VERSION
  K_TCEXAM_VERSION in tce_config.php
  TCExam version (do not change)
K_TEST_COMMENT
  K_TEST_COMMENT in tce_config.php
  if true allows the user to leave a comment on test
K_TEST_INFO_HEIGHT
  K_TEST_INFO_HEIGHT in tce_config.php
  popup window height in pixels for test info
K_TEST_INFO_WIDTH
  K_TEST_INFO_WIDTH in tce_config.php
  popup window width in pixels for test info
K_TIMESTAMP_FORMAT
  K_TIMESTAMP_FORMAT in tce_config.php
  define timestamp format using PHP notation
K_USE_ERROR_LOG
  K_USE_ERROR_LOG in tce_config.php
  enable error logs (../log/tce_errors.log)

p
top

pdfLink
  pdfLink() in tce_functions_test_stats.php
  Returns an URL to open the PDF generator page.

t
top

tce_authorization.php
  tce_authorization.php in tce_authorization.php
tce_db_connect.php
  tce_db_connect.php in tce_db_connect.php
tce_db_dal.php
  tce_db_dal.php in tce_db_dal.php
tce_functions_authorization.php
  tce_functions_authorization.php in tce_functions_authorization.php
tce_functions_errmsg.php
  tce_functions_errmsg.php in tce_functions_errmsg.php
tce_functions_form.php
  tce_functions_form.php in tce_functions_form.php
tce_functions_general.php
  tce_functions_general.php in tce_functions_general.php
tce_functions_page.php
  tce_functions_page.php in tce_functions_page.php
tce_functions_session.php
  tce_functions_session.php in tce_functions_session.php
tce_functions_tcecode.php
  tce_functions_tcecode.php in tce_functions_tcecode.php
tce_functions_test.php
  tce_functions_test.php in tce_functions_test.php
tce_functions_test_stats.php
  tce_functions_test_stats.php in tce_functions_test_stats.php
tce_page_timer.php
  tce_page_timer.php in tce_page_timer.php
tce_page_userbar.php
  tce_page_userbar.php in tce_page_userbar.php
tce_config.php
  tce_config.php in tce_config.php
tce_db_config.php
  tce_db_config.php in tce_db_config.php
tce_email_config.php
  tce_email_config.php in tce_email_config.php
tce_general_constants.php
  tce_general_constants.php in tce_general_constants.php
tce_mime.php
  tce_mime.php in tce_mime.php
tce_paths.php
  tce_paths.php in tce_paths.php

u
top

unhtmlentities
  unhtmlentities() in tce_functions_general.php
  Reverse function for htmlentities.