Element index for package com-tecnick-tcexam-shared
[ f ]
[ k ]
[ p ]
[ s ]
[ t ]
[ u ]
f
- F_addLogAnswers
- in file tce_functions_test.php, function F_addLogAnswers()
Add specified answers on tce_tests_logs_answer table.
- F_addQuestionAnswers
- in file tce_functions_test.php, function F_addQuestionAnswers()
Add answers to selected question.
- F_altLogin
- in file tce_altauth.php, function F_altLogin()
Alternate Login.
- F_checkTestStatus
- in file tce_functions_test.php, function F_checkTestStatus()
Check and returns specific test status for the specified user.
- F_check_fields_format
- in file tce_functions_form.php, function F_check_fields_format()
Check fields format using regular expression comparisons. Returns a string containing a list of wrong fields (comma separated).
- F_check_form_fields
- in file tce_functions_form.php, function F_check_form_fields()
Check Form Fields.
- F_check_required_fields
- in file tce_functions_form.php, function F_check_required_fields()
Check Required Form Fields. Returns a string containing a list of missing fields (comma separated).
- F_check_unique
- in file tce_functions_general.php, function F_check_unique()
Check if specified fields are unique on table.
- F_close_button
- in file tce_functions_form.php, function F_close_button()
Returns XHTML code string to display a window close button
- F_compact_string
- in file tce_functions_general.php, function F_compact_string()
Remove the following characters:
- F_count_rows
- in file tce_functions_general.php, function F_count_rows()
Count rows of the given table.
- F_createTest
- in file tce_functions_test.php, function F_createTest()
Create user's test and returns TRUE on success.
- F_decode_form_fields
- in file tce_functions_form.php, function F_decode_form_fields()
Returns an array containing form fields.
- F_decode_tcecode
- in file tce_functions_tcecode.php, function F_decode_tcecode()
Returns XHTML code from text marked-up with TCExam Code Tags
- F_display_db_error
- in file tce_functions_errmsg.php, function F_display_db_error()
Print the database error message.
- F_empty_to_null
- in file tce_functions_general.php, function F_empty_to_null()
Prepare field value for SQL query. Returns the quoted string if not empty, NULL otherwise.
- F_error_handler
- in file tce_functions_errmsg.php, function F_error_handler()
Custom PHP error handler function.
- F_executeTest
- in file tce_functions_test.php, function F_executeTest()
Returns true if the current user is authorized to execute the selected test. Generates the test if it's not already generated.
- F_getAuthorizedUsers
- in file tce_functions_authorization.php, function F_getAuthorizedUsers()
Returns a comma separated string of ID of the users that belong to the same groups.
- F_getBoolean
- in file tce_functions_general.php, function F_getBoolean()
Returns boolean value from string. This function is needed to get the right boolean value from boolean field returned by PostgreSQL query.
- F_getFirstTestUser
- in file tce_functions_test.php, function F_getFirstTestUser()
Returns the ID of the tce_tests_users table corresponding to a complete test of $test_id type.
- F_getQuestionTestStat
- in file tce_functions_test_stats.php, function F_getQuestionTestStat()
Returns test data structure for selected question:
- F_getTestData
- in file tce_functions_test.php, function F_getTestData()
Returns the test data.
- F_getTestDuration
- in file tce_functions_test.php, function F_getTestDuration()
Returns the test duration time in seconds.
- F_getTestName
- in file tce_functions_test.php, function F_getTestName()
Returns the test name.
- F_getTestStartTime
- in file tce_functions_test.php, function F_getTestStartTime()
Returns the user's test start time in seconds since UNIX epoch (1970-01-01 00:00:00).
- F_getUserTests
- in file tce_functions_test.php, function F_getUserTests()
Returns an XHTML unordered list of user's enabled tests.
- F_getUserTestStat
- in file tce_functions_test_stats.php, function F_getUserTestStat()
Returns test data structure for selected user:
- F_html_to_text
- in file tce_functions_html2txt.php, function F_html_to_text()
Convert HTML code to Text string.
- F_isAuthorizedUser
- in file tce_functions_authorization.php, function F_isAuthorizedUser()
Returns true if the current user is authorized to update and delete the selected database record.
- F_isRightTestlogUser
- in file tce_functions_test.php, function F_isRightTestlogUser()
Checks if the current user is the right testlog_id owner. This function is used for security reasons.
- F_isValidIP
- in file tce_functions_test.php, function F_isValidIP()
Check if user's IP is valid over test IP range
- F_isValidTestUser
- in file tce_functions_test.php, function F_isValidTestUser()
Check if user is authorized to execute the specified test
- F_latex_callback
- in file tce_functions_tcecode.php, function F_latex_callback()
Callback function for preg_replace_callback (LaTeX replacement).
- F_lockUserTest
- in file tce_functions_test_stats.php, function F_lockUserTest()
Lock the user's test.
- F_loginForm
- in file tce_functions_authorization.php, function F_loginForm()
Returns XHTML / CSS formatted string for login form.
- F_login_form
- in file tce_functions_authorization.php, function F_login_form()
Display login page.
- F_logout_form
- in file tce_functions_authorization.php, function F_logout_form()
Display logout form.
- F_logout_page
- in file tce_functions_authorization.php, function F_logout_page()
Display logout page.
- F_newTestLog
- in file tce_functions_test.php, function F_newTestLog()
Creates a new tce_tests_logs table entry and returns inserted ID.
- F_objects_callback
- in file tce_functions_tcecode.php, function F_objects_callback()
Callback function for preg_replace_callback.
- F_objects_replacement
- in file tce_functions_tcecode.php, function F_objects_replacement()
Returns the xhtml code needed to display the object by MIME type.
- F_printTestInfo
- in file tce_functions_test.php, function F_printTestInfo()
Returns an XHTML string containing specified test information.
- F_print_error
- in file tce_functions_errmsg.php, function F_print_error()
Handle error/warning/system messages.
- F_questionForm
- in file tce_functions_test.php, function F_questionForm()
Returns a formatted XHTML form code to handle the specified question.
- F_questionsMenu
- in file tce_functions_test.php, function F_questionsMenu()
Return a formatted XHTML ordered list containing test questions menu.
- F_remove_tcecode
- in file tce_functions_tcecode.php, function F_remove_tcecode()
Returns specified string without tcecode mark-up tags
- F_replace_angulars
- in file tce_functions_general.php, function F_replace_angulars()
Replace angular parenthesis with html equivalents (html entities).
- F_selectAnswers
- in file tce_functions_test.php, function F_selectAnswers()
Return an array containing answer_id field of selected answers.
- F_send_user_reg_email
- in file tce_functions_user_registration.php, function F_send_user_reg_email()
Send a registration verification email to user.
- F_session_close
- in file tce_functions_session.php, function F_session_close()
Close session. Call garbage collector function to remove expired sessions.
- F_session_destroy
- in file tce_functions_session.php, function F_session_destroy()
Deletes the specific session.
- F_session_gc
- in file tce_functions_session.php, function F_session_gc()
Garbage collector. Deletes expired sessions. NOTE: while time() function returns a 32 bit integer, it works fine until year 2038.
- F_session_open
- in file tce_functions_session.php, function F_session_open()
Open session.
- F_session_read
- in file tce_functions_session.php, function F_session_read()
Get session data.
- F_session_string_to_array
- in file tce_functions_session.php, function F_session_string_to_array()
Convert encoded session string data to array.
- F_session_write
- in file tce_functions_session.php, function F_session_write()
Insert or Update session.
- F_show_page_navigator
- in file tce_functions_page.php, function F_show_page_navigator()
Display Pages navigation index.
- F_stripslashes_formfields
- in file tce_functions_form.php, function F_stripslashes_formfields()
Strip slashes from posted form fields.
- F_submit_button
- in file tce_functions_form.php, function F_submit_button()
Returns XHTML code string to display Form Submit Button.
- F_substrHTML
- in file tce_functions_tcecode.php, function F_substrHTML()
Return a substring of XHTML code while making sure no html tags are chopped.
- F_substr_utf8
- in file tce_functions_general.php, function F_substr_utf8()
Return part of a string removing remaining non-ASCII characters.
- F_tcecodeToLine
- in file tce_functions_tcecode.php, function F_tcecodeToLine()
Converts tcecode text to a single XHTML string removing some objects.
- F_tcecodeToTitle
- in file tce_functions_tcecode.php, function F_tcecodeToTitle()
Converts tcecode text to simple string for XHTML title attribute.
- F_terminateUserTest
- in file tce_functions_test.php, function F_terminateUserTest()
Terminate user's test
- F_testComment
- in file tce_functions_test.php, function F_testComment()
Display a textarea for user's comment.
- F_testInfoLink
- in file tce_functions_test.php, function F_testInfoLink()
Returns XHTML link to open test info popup.
- F_text_to_xml
- in file tce_functions_general.php, function F_text_to_xml()
Escape some special characters (< > &).
- F_twoColRow
- in file tce_functions_test.php, function F_twoColRow()
Return a formatted XHTML row to display 2 columns data.
- F_updateQuestionLog
- in file tce_functions_test.php, function F_updateQuestionLog()
Updates question log data (register user's answers).
- F_updateTestComment
- in file tce_functions_test.php, function F_updateTestComment()
Updates user's test comment.
- F_xml_to_text
- in file tce_functions_general.php, function F_xml_to_text()
Unescape some special characters (< > &).
- F_zero_to_null
- in file tce_functions_general.php, function F_zero_to_null()
Prepare field value for SQL query. Returns the num if different from zero, NULL otherwise.
top
k
- K_ANSWER_TEXTAREA_COLS
- in file tce_config.php, constant K_ANSWER_TEXTAREA_COLS
Number of columns for answer textarea.
- K_ANSWER_TEXTAREA_ROWS
- in file tce_config.php, constant K_ANSWER_TEXTAREA_ROWS
Number of rows for answer textarea.
- K_AVAILABLE_LANGUAGES
- in file tce_config.php, constant K_AVAILABLE_LANGUAGES
Defines a serialized array of available languages.
- K_BLANK_IMAGE
- in file tce_paths.php, constant K_BLANK_IMAGE
full path to a blank image
- K_COOKIE_DOMAIN
- in file tce_config.php, constant K_COOKIE_DOMAIN
Cookie domain.
- K_COOKIE_EXPIRE
- in file tce_config.php, constant K_COOKIE_EXPIRE
Expiration time for cookies.
- K_COOKIE_PATH
- in file tce_config.php, constant K_COOKIE_PATH
Cookie path.
- K_COOKIE_SECURE
- in file tce_config.php, constant K_COOKIE_SECURE
If true use secure cookies.
- K_DATABASE_HOST
- in file tce_db_config.php, constant K_DATABASE_HOST
database Host name (eg: localhost)
- K_DATABASE_NAME
- in file tce_db_config.php, constant K_DATABASE_NAME
database name (TCExam)
- K_DATABASE_PORT
- in file tce_db_config.php, constant K_DATABASE_PORT
database port (eg: 3306 or 5432)
- K_DATABASE_TYPE
- in file tce_db_config.php, constant K_DATABASE_TYPE
database type (POSTGRESQL or MYSQL)
- K_DATABASE_USER_NAME
- in file tce_db_config.php, constant K_DATABASE_USER_NAME
database user name
- K_DATABASE_USER_PASSWORD
- in file tce_db_config.php, constant K_DATABASE_USER_PASSWORD
database user password
- K_ENABLE_JSERRORS
- in file tce_config.php, constant K_ENABLE_JSERRORS
If true display messages and errors on Javascript popup window.
- K_ERROR_TYPES
- in file tce_config.php, constant K_ERROR_TYPES
Define error reporting types for debug.
- K_EXTEND_TIME_MINUTES
- in file tce_config.php, constant K_EXTEND_TIME_MINUTES
Default minutes used to extend test duration.
- K_KEY_SECURITY
- in file tce_general_constants.php, constant K_KEY_SECURITY
string used for security feature, do not alter
- K_LANGUAGE
- in file tce_config.php, constant K_LANGUAGE
2-letters code for default language.
- K_LANGUAGE_SELECTOR
- in file tce_config.php, constant K_LANGUAGE_SELECTOR
If true, display a language selector.
- K_LDAP_BASE_DN
- in file tce_ldap.php, constant K_LDAP_BASE_DN
The base DN for the directory.
- K_LDAP_ENABLED
- in file tce_ldap.php, constant K_LDAP_ENABLED
If true enable LDAP
- K_LDAP_FILTER
- in file tce_ldap.php, constant K_LDAP_FILTER
The search filter can be simple or advanced, using boolean operators in the format described in the LDAP documentation.
- K_LDAP_HOST
- in file tce_ldap.php, constant K_LDAP_HOST
LDAP hostname.
- K_LDAP_PORT
- in file tce_ldap.php, constant K_LDAP_PORT
The port to connect to. Not used when using URLs.
- K_LDAP_PROTOCOL_VERSION
- in file tce_ldap.php, constant K_LDAP_PROTOCOL_VERSION
LDAP protocol version.
- K_LDAP_USER_GROUP_ID
- in file tce_ldap.php, constant K_LDAP_USER_GROUP_ID
Default user group ID This is the TCExam group id to which the ldap accounts belongs.
- K_LDAP_USER_LEVEL
- in file tce_ldap.php, constant K_LDAP_USER_LEVEL
Default user level
- K_LDAP_UTF8
- in file tce_ldap.php, constant K_LDAP_UTF8
Set to true if LDAP uses UTF-8 encoding.
- K_PATH_CACHE
- in file tce_paths.php, constant K_PATH_CACHE
full path to cache directory
- K_PATH_FONTS
- in file tce_paths.php, constant K_PATH_FONTS
full path to fonts directory
- K_PATH_HOST
- in file tce_paths.php, constant K_PATH_HOST
host URL (e.g.: "http://www.yoursite.com")
- K_PATH_IMAGES
- in file tce_paths.php, constant K_PATH_IMAGES
relative path to images directory
- K_PATH_JSCRIPTS
- in file tce_paths.php, constant K_PATH_JSCRIPTS
relative path to javascript directory
- K_PATH_MAIN
- in file tce_paths.php, constant K_PATH_MAIN
real full path where this program is installed (e.g: "/var/www/html/TCExam/")
- K_PATH_PUBLIC_CODE
- in file tce_paths.php, constant K_PATH_PUBLIC_CODE
path to public code
- K_PATH_PUBLIC_CODE_REAL
- in file tce_paths.php, constant K_PATH_PUBLIC_CODE_REAL
server path to public code
- K_PATH_SHARED_JSCRIPTS
- in file tce_paths.php, constant K_PATH_SHARED_JSCRIPTS
relative path to shared javascript directory
- K_PATH_STYLE_SHEETS
- in file tce_paths.php, constant K_PATH_STYLE_SHEETS
relative path to stylesheets directory
- K_PATH_TCEXAM
- in file tce_paths.php, constant K_PATH_TCEXAM
relative URL where this program is installed (e.g.: "/")
- K_PATH_TMX_FILE
- in file tce_paths.php, constant K_PATH_TMX_FILE
full path to TMX language file
- K_PATH_URL
- in file tce_paths.php, constant K_PATH_URL
Constant used on TCPDF library
- K_PATH_URL_CACHE
- in file tce_paths.php, constant K_PATH_URL_CACHE
url path to to cache directory
- K_QUESTION_DIFFICULTY_LEVELS
- in file tce_config.php, constant K_QUESTION_DIFFICULTY_LEVELS
Number of difficulty levels for questions.
- K_QUESTION_LINE_MAX_LENGTH
- in file tce_config.php, constant K_QUESTION_LINE_MAX_LENGTH
Define max line length in chars for question navigator on test execution interface.
- K_RADIUS_ACCOUNTING_PORT
- in file tce_radius.php, constant K_RADIUS_ACCOUNTING_PORT
Radius accounting port (e.g.: 1813).
- K_RADIUS_AUTHENTICATION_PORT
- in file tce_radius.php, constant K_RADIUS_AUTHENTICATION_PORT
Radius authentication port (e.g.: 1812).
- K_RADIUS_ENABLED
- in file tce_radius.php, constant K_RADIUS_ENABLED
If true enable RADIUS
- K_RADIUS_SERVER_IP
- in file tce_radius.php, constant K_RADIUS_SERVER_IP
IP address of the radius server (e.g.: "127.0.0.1").
- K_RADIUS_SHARED_SECRET
- in file tce_radius.php, constant K_RADIUS_SHARED_SECRET
Shared secret with the radius server.
- K_RADIUS_SUFFIX
- in file tce_radius.php, constant K_RADIUS_SUFFIX
Radius domain name suffix (e.g.: "@mydomain.com").
- K_RADIUS_UDP_TIMEOUT
- in file tce_radius.php, constant K_RADIUS_UDP_TIMEOUT
Radius UDP timeout (e.g.: 5).
- K_RADIUS_USER_GROUP_ID
- in file tce_radius.php, constant K_RADIUS_USER_GROUP_ID
Default user group ID This is the TCExam group id to which the radius accounts belongs.
- K_RADIUS_USER_LEVEL
- in file tce_radius.php, constant K_RADIUS_USER_LEVEL
Default user level
- K_RADIUS_UTF8
- in file tce_radius.php, constant K_RADIUS_UTF8
Set to true if RADIUS uses UTF-8 encoding.
- K_RANDOM_SECURITY
- in file tce_general_constants.php, constant K_RANDOM_SECURITY
string used as a seed for some security code generation please change this value and keep it secret
- K_REDIRECT_LOGIN_MODE
- in file tce_config.php, constant K_REDIRECT_LOGIN_MODE
Various pages redirection modes after login (valid values are 1, 2 and 3).
- K_SECONDS_IN_DAY
- in file tce_general_constants.php, constant K_SECONDS_IN_DAY
number of seconds in one day
- K_SECONDS_IN_HOUR
- in file tce_general_constants.php, constant K_SECONDS_IN_HOUR
number of seconds in one hour
- K_SECONDS_IN_MINUTE
- in file tce_general_constants.php, constant K_SECONDS_IN_MINUTE
number of seconds in one minute
- K_SECONDS_IN_MONTH
- in file tce_general_constants.php, constant K_SECONDS_IN_MONTH
number of seconds in one month
- K_SECONDS_IN_WEEK
- in file tce_general_constants.php, constant K_SECONDS_IN_WEEK
number of seconds in one week
- K_SECONDS_IN_YEAR
- in file tce_general_constants.php, constant K_SECONDS_IN_YEAR
number of seconds in one year
- K_SESSION_LIFE
- in file tce_config.php, constant K_SESSION_LIFE
User's session life time in seconds.
- K_STANDARD_PORT
- in file tce_paths.php, constant K_STANDARD_PORT
standard port for http (80) or https (443)
- K_TABLE_ANSWERS
- in file tce_db_config.php, constant K_TABLE_ANSWERS
- K_TABLE_GROUPS
- in file tce_db_config.php, constant K_TABLE_GROUPS
- K_TABLE_LOG_ANSWER
- in file tce_db_config.php, constant K_TABLE_LOG_ANSWER
- K_TABLE_MODULES
- in file tce_db_config.php, constant K_TABLE_MODULES
- K_TABLE_PREFIX
- in file tce_db_config.php, constant K_TABLE_PREFIX
prefix for database tables names
- K_TABLE_QUESTIONS
- in file tce_db_config.php, constant K_TABLE_QUESTIONS
- K_TABLE_SESSIONS
- in file tce_db_config.php, constant K_TABLE_SESSIONS
- K_TABLE_SUBJECTS
- in file tce_db_config.php, constant K_TABLE_SUBJECTS
- K_TABLE_SUBJECT_SET
- in file tce_db_config.php, constant K_TABLE_SUBJECT_SET
- K_TABLE_TESTS
- in file tce_db_config.php, constant K_TABLE_TESTS
- K_TABLE_TESTS_LOGS
- in file tce_db_config.php, constant K_TABLE_TESTS_LOGS
- K_TABLE_TEST_GROUPS
- in file tce_db_config.php, constant K_TABLE_TEST_GROUPS
- K_TABLE_TEST_SUBJSET
- in file tce_db_config.php, constant K_TABLE_TEST_SUBJSET
- K_TABLE_TEST_USER
- in file tce_db_config.php, constant K_TABLE_TEST_USER
- K_TABLE_USERGROUP
- in file tce_db_config.php, constant K_TABLE_USERGROUP
- K_TABLE_USERS
- in file tce_db_config.php, constant K_TABLE_USERS
- K_TCEXAM_VERSION
- in file tce_config.php, constant K_TCEXAM_VERSION
TCExam version (do not change).
- K_TEST_INFO_HEIGHT
- in file tce_config.php, constant K_TEST_INFO_HEIGHT
Popup window height in pixels for test info.
- K_TEST_INFO_WIDTH
- in file tce_config.php, constant K_TEST_INFO_WIDTH
Popup window width in pixels for test info.
- K_TIMESTAMP_FORMAT
- in file tce_config.php, constant K_TIMESTAMP_FORMAT
Define timestamp format using PHP notation.
- K_TIMEZONE
- in file tce_config.php, constant K_TIMEZONE
Set your own timezone here.
- K_USE_ERROR_LOG
- in file tce_config.php, constant K_USE_ERROR_LOG
Enable error logs (../log/tce_errors.log).
- K_USRREG_ADMIN_EMAIL
- in file tce_user_registration.php, constant K_USRREG_ADMIN_EMAIL
The following email will receive copies of verification messages.
- K_USRREG_AGREEMENT
- in file tce_user_registration.php, constant K_USRREG_AGREEMENT
URL of an HTML page containing the registration agreement.
- K_USRREG_EMAIL_CONFIRM
- in file tce_user_registration.php, constant K_USRREG_EMAIL_CONFIRM
If true requires email confirmation
- K_USRREG_ENABLED
- in file tce_user_registration.php, constant K_USRREG_ENABLED
If true enable USER REGISTRATION
- K_USRREG_GROUP
- in file tce_user_registration.php, constant K_USRREG_GROUP
Default user group ID for registered user.
top
p
- pdfLink
- in file tce_functions_test_stats.php, function pdfLink()
Returns an URL to open the PDF generator page.
top
s
- showRequiredField
- in file tce_functions_general.php, function showRequiredField()
Return a string containing an HTML acronym for required/not required fields.
top
top
u
- unhtmlentities
- in file tce_functions_general.php, function unhtmlentities()
Reverse function for htmlentities.
- utrim
- in file tce_functions_general.php, function utrim()
Strip whitespace (or other characters) from the beginning and end of an UTF-8 string and replace the \xA0 with normal space.
top
|
|