Functions

setNoAnswerMode

setNoAnswerMode

« More »

retrieveAnswers

This function returns an array containing the "question/answer" html display and a list of the question/answer fieldnames associated. It is called from question.php, group.php, survey.php or preview.php

« More »

mandatory_message

« More »

validation_message

« More »

file_validation_message

« More »

mandatory_popup

« More »

validation_popup

« More »

file_validation_popup

« More »

return_timer_script

« More »

return_display_style

« More »

return_array_filter_strings

« More »

do_boilerplate

« More »

do_equation

« More »

do_5pointchoice

« More »

do_date

« More »

do_language

« More »

do_list_dropdown

« More »

do_list_radio

« More »

do_listwithcomment

« More »

do_ranking

« More »

testKeypad

« More »

do_multiplechoice

« More »

do_multiplechoice_withcomments

« More »

do_file_upload

« More »

do_multipleshorttext

« More »

do_multiplenumeric

« More »

do_numerical

« More »

do_shortfreetext

« More »

getLatLongFromIp

« More »

do_longfreetext

« More »

do_hugefreetext

« More »

do_yesno

« More »

do_gender

« More »

do_array_5point

Construct answer part array_5point

« More »

do_array_10point

« More »

do_array_yesnouncertain

« More »

do_array_increasesamedecrease

« More »

do_array

« More »

do_array_texts

« More »

do_array_multiflexi

« More »

do_arraycolumns

« More »

do_array_dual

« More »

decide_sm_col

Depending on prefix and suffix, the center col will vary on sm screens (xs is always 12).

« More »

fillDate

Take a date string and fill out missing parts, like day, hour, minutes (not seconds).

If string is NOT in standard date format (Y-m-d H:i), this methods makes no sense. Used when fetching answer for do_date, where answer can come from a default answer expression like date('Y'). Will also truncate date('c') to format Y-m-d H:i.
« More »

doRender

Render the question view.

By default, it just renders the required core view from application/views/survey/... If the Survey template is configured to overwrite the question views, then the function will check if the required view exist in the template directory and then will use this one to render the question.
« More »

ldap_getCnx

« More »

ldap_bindCnx

« More »

ldap_readattr

« More »

ldap_search_withScope

« More »

ldap_doTokenSearch

« More »

prepareLdapQuery

« More »

loadanswers

« More »

makegraph

« More »

makeLanguageChangerSurvey

This function creates the language selector for a particular survey

« More »

makeLanguageChanger

This function creates the language selector for the public survey index page

« More »

makeFlashMessage

Construct flash message container Used in templatereplace to replace {FLASHMESSAGE} in startpage.tstpl

« More »

checkUploadedFileValidity

checkUploadedFileValidity used in SurveyRuntimeHelper

« More »

addtoarray_single

Takes two single element arrays and adds second to end of first if value exists Why not use array_merge($array1,array_filter($array2);

« More »

submittokens

Marks a tokens as completed and sends a confirmation email to the participiant.

If $quotaexit is set to true then the user exited the survey due to a quota restriction and the according token is only marked as 'Q'
« More »

sendSubmitNotifications

Send a submit notification to the email address specified in the notifications tab in the survey settings

« More »

submitfailed

submitfailed : used in em_manager_helper.php

"Unexpected error" Will send e-mail to adminemail if defined.
« More »

buildsurveysession

This function builds all the required session variables when a survey is first started and it loads any answer defaults from command line or from the table defaultvalues It is called from the related format script (group.php, question.php, survey.php) if the survey has just started.

« More »

checkPassthruLabel

Check if a passthru label and value have been included in the query url

« More »

prefillFromCommandLine

Prefill startvalues from command line param

« More »

initFieldArray

« More »

testCaptcha

« More »

randomizationGroup

Randomization group for groups

« More »

randomizationQuestion

Randomization group for questions

« More »

finalizeRandomization

Stuff?

« More »

testIfTokenIsValid

Test if token is valid

« More »

getRenderWay

Returns which way should be rendered

« More »

renderRenderWayForm

Render token, captcha or register form

« More »

resetAllSessionVariables

Resets all session variables for this survey

« More »

setTotalSteps

The number of "pages" that will be presented in this survey The number of pages to be presented will differ depending on the survey format Set totalsteps in session

« More »

breakOutAndCrash

« More »

surveymover

This function creates the form elements in the survey navigation bar Adding a hidden input for default behaviour without javascript Use button name="move" for real browser (with or without javascript) and IE6/7/8 with javascript

« More »

doAssessment

Caculate assessement scores

« More »

UpdateGroupList

Update SESSION VARIABLE: grouplist A list of groups in this survey, ordered by group name.

« More »

UpdateFieldArray

FieldArray contains all necessary information regarding the questions This function is needed to update it in case the survey is switched to another language

« More »

checkCompletedQuota

checkCompletedQuota() returns matched quotas information for the current response

« More »

encodeEmail

encodeEmail : encode admin email in public part

« More »

GetReferringUrl

GetReferringUrl() returns the referring URL

« More »

display_first_page

Shows the welcome page, used in group by group and question by question mode

« More »

killSurveySession

killSurveySession : reset $_SESSION part for the survey

« More »

resetTimers

Resets all question timers by expiring the related cookie - this needs to be called before any output is done

« More »

SetSurveyLanguage

Set the public survey language Control if language exist in this survey, else set to survey default language if $surveyid <= 0 : set the language to default site language

« More »

getMove

getMove get move button clicked

« More »

getSideBodyClass

Get the margin class for side-body div depending on side-menu behaviour config and page (edit or not etc).

« More »

doFRender

Render the question view.

By default, it just renders the required core view from application/views/survey/... If the Survey template is configured to overwrite the question views, then the function will check if the required view exist in the template directory and then will use this one to render the question.
« More »

cookieConsentLocalization

For later use, don't remove.

« More »

App

Helper function to replace calls to Yii::app() and enable correct code completion.

« More »

traceVar

If debug = 2 in application/config.php this will produce output in the console / firebug similar to var_dump. It will also include the filename and line that called this method.

« More »

nice_addslashes

« More »

sanitize_filename

Function: sanitize_filename Returns a sanitized string, typically for URLs.

Parameters: $string - The string to sanitize. $force_lowercase - Force the string to lowercase? $alphanumeric - If set to *true*, will remove all non-alphanumeric characters.
« More »

beautify_filename

« More »

sanitize_dirname

Function: sanitize_dirname sanitizes a string that will be used as a directory name

Parameters: $string - The string to sanitize. $force_lowercase - Force the string to lowercase? $alphanumeric - If set to *true*, will remove all non-alphanumeric characters.
« More »

sanitize_paranoid_string

« More »

sanitize_cquestions

« More »

sanitize_system_string

« More »

sanitize_xss_string

« More »

sanitize_sql_db_tablename

« More »

sanitize_ldap_string

« More »

sanitize_html_string

« More »

sanitize_int

« More »

sanitize_user

« More »

sanitize_userfullname

« More »

sanitize_labelname

« More »

sanitize_float

« More »

sanitize

« More »

check_paranoid_string

« More »

check_int

« More »

check_float

« More »

check_html_string

« More »

check_ldap_string

« More »

check_system_string

« More »

check

« More »

sanitize_languagecode

« More »

sanitize_languagecodeS

« More »

sanitize_token

« More »

sanitize_signedint

« More »

injectglobalsettings

« More »

getGlobalSetting

« More »

setGlobalSetting

« More »

templatereplace

This function replaces keywords in a text and is mainly intended for templates If you use this functions put your replacement strings into the $replacements variable instead of using global variables NOTE - Don't do any embedded replacements in this function. Create the array of replacement values and they will be done in batch at the end

« More »

ReplaceFields

« More »

PassthruReplace

passthruReplace() takes a string and looks for {PASSTHRU:myarg} variables which it then substitutes for parameter data sent in the initial URL and stored in the session array containing responses

« More »

doHtmlSaveAll

doHtmlSaveAll return HTML part of saveall button in survey

« More »

comparePermission

Simple function to sort the permissions by title

« More »

gT

Translation helper function

« More »

eT

Translation helper function which outputs right away.

« More »

ngT

Translation helper function for plural forms

« More »

neT

Translation helper function for plural forms which outputs right away

« More »

quoteText

Quotes a translation according to purpose if sEscapeMode is null, we use HTML method because probably we had to specify null as sEscapeMode upstream

« More »

getQuestionTypeList

getQuestionTypeList() Returns list of question types available in LimeSurvey. Edit this if you are adding a new question type

« More »

isStandardTemplate

isStandardTemplate returns true if a template is a standard template This function does not check if a template actually exists

« More »

getSurveyList

getSurveyList() Queries the database (survey table) for a list of existing surveys

« More »

getTemplateList

« More »

getTemplateListWithPreviews

« More »

getQuestions

getQuestions() queries the database for an list of all questions matching the current survey and group id

« More »

getGidPrevious

getGidPrevious() returns the Gid of the group prior to the current active group

« More »

getQidPrevious

getQidPrevious() returns the Qid of the question prior to the current active question

« More »

getGidNext

getGidNext() returns the Gid of the group next to the current active group

« More »

getQidNext

getQidNext() returns the Qid of the question prior to the current active question

« More »

convertGETtoPOST

« More »

calculateTotalFileUploadUsage

This function calculates how much space is actually used by all files uploaded using the File Upload question type

« More »

getDirectorySize

« More »

getGroupSum

Gets number of groups inside a particular survey

« More »

getMaxGroupOrder

Queries the database for the maximum sortorder of a group and returns the next higher one.

« More »

getGroupOrder

getGroupOrder($surveyid,$gid) queries the database for the sortorder of a group.

« More »

getMaxQuestionOrder

getMaxQuestionOrder($gid) queries the database for the maximum sortorder of a question.

« More »

getQuestionClass

getQuestionClass() returns a class name for a given question type to allow custom styling for each question type.

« More »

setupColumns

setupColumns() defines all the html tags to be wrapped around various list type answers.

« More »

alternation

« More »

longestString

longestString() returns the length of the longest string past to it.

« More »

getNotificationList

getNotificationList() returns different options for notifications

« More »

getGroupList

getGroupList() queries the database for a list of all groups matching the current survey sid

« More »

getGroupList3

« More »

getGroupListLang

put your comment there.

..
« More »

getUserList

« More »

getSurveyInfo

Gets all survey infos in one big array including the language specific settings

« More »

templateDefaultTexts

Returns the default email template texts as array

« More »

groupOrderThenQuestionOrder

Compares two elements from an array (passed by the usort function) and returns -1, 0 or 1 depending on the result of the comparison of the sort order of the group_order and question_order field

« More »

fixSortOrderAnswers

« More »

shiftOrderQuestions

function fixSortOrderQuestions($groupid, $surveyid) //Function rewrites the sortorder for questions { $gid = sanitize_int($groupid); $surveyid = sanitize_int($surveyid); $baselang = Survey::model()->findByPk($surveyid)->language;

$questions = Question::model()->findAllByAttributes(array('gid' => $gid, 'sid' => $surveyid, 'language' => $baselang)); $p = 0; foreach ($questions as $question) { $question->question_order = $p; $question->save(); $p++; } }
« More »

fixSortOrderGroups

« More »

fixMovedQuestionConditions

« More »

returnGlobal

This function returns POST/REQUEST vars, for some vars like SID and others they are also sanitized

« More »

sendCacheHeaders

« More »

getExtendedAnswer

« More »

validateEmailAddress

Validate an email address - also supports IDN email addresses

« More »

validateEmailAddresses

Validate an list of email addresses - either as array or as semicolon-limited text

« More »

createCompleteSGQA

This functions generates a a summary containing the SGQA for questions of a survey, enriched with options per question It can be used for the generation of statistics. Derived from Statistics_userController

« More »

createFieldMap

This function generates an array containing the fieldcode, and matching data in the same order as the activate script

« More »

hasFileUploadQuestion

Returns true if the given survey has a File Upload Question Type

« More »

createTimingsFieldMap

This function generates an array containing the fieldcode, and matching data in the same order as the activate script

« More »

arraySearchByKey

put your comment there.

..
« More »

getSavedCount

This function returns a count of the number of saved responses to a survey

« More »

getBaseLanguageFromSurveyID

Returns the base language from a survey id

« More »

buildLabelSetCheckSumArray

« More »

getQuestionAttributeValues

Returns a flat array with all question attributes for the question only (and the qid we gave it)!

« More »

getQuestionAttributeValue

Returns the questionAttribtue value set or '' if not set

« More »

categorySort

« More »

autoEscape

« More »

autoUnescape

« More »

HTMLEscape

« More »

dbQuoteAll

Escapes a text value for db

« More »

stripCtrlChars

This function strips UTF-8 control characters from strings, except tabs, CR and LF - it is intended to be used before any response data is saved to the response table

« More »

javascriptEscape

« More »

SendEmailMessage

This function mails a text $body to the recipient $to.

You can use more than one recipient when using a semikolon separated string with recipients.
« More »

flattenText

This functions removes all HTML tags, Javascript, CRs, linefeeds and other strange chars from a given text

« More »

getArrayFilterExcludesCascadesForGroup

getArrayFilterExcludesCascadesForGroup() queries the database and produces a list of array_filter_exclude questions and targets with in the same group

« More »

getArrayFiltersForQuestion

getArrayFiltersForQuestion($qid) finds out if a question has an array_filter attribute and what codes where selected on target question

« More »

getGroupsByQuestion

getGroupsByQuestion($surveyid)

« More »

getArrayFilterExcludesForQuestion

getArrayFilterExcludesForQuestion($qid) finds out if a question has an array_filter_exclude attribute and what codes where selected on target question

« More »

CSVEscape

« More »

convertCSVRowToArray

« More »

createPassword

« More »

languageDropdown

« More »

languageDropdownClean

Creates a <select> HTML element for language selection for this survey

« More »

rmdirr

This function removes a directory recursively

« More »

CSVUnquote

This function removes surrounding and masking quotes from the CSV field

« More »

incompleteAnsFilterState

This function return actual completion state

« More »

isCaptchaEnabled

isCaptchaEnabled($screen, $usecaptchamode)

« More »

convertCSVReturnToReturn

used for import[survey|questions|groups]

« More »

tableExists

Check if a table does exist in the database

« More »

isTokenCompletedDatestamped

« More »

dateShift

example usage $date = "2006-12-31 21:00"; $shift "+6 hours"; // could be days, weeks.

.. see function strtotime() for usage echo sql_date_shift($date, "Y-m-d H:i:s", $shift); will output: 2007-01-01 03:00:00
« More »

getBounceEmail

« More »

getEmailFormat

« More »

hasTemplateManageRights

« More »

getNextCode

This function creates an incrementing answer code based on the previous source-code

« More »

reverseTranslateFieldNames

This function creates the old fieldnames for survey import

« More »

hasResources

put your comment there.

..
« More »

randomChars

Creates a random sequence of characters

« More »

conditionalNewlineToBreak

used to translate simple text to html (replacing \n with <br />

« More »

breakToNewline

« More »

safeDie

« More »

fixCKeditorText

« More »

filterForAttributes

This is a helper function for getAttributeFieldNames

« More »

GetAttributeFieldNames

Retrieves the attribute field names from the related token table

« More »

GetParticipantAttributes

Returns the full list of attribute token fields including the properties for each field Use this instead of plain Survey::model()->findByPk($iSurveyID)->tokenAttributes calls because Survey::model()->findByPk($iSurveyID)->tokenAttributes may contain old descriptions where the fields does not physically exist

« More »

getTokenConditionsFieldNames

Retrieves the token field names usable for conditions from the related token table

« More »

getTokenFieldsAndNames

Retrieves the attribute names from the related token table

« More »

getAttributeValue

Retrieves the token attribute value from the related token table

« More »

stripJavaScript

This function strips any content between and including <javascript> tags

« More »

showJavaScript

This function converts emebedded Javascript to Text

« More »

cleanTempDirectory

This function cleans files from the temporary directory being older than 1 day

« More »

useFirebug

« More »

convertDateTimeFormat

This is a convenience function for the coversion of datetime values

« More »

convertToGlobalSettingFormat

This is a convenience function to convert any date, in any date format, to the global setting date format Check if the time shoul be rendered also

« More »

removeBOM

This function removes the UTF-8 Byte Order Mark from a string

« More »

getUpdateInfo

« More »

getNumericalFormat

Return the goodchars to be used when filtering input for numbers.

« More »

getTemplatePath

This function returns the complete directory path to a given template name

« More »

getTemplateURL

This function returns the complete URL path to a given template name

« More »

getSubQuestions

Return an array of subquestions for a given sid/qid

« More »

getXMLWriter

Wrapper function to retrieve an xmlwriter object and do error handling if it is not compiled into PHP

« More »

SSLRedirect

SSLRedirect() generates a redirect URL for the appropriate SSL mode then applies it.

(Was redirect() before CodeIgniter port.)
« More »

enforceSSLMode

enforceSSLMode() $force_ssl is on or off, it checks if the current request is to HTTPS (or not). If $force_ssl is on, and the request is not to HTTPS, it redirects the request to the HTTPS version of the URL, if the request is to HTTPS, it rewrites all the URL variables so they also point to HTTPS.

« More »

getQuotaCompletedCount

« More »

getFullResponseTable

Creates an array with details on a particular response for display purposes Used in Print answers, Detailed response view and Detailed admin notification email

« More »

isNumericInt

Check if $str is an integer, or string representation of an integer

« More »

short_implode

Implode and sort content array for very long arrays

« More »

includeKeypad

Include Keypad headers

« More »

getQuotaInformation

getQuotaInformation() returns quota information for the current survey

« More »

translateInsertansTags

This function replaces the old insertans tags with new ones across a survey

« More »

replaceExpressionCodes

Replaces EM variable codes in a current survey with a new one

« More »

accessDenied

This function is a replacement of accessDenied.php which return appropriate error message which is then displayed.

« More »

cleanLanguagesFromSurvey

cleanLanguagesFromSurvey() removes any languages from survey tables that are not in the passed list

« More »

fixLanguageConsistency

fixLanguageConsistency() fixes missing groups, questions, answers, quotas & assessments for languages on a survey

« More »

switchMSSQLIdentityInsert

This function switches identity insert on/off for the MSSQL database

« More »

getLastInsertID

Retrieves the last Insert ID realiable for cross-DB applications

« More »

getGroupDepsForConditions

getGroupDepsForConditions() get Dependencies between groups caused by conditions

« More »

getQuestDepsForConditions

getQuestDepsForConditions() get Dependencies between groups caused by conditions

« More »

checkMoveQuestionConstraintsForConditions

checkMoveQuestionConstraintsForConditions()

« More »

getUserGroupList

« More »

getGroupUserList

« More »

modifyDatabase

Run an arbitrary sequence of semicolon-delimited SQL commands

Assumes that the input text (file or string) consists of a number of SQL statements ENDING WITH SEMICOLONS. The semicolons MUST be the last character in a line. Lines that are blank or that start with "#" or "--" (postgres) are ignored. Only tested with mysql dump files (mysqldump -p -d limesurvey) Function kindly borrowed by Moodle
« More »

getLabelSets

Returns labelsets for given language(s), or for all if null

« More »

getHeader

« More »

doHeader

« More »

getPrintableHeader

This function returns the header for the printable survey

« More »

getFooter

This function returns the Footer as result string If you want to echo the Footer use doFooter()!

« More »

doFooter

« More »

getDBTableUsage

« More »

doesImportArraySupportLanguage

Checks that each object from an array of CSV data [question-rows,answer-rows,labelsets-row] supports at least a given language

« More »

getSurveyUserList

Retrieve a HTML <OPTION> list of survey admin users

« More »

getSurveyUserGroupList

Return HTML <option> list of user groups

« More »

fixSubquestions

This function fixes the group ID and type on all subquestions Optimized for minimum memory usage even on huge databases

« More »

ls_json_encode

Must use ls_json_encode to json_encode content, otherwise LimeExpressionManager will think that the associative arrays are expressions and try to parse them.

« More »

json_decode_ls

Decode a json string, sometimes needs stripslashes

« More »

aEncodingsArray

Return accepted codingsArray for importing files

Used in vvimport TODO : use in token and
« More »

arraySwapAssoc

Swaps two positions in an array

« More »

ellipsize

Ellipsize String

This public static function will strip tags from a string, split it at its max_length and ellipsize
« More »

getIPAddress

This function returns the real IP address under all configurations

« More »

getBrowserLanguage

This function tries to find out a valid language code for the language of the browser used If it cannot find it it will return the default language from global settings

« More »

array_diff_assoc_recursive

« More »

convertPHPSizeToBytes

« More »

getMaximumFileUploadSize

« More »

decodeTokenAttributes

Decodes token attribute data because due to bugs in the past it can be written in JSON or be serialized - future format should be JSON as serialized data can be exploited

« More »

getSerialClass

« More »

isMd5

Checks if a string looks like it is a MD5 hash

« More »

regenerateCSRFToken

Force Yii to create a new CSRF token by removing the old one

« More »

dbExecuteAssoc

« More »

dbQueryOrFalse

« More »

dbSelectLimitAssoc

« More »

dbQuoteID

This functions quotes fieldnames accordingly

« More »

dbRandom

Return the random function to use in ORDER BY sql statements

« More »

dbSelectTablesLike

Return a sql statement for finding LIKE named tables Be aware that you have to escape underscor chars by using a backslash otherwise you might get table names returned you don't want

« More »

dbGetTablesLike

Gets the table names. Do not prefix.

« More »

createChart

Generate a chart for a question

@param int $iQuestionID ID of the question
« More »

getQuestionMapData

Return data to populate a Google Map

« More »

buildSelects

Builds the list of addon SQL select statements that builds the query result set

@param $allfields An array containing the names of the fields/answers we want to display in the statistics summary
« More »

square

Simple function to square a value

« More »

cmpQuestionSeq

Used by usort() to order $this->questionSeq2relevance in proper order

« More »

cmpErrorTokens

Used by usort() to order Error tokens by their position within the string This must be outside of the class in order to work in PHP 5.2

« More »

exprmgr_count

Count the number of answered questions (non-empty)

« More »

exprmgr_countif

Count the number of answered questions (non-empty) which match the first argument

« More »

exprmgr_countifop

Count the number of answered questions (non-empty) which meet the criteria (arg op value)

« More »

exprmgr_stripos

Find position of first occurrence of unicode string in a unicode string, case insensitive

« More »

exprmgr_stristr

Finds first occurrence of a unicode string within another, case-insensitive

« More »

exprmgr_strlen

Get unicode string length

« More »

exprmgr_strpos

Find position of first occurrence of unicode string in a unicode string

« More »

exprmgr_strstr

Finds first occurrence of a unicode string within another

« More »

exprmgr_strtolower

Make an unicode string lowercase

« More »

exprmgr_strtoupper

Make an unicode string uppercase

« More »

exprmgr_substr

Get part of unicode string

« More »

exprmgr_sumifop

Sum of values of answered questions which meet the criteria (arg op value)

« More »

exprmgr_convert_value

Find the closest matching numerical input values in a list an replace it by the corresponding value within another list

« More »

exprmgr_if

If $test is true, return $ok, else return $error

« More »

exprmgr_int

Return true if the variable is an integer for LimeSurvey Can not really use is_int due to SQL DECIMAL system. This function can surely be improved

« More »

exprmgr_list

Join together $args[0-N] with ', '

« More »

exprmgr_log

return log($arg[0],$arg[1]=e)

« More »

exprmgr_mktime

Get Unix timestamp for a date : false if parameters is invalid.

PHP 5.3.3 send E_STRICT notice without param, then replace by time if needed
« More »

exprmgr_join

Join together $args[N]

« More »

exprmgr_implode

Join together $args[1-N] with $arg[0]

« More »

exprmgr_empty

Return true if the variable is NULL or blank.

« More »

exprmgr_stddev

Compute the Sample Standard Deviation of a set of numbers ($args[0-N])

« More »

expr_mgr_htmlspecialchars

Javascript equivalent does not cope well with ENT_QUOTES and related PHP constants, so set default to ENT_QUOTES

« More »

expr_mgr_htmlspecialchars_decode

Javascript equivalent does not cope well with ENT_QUOTES and related PHP constants, so set default to ENT_QUOTES

« More »

exprmgr_regexMatch

Return true if $input matches the regular expression $pattern

« More »

geterrors_exprmgr_regexMatch

Return error information from pattern of regular expression $pattern

« More »

exprmgr_fixnum

Display number with comma as radix separator, if needed

« More »

exprmgr_unique

Returns true if all non-empty values are unique

« More »

stripTagsFull

Strips html tags and replaces new lines

« More »

isNumericExtended

Returns true if passed $value is numeric

« More »

strSplitUnicode

Returns splitted unicode string correctly source: http://www.php.net/manual/en/function.str-split.php#107658

« More »

SPSSExportData

Exports CSV response data for SPSS and R

« More »

SPSSGetValues

Check it the gives field has a labelset and return it as an array if true

« More »

SPSSFieldMap

Creates a fieldmap with all information necessary to output the fields

« More »

SPSSGetQuery

Creates a query string with all fields for the export

« More »

buildXMLFromQuery

buildXMLFromQuery() creates a datadump of a table in XML using XMLWriter

« More »

surveyGetXMLStructure

from export_structure_xml.php

« More »

surveyGetXMLData

from export_structure_xml.php

« More »

getXMLDataSingleTable

Exports a single table to XML

« More »

QueXMLCleanup

from export_structure_quexml.php

« More »

QueXMLCreateFree

from export_structure_quexml.php

« More »

QueXMLFixedArray

from export_structure_quexml.php

« More »

QueXMLSkipTo

Calculate if this item should have a QueXMLSkipTo element attached to it

from export_structure_quexml.php
« More »

QueXMLCreateFixed

from export_structure_quexml.php

« More »

quexml_get_lengthth

from export_structure_quexml.php

« More »

quexml_create_multi

from export_structure_quexml.php

« More »

quexml_create_subQuestions

from export_structure_quexml.php

« More »

quexml_export

Export quexml survey.

« More »

concat

From adodb

Different SQL databases used different methods to combine strings together. This function provides a wrapper. param s variable number of string parameters Usage: $db->Concat($str1,$str2);
« More »

group_export

« More »

groupGetXMLStructure

« More »

questionExport

« More »

questionGetXMLStructure

« More »

tokensExport

« More »

CPDBExport

« More »

getDateFormatData

Returns all available dateformats in a structured aray If $iDateFormat is given only the particual dateformat will be returned

« More »

getLanguageData

« More »

getRadixPointData

Returns avaliable formats for Radix Points (Decimal Separators) or returns radix point info about a specific format.

@param int $format Format ID/Number [optional]
« More »

getPHPDateFromDateFormat

Convert a 'dateformat' format string to a 'phpdate' format.

« More »

getJSDateFromDateFormat

Convert a 'dateformat' format string to a 'jsdate' format.

For Bootstrap, that means using capital letters, e.g. MM/DD/YYYY instead of mm/dd/yyyy and mm instead of MM for minutes.
« More »

getDateFormatDataForQID

Get the date format details for a specific question.

« More »

getDateFormatForSID

Get the date format for a specified survey

« More »

canShowDatePicker

Check whether we can show the JS date picker with the current format

« More »

getLanguageCodefromLanguage

« More »

getLanguageNameFromCode

« More »

getLanguageRTL

« More »

getLanguageDetails

Returns the locale settings for a certain language code

« More »

convertLStoDateTimePickerLocale

This functions translates LimeSurvey specific locale code to a matching datetimepicker locale

« More »

getLanguageDataRestricted

« More »

userSort

« More »

userSortNative

« More »

UTF8Strrev

This function support the ability NOT to reverse numbers (for example when you output a phrase as a parameter for a SWF file that can't handle RTL languages itself, but obviously any numbers should remain the same as in the original phrase).

Note that it can be used just as well for UTF-8 usages if you want the numbers to remain intact
« More »

db_upgrade_all

« More »

upgradeTokenTables256

« More »

upgradeSurveyTables255

« More »

upgradeSurveyTables254

« More »

upgradeSurveyTables253

« More »

upgradeBoxesTable251

« More »

createBoxes250

Create boxes table

« More »

upgradeSurveyTables183

« More »

fixKCFinder184

« More »

upgradeSurveyTables181

« More »

upgradeTokenTables181

« More »

upgradeTokenTables179

« More »

upgradeSurveys177

« More »

upgradeTokens176

This function removes the old CPDB fields in token tables replaces them with standard attribute fields and records the mapping information in the attributedescription field in the survey table instead

« More »

upgradeCPDBAttributeDefaultNames173

« More »

upgradePermissions166

Converts global permissions from users table to the new permission system, and converts template permissions from template_rights to new permission table

« More »

upgradeSurveys156

« More »

upgradeTokens148

« More »

upgradeQuestionAttributes148

« More »

upgradeSurveyTimings146

« More »

upgradeTokens145

« More »

upgradeSurveys145

« More »

upgradeSurveyPermissions145

« More »

upgradeTables143

« More »

upgradeQuestionAttributes142

« More »

upgradeSurveyTables139

« More »

upgradeTokenTables134

« More »

upgradeTokens128

« More »

fixMySQLCollations

« More »

upgradeSurveyTables126

« More »

upgradeTokenTables126

« More »

alterLanguageCode

« More »

addPrimaryKey

« More »

modifyPrimaryKey

Modifies a primary key in one command - this is only tested on MySQL

« More »

dropPrimaryKey

« More »

fixLanguageConsistencyAllSurveys

« More »

alterColumn

« More »

dropColumn

« More »

addColumn

« More »

setTransactionBookmark

« More »

rollBackToTransactionBookmark

« More »

dropDefaultValueMSSQL

« More »

dropUniqueKeyMSSQL

This function drops a unique Key of an MSSQL database field by using the name of the field it lies upon and the table name

« More »

dropSecondaryKeyMSSQL

« More »

replaceTemplateJS

« More »

upgradeSurveyTables164

Make sure all active tables have the right sized token field

During a small period in the 2.0 cycle some survey tables got no token field or a token field that was too small. This patch makes sure all surveys that are not anonymous have a token field with the right size
« More »

CheckForDBUpgrades

This functions checks if the databaseversion in the settings table is the same one as required If not then the necessary upgrade procedures are run

« More »

ShowDBUpgradeNotice

« More »

getDBConnectionStringProperty

« More »

outputDatabase

Outputs a full dump of the current LimeSurvey database

« More »

_outputDBDescription

« More »

_outputDBData

« More »

_outputTableDescription

Outputs the table structure in sql format

« More »

_outputTableData

Outputs the table data in sql format

« More »

_outputRecords

« More »

_countNumberOfEntries

« More »

_getMaxNbRecords

« More »

_getDbName

Get the database name

« More »

emailTokens

Sends email to tokens - invitations, reminders, registers, and confirmations

« More »

doreplacement

« More »

getListOfFiles

« More »

filetext

Load this editfile

« More »

mkdir_p

« More »

templateoptions

« More »

recursive_in_array

« More »

is_template_editable

This function checks if a certain template may be by modified, copied, deleted according to the settings in config.php

« More »

templateExtractFilter

This is a PCLZip callback function that ensures only files are extracted that have a valid extension

« More »

gettemplatefilename

Determine the storage path for a file TODO: remove all that logic.

« More »

initKcfinder

« More »

sTranslateLangCode2CK

« More »

PrepareEditorScript

« More »

getEditor

« More »

getPopupEditor

« More »

getInlineEditor

« More »

getSurveyDefaultSettings

« More »

fixNumbering

fixes the numbering of questions This can happen if question 1 have subquestion code 1 and have question 11 in same survey and group (then same SGQA)

« More »

checkGroup

checks consistency of groups

« More »

checkQuestions

checks questions in a survey for consistency

« More »

activateSurvey

Function to activate a survey

« More »

mssql_drop_constraint

« More »

mssql_drop_primary_index

« More »

XMLImportGroup

This function imports a LimeSurvey .lsg question group XML file

« More »

XMLImportQuestion

This function imports a LimeSurvey .lsq question XML file

« More »

XMLImportLabelsets

XMLImportLabelsets() Function resp[onsible to import a labelset from XML format.

« More »

importSurveyFile

« More »

XMLImportSurvey

This function imports a LimeSurvey .lss survey XML file

« More »

GetNewSurveyID

This function returns a new random sid if the existing one is taken, otherwise it returns the old one.

« More »

XMLImportTokens

« More »

XMLImportResponses

« More »

CSVImportResponses

This function imports a CSV file into the response table

« More »

XMLImportTimings

« More »

XSSFilterArray

« More »

TSVImportSurvey

Import survey from an TSV file template that does not require or allow assigning of GID or QID values.

NOTE: This currently only supports import of one language
« More »

updateset

« More »

deletelabelset

Deletes a label set alog with its labels

« More »

insertlabelset

« More »

modlabelsetanswers

« More »

fixorder

Function rewrites the sortorder for a label set

« More »

createChart

Generate a chart for a question

@param int $iQuestionID ID of the question
« More »

getQuestionMapData

Return data to populate a Google Map

« More »

buildSelects

Builds the list of addon SQL select statements that builds the query result set

@param $allfields An array containing the names of the fields/answers we want to display in the statistics summary
« More »

square

Simple function to square a value

« More »

check_HTML_image

check image HTML template

« More »

is_writable_recursive

« More »

check_PHPFunction

check for a specific PHPFunction, return HTML image

« More »

check_PathWriteable

check if file or directory exists and is writeable, returns via parameters by reference

« More »

check_FileWriteable

check if file exists and is writeable, returns via parameters by reference

« More »

check_DirectoryWriteable

check if directory exists and is writeable, returns via parameters by reference

« More »

subval_sort

« More »

LS

LS Library autoloader

« More »

scanFile

« More »

getSeed

Get seed for this answer If there is no seed create a new one

« More »

shuffle

Shuffle with seed

« More »

clean

« More »

ignore

« More »

iterateList

« More »

checkFile

« More »

checkStatic

« More »

SureRemoveDir

« More »

Constants

SHOW_NO_ANSWER

« More »

QUESTION_START

« More »

CHECKED

« More »

SELECTED

« More »

PARANOID

« More »

SYSTEM

« More »

FLOAT

« More »

MAGIC_QUOTES

« More »

LEM_DEBUG_TIMING

« More »

LEM_DEBUG_VALIDATION_SUMMARY

« More »

LEM_DEBUG_VALIDATION_DETAIL

« More »

LEM_PRETTY_PRINT_ALL_SYNTAX

« More »

LEM_DEFAULT_PRECISION

« More »

K_PATH_IMAGES

« More »

$full_constant

« More »

IMAGE_ . $type . _SIZE

« More »

K_TCPDF_EXTERNAL_CONFIG

« More »

PDF_PAGE_FORMAT

« More »

PDF_PAGE_ORIENTATION

« More »

PDF_CREATOR

« More »

PDF_AUTHOR

« More »

PDF_HEADER_TITLE

« More »

PDF_HEADER_STRING

« More »

PDF_HEADER_LOGO_WIDTH

« More »

PDF_UNIT

« More »

PDF_MARGIN_HEADER

« More »

PDF_MARGIN_TOP

« More »

PDF_MARGIN_BOTTOM

« More »

PDF_MARGIN_LEFT

« More »

PDF_MARGIN_RIGHT

« More »

PDF_FONT_NAME_MAIN

« More »

PDF_FONT_SIZE_MAIN

« More »

PDF_FONT_NAME_DATA

« More »

PDF_FONT_SIZE_DATA

« More »

PDF_FONT_MONOSPACED

« More »

PDF_IMAGE_SCALE_RATIO

« More »

HEAD_MAGNIFICATION

« More »

K_CELL_HEIGHT_RATIO

« More »

K_TITLE_MAGNIFICATION

« More »

K_SMALL_RATIO

« More »

K_THAI_TOPCHARS

« More »

K_TCPDF_CALLS_IN_HTML

« More »

$const

« More »

LOGO_URL

« More »

PRESENTATION

« More »

FIREBUG

« More »

TEST_BASE_URL

Change the following URL based on your server configuration Make sure the URL ends with a slash so that we can use relative URLs in test cases

« More »

BASEPATH

« More »

BASEPATH

« More »

STDIN

« More »

YII_DEBUG

« More »

APPPATH

« More »

BASEPATH

« More »

BASEPATH

« More »

FCPATH

« More »

SYSDIR

« More »

APPPATH

« More »

YII_DEBUG

« More »

BASEPATH

« More »

FCPATH

« More »

SYSDIR

« More »

APPPATH

« More »

YII_DEBUG

« More »

BASEPATH

« More »

Classes, interfaces and traits

IWriter

« More »

iPluginStorage

« More »

iPlugin

« More »

iQuestion

« More »

Psr4AutoloaderClass

An example of a general-purpose implementation that includes the optional functionality of allowing multiple base directories for a single namespace prefix.

Given a foo-bar package of classes in the file system at the following paths ... /path/to/packages/foo-bar/ src/ Baz.php # Foo\Bar\Baz Qux/ Quux.php # Foo\Bar\Qux\Quux tests/ BazTest.php # Foo\Bar\BazTest Qux/ QuuxTest.php # Foo\Bar\Qux\QuuxTest ... add the path to the class files for the \Foo\Bar\ namespace prefix as follows: <?php // instantiate the loader $loader = new \Example\Psr4AutoloaderClass; // register the autoloader $loader->register(); // register the base directories for the namespace prefix $loader->addNamespace('Foo\Bar', '/path/to/packages/foo-bar/src'); $loader->addNamespace('Foo\Bar', '/path/to/packages/foo-bar/tests'); The following line would cause the autoloader to attempt to load the \Foo\Bar\Qux\Quux class from /path/to/packages/foo-bar/src/Qux/Quux.php: <?php new \Foo\Bar\Qux\Quux; The following line would cause the autoloader to attempt to load the \Foo\Bar\Qux\QuuxTest class from /path/to/packages/foo-bar/tests/Qux/QuuxTest.php: <?php new \Foo\Bar\Qux\QuuxTest;
« More »

ClassFactory

« More »

SurveyRuntimeHelper

« More »

questionHelper

General helper class for generating views.

« More »

userstatistics_helper

« More »

LimeExpressionManager

« More »

ExpressionManager

Description of ExpressionManager (1) Does safe evaluation of PHP expressions. Only registered Functions, and known Variables are allowed.

(a) Functions include any math, string processing, conditional, formatting, etc. functions (2) This class replaces LimeSurvey's <= 1.91+ process of resolving strings that contain LimeReplacementFields (a) String is split by expressions (by curly braces, but safely supporting strings and escaped curly braces) (b) Expressions (things surrounded by curly braces) are evaluated - thereby doing LimeReplacementField substitution and/or more complex calculations (c) Non-expressions are left intact (d) The array of stringParts are re-joined to create the desired final string. (3) The core of Expression Manager is a Recursive Descent Parser (RDP), based off of one build via JavaCC by TMSWhite in 1999. (a) Functions that start with RDP_ should not be touched unless you really understand compiler design.
« More »

remotecontrol_handle

This class handles all methods of the RemoteControl 2 API

« More »

viewHelper

General helper class for generating views.

« More »

ExportSurveyResultsService

« More »

AjaxHelper

Ajax helper This class will help to standardize the Ajax communication between server and client.

See the manual page for more info: https://manual.limesurvey.org/Backend_Ajax_protocol
« More »

JsonOutput

Base class for json output

« More »

JsonOutputNoPermission

Permission set to false

« More »

JsonOutputError

Set error in constructor, which will be shown as a pop-up on client.

« More »

JsonOutputSuccess

Set success message in constructor, which will be shown as a pop-up on client.

« More »

JsonOutputModal

Base class for json output

« More »

JsonOutputNotLoggedIn

Echo html for log in form modal body This is a special case of JsonOutputModal, but with fixed html Only used through JsonOutputNotLoggedIn in AdminController::run.

« More »

CsvWriter

Contains functions and properties that are common to all writers.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

SurveyDao

« More »

DocWriter

Contains functions and properties that are common to all writers.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

JsonWriter

Contains functions and properties that are common to all writers.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

PdfWriter

Contains functions and properties that are common to all writers.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

ExcelWriter

Exports results in Microsoft Excel format. By default the Writer sends HTTP headers and the file contents via HTTP. For testing purposes a file name can be to the constructor which will cause the ExcelWriter to output to a file.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

HtmlWriter

Contains functions and properties that are common to all writers.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

SurveyObj

« More »

Writer

Contains functions and properties that are common to all writers.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

Translator

« More »

FormattingOptions

« More »

statistics_helper

« More »

pdfHelper

General helper class for generating pdf.

« More »

SurveysController

This class will handle survey creation and manipulation.

« More »

Statistics_userController

« More »

index

« More »

PluginsController

« More »

UploaderController

« More »

SurveyController

« More »

AdminController

« More »

limereplacementfields

Survey Common Action

This controller contains common functions for survey related views.
« More »

PluginManager

Survey Common Action

This controller contains common functions for survey related views.
« More »

remotecontrol

Survey Common Action

This controller contains common functions for survey related views.
« More »

PluginHelper

Survey Common Action

This controller contains common functions for survey related views.
« More »

Expressions

Survey Common Action

This controller contains common functions for survey related views.
« More »

Index

Survey Common Action

This controller contains common functions for survey related views.
« More »

ExpressionValidate

Survey Common Action

This controller contains common functions for survey related views.
« More »

participantsaction

This is the main controller for Participants Panel

This controller contains common functions for survey related views.
« More »

homepagesettings

Survey Common Action

This controller contains common functions for survey related views.
« More »

NotificationController

Mostly for Ajax actions

This controller contains common functions for survey related views.
« More »

update

This controller performs updates, it is highly ajax oriented Methods are only called from JavaScript controller (wich is called from the global_setting view). comfortupdate.js is the first registered script.

Public methods are written in a chronological way: - First, when the user click on the 'check for updates' button, the plugin buildComfortButtons.js call for getstablebutton() or getbothbuttons() method and inject the HTML inside the li#udapteButtonsContainer in the _checkButtons view - Then, when the user click on one of those buttons, the comfortUpdateNextStep.js plugin will call for the getWelcome() method and inject the HTML inside div#updaterContainer in the _right_container view (all steps will be then injected here) - Then, when the user click on the continue button, the comfortUpdateNextStep.js plugin will call for the step1() method and inject the the HTML inside div#updaterContainer in the _right_container view - etc. etc. Some steps must be shown out of the chronological process: getNewKey and submitKey. They are at the end of the controller's interface. Some steps must be 'checked again' after the user fixed some errors (such as file permissions). Those steps are/can be diplayed by the plugin displayComfortStep.js. They are called from buttons like : <a class='button' href='<?php Yii::app()->createUrl('admin/globalsettings', array('update'=>'methodToCall', 'neededVariable'=>$value));?>'> <span class='ui-button-text'>button text</span> </a> so they will call an url such as : globalsettings?update=methodToCall&neededVariable=value. So the globalsetting controller will render the view as usual, but : the _ajaxVariables view will parse those url datas to some hidden field. The comfortupdate.js check the value of the hidden field update, and if the update's one contain a step, it call displayComfortStep.js wich will display the right step instead of the 'check update' buttons. Most steps are retrieving datas from the comfort update server thanks to the model UpdateForm's methods. The server return an answer object, with a property 'result' to tell if the process was succesfull or if it failed. This object contains in general all the necessary datas for the views. Handling errors : They are different types of possible errors : - Warning message (like : modified files, etc.) : they don't stop the process, they are parsed to the step view, and the view manage how to display them. They can be generated from the ComfortUpdate server ($answer_from_server->result == TRUE ; and something like $answer_from_server->error == message or anything else that the step view manage ), or in the LimeSurvey update controller/model - Error while processing a request on the server part : should never happen, but if something goes wrong in the server side (like generating an object from model), the server returns an error object ($answer_from_server->result == FALSE ; $answer_from_server->error == message ) Those errors stop the process, and are display in _error view. Very usefull to debug. They are parsed directly to $this->_renderError - Error while checking needed datas in the LimeSurvey update controller : the controller always check if it has the needed datas (such as destintion_build, or zip_file), or the state of the key (outdated, etc). For the code to be dryer, the method parse an error string to $this->_renderErrorString($error), wich generate the error object, and then render the error view
« More »

htmleditor_pop

Survey Common Action

This controller contains common functions for survey related views.
« More »

jsonRPCServer

This class build a json-RPC Server 1.0 http://json-rpc.org/wiki/specification

« More »

LSZend_XmlRpc_Response_Http

« More »

jsonRPCClient

The object of this class are generic jsonRPC 1.0 clients http://json-rpc.org/wiki/specification

« More »

Date_Time_Converter

Date and Time Converter by Elac v0.9.3 elacdude@gmail.com www.elacdude.com

You are free to use this code free of charge, modify it, and distrubute it, just leave this comment block at the top of this file. Changes/Modifications 6/24/08 - Version 0.9.2 released. Minor additions - Added "S" support. (th, rd, st, nd. example: 5th) - Added a few more abbreviations for units of time in calculate() (s. sec. secs. min. mins. m. and more) - Added example.php (php examples and usage) and date_time_formats.html (list of supported date/time formats) to the package. 6/25/08 - Version 0.9.3 released. Bug fixes - Fixed month subtraction (wrap to previous year) bug - Fixed month and year "$only_return_the_value=true" bug. If you calculated by months or years, and set $only_return_the_value=true, it would overwrite the values instead of just returning them. - Fixed the "D" (Sun, Mon, Tue) bug. If you supplied "D" and "d" in the same mask, it would not return the correct output. - Changed the names of public variables "day", "month", and "year" added "s" at the end for consistency purposes 11/14/08 - Version 0.9.4 released. Bug fix - Got rid of the _one_dig_num function and used ltrim($num "0") instead
« More »

LSjsonRPCServer

This class build a json-RPC Server 1.0 http://json-rpc.org/wiki/specification

« More »

LS_Exception

LS Base Exception Class

« More »

LimesurveyApi

Class exposing a Limesurvey API to plugins.

This class is instantiated by the plugin manager, plugins can obtain it by calling getAPI() on the plugin manager.
« More »

PluginEventContent

« More »

PluginManager

Factory for limesurvey plugin objects.

« More »

AuthPluginBase

Base class for plugins.

« More »

DummyStorage

« More »

DbStorage

« More »

PluginBase

Base class for plugins.

« More »

QuestionPluginBase

NB: Deleting this class will break plugin API, since plugins then would have to extend PluginBase in the namespace instead of this class.

« More »

QuestionPluginAbstract

Base class for plugins.

« More »

QuestionBase

« More »

PluginEvent

« More »

SimpleTester

« More »

ShowPasses

Display passes

« More »

SmallReporter

Displays a tiny div in upper right corner when ok

« More »

MinimalReporter

Minimal only displays on error

« More »

BigData

Class containing helper functions for dealing with "big data".

« More »

BigFile

« More »

MersenneTwister

Custom random algorithm to get consistent behaviour between PHP versions.

Copied from: http://www.dr-chuck.com/csev-blog/2015/09/a-mersenne_twister-implementation-in-php/
« More »

quexmlpdf

A TCPDF based class to produce queXF compatible questionnaire PDF files and banding description XML from queXML

« More »

ProgressBar

« More »

SettingsStorage

« More »

httpRequestIt

« More »

Load_answers

« More »

PluginEventBehavior

« More »

SettingGlobal

« More »

ParticipantAttributeNameLang

This is the model class for table "{{{{participant_attribute_names}}}}".

The followings are the available columns in table '{{{{participant_attribute_names}}}}':
« More »

LabelSet

« More »

PluginSetting

This is the model class for table "{{plugin_settings}}".

« More »

SurveyLanguageSetting

Class SurveyLanguageSetting

« More »

CPDBException

Specific exception for our purpose Used to spit out error messages if mapping attributes doesn't work.

« More »

Participant

This is the model class for table "{{participants}}".

The followings are the available columns in table '{{participants}}':
« More »

Token

For code completion we add the available scenario's here Attributes

In this implementation class definitions are generated dynamically. This class and its descendants should be declared abstract!
« More »

UniqueNotification

Subclass of Notification, but with unique constraint.

If a new message is created exactly like another one, it will be marked as unread.
« More »

Condition

« More »

QuestionAttribute

« More »

ParticipantAttributeName

This is the model class for table "{{{{participant_attribute_names}}}}".

The followings are the available columns in table '{{{{participant_attribute_names}}}}':
« More »

Response

Relations

In this implementation class definitions are generated dynamically. This class and its descendants should be declared abstract!
« More »

PluginDynamic

Dynamic model used by plugins to access their table(s).

« More »

Session

« More »

Plugin

This is the model class for table "{{plugins}}".

« More »

UserGroup

« More »

Label

« More »

DefaultValue

« More »

Answer

« More »

SurveyDynamic

« More »

Question

« More »

SurveyTimingDynamic

« More »

ParticipantAttribute

« More »

QuotaLanguageSetting

« More »

Permission

« More »

TokenDynamic

« More »

Quota

Class Quota

« More »

UserInGroup

« More »

InstallerConfigForm

« More »

SurveyURLParameter

« More »

Boxes

This is the model class for table "{{boxes}}".

The followings are the available columns in table '{{boxes}}':
« More »

TemplateException

« More »

Template

« More »

ParticipantShare

This is the model class for table "{{participant_shares}}".

The followings are the available columns in table '{{participant_shares}}':
« More »

QuestionGroup

« More »

ExpressionError

« More »

Dynamic

This class implements the basis for dynamic models.

In this implementation class definitions are generated dynamically. This class and its descendants should be declared abstract!
« More »

QuotaMember

« More »

Notification

This is the model class for table "{{notifications}}".

The followings are the available columns in table '{{notifications}}':
« More »

Assessment

« More »

Timing

Dynamic response timing model.

« More »

SavedControl

« More »

Survey

Class Survey

« More »

LSActiveRecord

« More »

FailedLoginAttempt

« More »

LSUserIdentity

For 2.06 most of the functionality in this class will be moved to the LSWebUser class.

To not delay release of 2.05 this class was kept the way it is now. @@TODO Move to LSWebUser and change documentation / workflow for authentication plugins
« More »

DbHttpSession

« More »

LSHttpRequest

Description of HttpRequest

Used in LSYii_Application.php <pre> 'request'=>array( 'class'=>'HttpRequest', 'noCsrfValidationRoutes'=>array( '^services/wsdl.*$' ), 'enableCsrfValidation'=>true, 'enableCookieValidation'=>true, ), </pre> Every route will be interpreted as a regex pattern.
« More »

LSWebUser

« More »

ConsoleApplication

« More »

PluginManager

Class PluginManagerD Dummy class for 2.05 plugins.

« More »

LSYii_ClientScript

« More »

LSYii_CompareInsensitiveValidator

« More »

LSYii_Validators

« More »

LSYii_CaseValidator

« More »

LSYii_Controller

« More »

LSYii_Locale

« More »

AuthPluginBase

Base class for plugins.

« More »

MysqlSchema

« More »

DbConnection

« More »

PgsqlSchema

« More »

MssqlSchema

« More »

LSYii_EmailIDNAValidator

« More »

PluginBase

NB: Deleting this class will break plugin API, since plugins then would have to extend PluginBase in the namespace instead of this class.

« More »

LSDbCriteria

« More »

LSBootstrap

For updating from 2.06 to 2.5.

2.06 logout action still looks for this file at the end of the update process, causing an internal server error.
« More »

LSYii_Application

Implements global config

« More »

UserIdentity

« More »

PluginEvent

« More »

LSAuthResult

« More »

AuthLDAP

Base class for plugins.

« More »

Authwebserver

Base class for plugins.

« More »

RDataWriter

Contains functions and properties that are common to all writers.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

RSyntaxWriter

Contains functions and properties that are common to all writers.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

ExportR

Base class for plugins.

« More »

ExtendedStartpage

Extended startpage plugin to display more information about the sctive surveys on the startpage.

« More »

STATAxmlWriter

Contains functions and properties that are common to all writers.

All extending classes must implement the internalWrite(...) method and have access to functionality as described below: TODO Write more docs here
« More »

ExportSTATAxml

Base class for plugins.

« More »

QuickMenu

Some extra quick-menu items to ease everyday usage

« More »

QuickMenuException

Local exception

« More »

QuickMenuButton

Small class for buttons. Basically just an array wrapper with some default values.

Implements ArrayAccess so core code can use it as an array.
« More »

Authdb

Base class for plugins.

« More »

oldUrlCompat

Plugin to redirect old url system (index.php?sid=surveyid) to the new url

« More »

ExpressionManagerTest

« More »

WebTestCase

The base class for functional test cases.

In this class, we set the base URL for the test application. We also provide some common methods to be used by concrete test classes.
« More »

CTestCase

« More »

WipeCommand

« More »

PluginCommand

« More »

InstallCommand

« More »

ResetPasswordCommand

« More »

TestHelper

« More »

DateTimeTest

« More »

DateTimeForwardBackTest

« More »

DateTimeDefaultAnswerExpressionTest

« More »

ExpressionManagerCoreTest

Test expression evaluation in PHP vs JS.

« More »

ExpressionCoreAux

Helper class for expression core tests.

« More »

UpdateDbHelperTest

« More »

TestBaseClass

« More »

Example

NB: Deleting this class will break plugin API, since plugins then would have to extend PluginBase in the namespace instead of this class.

« More »

ShowResponse

NB: Deleting this class will break plugin API, since plugins then would have to extend PluginBase in the namespace instead of this class.

« More »

UnActivatable

Example plugin that can not be activated.

« More »

mdlAuditlog

This is the model class for table "{{plugins}}".

« More »

AuditLog

Base class for plugins.

« More »