ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilObjSurvey. More...
Public Member Functions | |
__construct ($a_id=0, $a_call_by_reference=true) | |
Constructor public. More... | |
create ($a_upload=false) | |
create survey object More... | |
createMetaData () | |
Create meta data entry. More... | |
update ($a_upload=false) | |
update object data More... | |
createReference () | |
read () | |
read object data from db into object public More... | |
addQuestion ($question_id) | |
Adds a question to the survey (used in importer!) More... | |
delete () | |
delete object and all related data More... | |
deleteSurveyRecord () | |
Deletes the survey from the database. More... | |
deleteAllUserData ($reset_LP=true) | |
Deletes all user data of a survey. More... | |
removeSelectedSurveyResults ($finished_ids) | |
Deletes the user data of a given array of survey participants. More... | |
& | getSurveyParticipants ($finished_ids=null, $force_non_anonymous=false, $include_invites=false) |
isComplete () | |
Returns 1, if a survey is complete for use. More... | |
saveCompletionStatus () | |
Saves the completion status of the survey. More... | |
duplicateQuestionForSurvey ($question_id, $a_force=false) | |
Takes a question and creates a copy of the question for use in the survey. More... | |
insertQuestion ($question_id) | |
Inserts a question in the survey and saves the relation to the database The question is appended to the end (last question) public. More... | |
isQuestionInSurvey ($a_question_fi) | |
Check if a question is already in the survey. More... | |
insertQuestionblock ($questionblock_id) | |
Inserts a questionblock in the survey and saves the relation to the database. More... | |
saveUserSettings ($usr_id, $key, $title, $value) | |
deleteUserSettings ($id) | |
getUserSettings ($usr_id, $key) | |
saveToDb () | |
Saves a survey object to a database. More... | |
saveQuestionsToDb () | |
Saves the survey questions to the database. More... | |
getAnonymousId ($id) | |
Checks for an anomyous survey id in the database an returns the id. More... | |
getQuestionGUI ($questiontype, $question_id) | |
Returns a question gui object to a given questiontype and question id. More... | |
getQuestionType ($question_id) | |
Returns the question type of a question with a given id. More... | |
getSurveyId () | |
Returns the survey database id. More... | |
setAnonymize ($a_anonymize) | |
set anonymize status More... | |
getAnonymize () | |
get anonymize status More... | |
setCalculateSumScore (bool $a_val) | |
Set calculate sum score. More... | |
getCalculateSumScore () | |
Get calculate sum score. More... | |
isAccessibleWithoutCode () | |
Checks if the survey is accessable without a survey code. More... | |
hasAnonymizedResults () | |
Checks if the survey results are to be anonymized. More... | |
loadFromDb () | |
Loads a survey object from a database. More... | |
loadQuestionsFromDb () | |
Loads the survey questions from the database. More... | |
fixSequenceStructure () | |
Remove duplicate sequence entries, see #22018. More... | |
setAuthor ($author="") | |
Sets the authors name of the ilObjSurvey object. More... | |
saveAuthorToMetadata ($a_author="") | |
Saves an authors name into the lifecycle metadata if no lifecycle metadata exists This will only be called for conversion of "old" tests where the author hasn't been stored in the lifecycle metadata. More... | |
getAuthor () | |
Gets the authors name of the ilObjSurvey object. More... | |
getShowQuestionTitles () | |
Gets the status of the display_question_titles attribute. More... | |
setShowQuestionTitles ($a_show) | |
Sets the status of the display_question_titles attribute. More... | |
showQuestionTitles () | |
Sets the question titles visible during the query. More... | |
hideQuestionTitles () | |
Sets the question titles hidden during the query. More... | |
setIntroduction ($introduction="") | |
Sets the introduction text. More... | |
setOutro ($outro="") | |
Sets the outro text. More... | |
getStartDate () | |
Gets the start date of the survey. More... | |
canStartSurvey ($anonymous_id=null, $a_no_rbac=false) | |
Checks if the survey can be started. More... | |
setStartDate ($start_date="") | |
Sets the start date of the survey. More... | |
setStartDateAndTime ($start_date="", $start_time) | |
Sets the start date of the survey. More... | |
getEndDate () | |
Gets the end date of the survey. More... | |
setEndDate ($end_date="") | |
Sets the end date of the survey. More... | |
setEndDateAndTime ($end_date="", $end_time) | |
Sets the end date of the survey. More... | |
getEvaluationAccess () | |
Gets the learners evaluation access. More... | |
setEvaluationAccess ($evaluation_access=self::EVALUATION_ACCESS_OFF) | |
Sets the learners evaluation access. More... | |
setActivationVisibility ($a_value) | |
getActivationVisibility () | |
isActivationLimited () | |
setActivationLimited ($a_value) | |
getIntroduction () | |
Gets the introduction text. More... | |
getOutro () | |
Gets the outro text. More... | |
& | getExistingQuestions () |
Gets the question id's of the questions which are already in the survey. More... | |
& | getQuestionpoolTitles ($could_be_offline=false, $showPath=false) |
Get the titles of all available survey question pools. More... | |
moveQuestions ($move_questions, $target_index, $insert_mode) | |
Move questions and/or questionblocks to another position. More... | |
removeQuestion ($question_id) | |
Remove a question from the survey. More... | |
removeConstraintsConcerningQuestion ($question_id) | |
Remove constraints concerning a question with a given question_id. More... | |
removeQuestions ($remove_questions, $remove_questionblocks) | |
Remove questions from the survey. More... | |
unfoldQuestionblocks ($questionblocks) | |
Unfolds question blocks of a question pool. More... | |
removeQuestionFromBlock ($question_id, $questionblock_id) | |
addQuestionToBlock ($question_id, $questionblock_id) | |
isQuestionInAnyBlock ($a_question_fi) | |
Is question already in a block? More... | |
& | getQuestionblockQuestions ($questionblock_id) |
Returns the question titles of all questions of a question block. More... | |
& | getQuestionblockQuestionIds ($questionblock_id) |
Returns the question id's of all questions of a question block. More... | |
createQuestionblock ($title, $show_questiontext, $show_blocktitle, $questions, $compress_view=false) | |
Creates a question block for the survey. More... | |
modifyQuestionblock ($questionblock_id, $title, $show_questiontext, $show_blocktitle, $compress_view=false) | |
Modifies a question block. More... | |
deleteConstraints ($question_id) | |
Deletes the constraints for a question. More... | |
deleteConstraint ($constraint_id) | |
Deletes a constraint of a question. More... | |
& | getSurveyQuestions ($with_answers=false) |
Returns the survey questions and questionblocks in an array. More... | |
setObligatoryStates ($obligatory_questions) | |
Sets the obligatory states for questions in a survey from the questions form. More... | |
& | getSurveyPages () |
Returns the survey pages in an array (a page contains one or more questions) More... | |
getNextPage ($active_page_question_id, $direction) | |
Returns the next "page" of a running test. More... | |
& | getAvailableQuestionpools ($use_obj_id=false, $could_be_offline=false, $showPath=false, $permission="read") |
Returns the available question pools for the active user. More... | |
getPrecondition ($id) | |
Returns a precondition with a given id. More... | |
getConstraints ($question_id) | |
Returns the constraints to a given question or questionblock. More... | |
& | getVariables ($question_id) |
Returns all variables of a question. More... | |
addConstraint ($if_question_id, $relation, $value, $conjunction) | |
Adds a constraint. More... | |
addConstraintToQuestion ($to_question_id, $constraint_id) | |
Adds a constraint to a question. More... | |
updateConstraint ($precondition_id, $if_question_id, $relation, $value, $conjunction) | |
Updates a precondition. More... | |
updateConjunctionForQuestions ($questions, $conjunction) | |
getAllRelations ($short_as_key=false) | |
Returns all available relations. More... | |
deleteWorkingData ($question_id, $active_id) | |
Deletes the working data of a question in the database. More... | |
loadWorkingData ($question_id, $active_id) | |
Gets the working data of question from the database. More... | |
startSurvey ($user_id, $anonymous_id, $appraisee_id) | |
Starts the survey creating an entry in the database. More... | |
finishSurvey ($finished_id) | |
Finishes the survey creating an entry in the database. More... | |
setPage ($finished_id, $page_id) | |
Sets the number of the active survey page. More... | |
sendNotificationMail ($a_user_id, $a_anonymize_id, $a_appr_id) | |
isSurveyStarted ($user_id, $anonymize_id, $appr_id=0) | |
Checks if a user already started a survey. More... | |
getActiveID ($user_id, $anonymize_id, $appr_id) | |
Checks if a user already started a survey. More... | |
getLastActivePage ($active_id) | |
Returns the question id of the last active page a user visited in a survey. More... | |
checkConstraint ($constraint_data, $working_data) | |
Checks if a constraint is valid. More... | |
& | getSurveyFinishedIds () |
Get the finished id's of all survey participants. More... | |
getUserSpecificResults ($finished_ids) | |
Calculates the evaluation data for the user specific results. More... | |
getUserDataFromActiveId ($active_id, $force_non_anonymous=false) | |
Returns the user information from an active_id (survey_finished.finished_id) More... | |
& | getEvaluationByUser ($questions, $active_id) |
Calculates the evaluation data for a given user or anonymous id. More... | |
getQuestionsTable ($arrFilter) | |
Calculates the data for the output of the question browser. More... | |
getQuestionblocksTable ($arrFilter) | |
Calculates the data for the output of the questionblock browser. More... | |
toXML () | |
Returns a QTI xml representation of the survey. More... | |
locateImportFiles ($a_dir) | |
Locates the import directory and the xml file in a directory with an unzipped import file. More... | |
importObject ($file_info, $svy_qpl_id) | |
Imports a survey from XML into the ILIAS database. More... | |
getTextblock ($question_id) | |
cloneTextblocks ($mapping) | |
Clones the textblocks of survey questions. More... | |
createExportDirectory () | |
creates data directory for export files (data_dir/svy_data/svy_<id>/export, depending on data directory that is set in ILIAS setup/ini) More... | |
getExportDirectory () | |
get export directory of survey More... | |
createImportDirectory () | |
creates data directory for import files (data_dir/svy_data/svy_<id>/import, depending on data directory that is set in ILIAS setup/ini) More... | |
getImportDirectory () | |
get import directory of survey More... | |
saveHeading ($heading="", $insertbefore) | |
isAnonymousKey ($key) | |
bindSurveyCodeToUser ($user_id, $code) | |
isAnonymizedParticipant ($key) | |
checkSurveyCode ($code) | |
getSurveyCodesForExport (array $a_codes=null, array $a_ids=null) | |
Returns a list of survey codes for file export. More... | |
getSurveyCodesTableData (array $ids=null, $lang=null) | |
Fetches the data for the survey codes table. More... | |
isSurveyCodeUsed ($code) | |
isSurveyCodeUnique ($code) | |
createSurveyCodes ($nrOfCodes) | |
importSurveyCode ($a_anonymize_key, $a_created, $a_data) | |
createSurveyCodesForExternalData ($data) | |
sendCodes ($not_sent, $subject, $message, $lang) | |
getExternalCodeRecipients ($a_check_finished=false) | |
isSurveyFinishedByCode ($a_code) | |
Get if survey is finished for an specific anonymous user code. More... | |
deleteSurveyCode ($survey_code) | |
Deletes a given survey access code. More... | |
getUserAccessCode ($user_id) | |
Returns a survey access code that was saved for a registered user. More... | |
saveUserAccessCode ($user_id, $access_code) | |
Saves a survey access code for a registered user to the database. More... | |
createNewAccessCode () | |
Returns a new, unused survey access code. More... | |
getLastAccess ($finished_id) | |
prepareTextareaOutput ($txt_output) | |
Prepares a string for a text area output in surveys. More... | |
isHTML ($a_text) | |
Checks if a given string contains HTML or not. More... | |
addMaterialTag (&$a_xml_writer, $a_material, $close_material_tag=true, $add_mobs=true, $attribs=null) | |
Creates an XML material tag from a plain text or xhtml text. More... | |
canExportSurveyCode () | |
Checks if the survey code can be exported with the survey evaluation. More... | |
processPrintoutput2FO ($print_output) | |
Convert a print output to XSL-FO. More... | |
deliverPDFfromFO ($fo) | |
Delivers a PDF file from a XSL-FO string. More... | |
isPluginActive ($a_pname) | |
Checks whether or not a question plugin with a given name is active. More... | |
setSurveyId ($survey_id) | |
Sets the survey id. More... | |
& | getUserData ($ids) |
Returns a data of all users specified by id list. More... | |
getMailNotification () | |
setMailNotification ($a_notification) | |
getMailAddresses () | |
setMailAddresses ($a_addresses) | |
getMailParticipantData () | |
setMailParticipantData ($a_data) | |
setStartTime ($finished_id, $first_question) | |
setEndTime ($finished_id) | |
getWorkingtimeForParticipant ($finished_id) | |
setTemplate ($template_id) | |
getTemplate () | |
updateOrder (array $a_order) | |
getPoolUsage () | |
setPoolUsage ($a_value) | |
isPoolActive () | |
Get current pool status. More... | |
applySettingsTemplate ($template_id) | |
Apply settings template. More... | |
updateCode ($a_id, $a_email, $a_last_name, $a_first_name, $a_sent) | |
get360Mode () | |
set360SelfEvaluation ($a_value) | |
get360SelfEvaluation () | |
set360SelfAppraisee ($a_value) | |
get360SelfAppraisee () | |
set360SelfRaters ($a_value) | |
get360SelfRaters () | |
set360Results ($a_value) | |
get360Results () | |
addAppraisee ($a_user_id) | |
sendAppraiseeNotification ($a_user_id) | |
Send appraisee notification. More... | |
sendAppraiseeCloseNotification ($a_user_id) | |
Send appraisee notification. More... | |
sendRaterNotification ($a_user_id, $a_appraisee_id) | |
Send rater notification. More... | |
isAppraisee ($a_user_id) | |
isAppraiseeClosed ($a_user_id) | |
deleteAppraisee ($a_user_id) | |
getAppraiseesData () | |
addRater ($a_appraisee_id, $a_user_id, $a_anonymous_id=0) | |
isRater ($a_appraisee_id, $a_user_id, $a_anonymous_id=0) | |
deleteRater ($a_appraisee_id, $a_user_id, $a_anonymous_id=0) | |
getRatersData ($a_appraisee_id) | |
getAppraiseesToRate ($a_user_id, $a_anonymous_id=null) | |
getAnonymousIdByCode ($a_code) | |
is360SurveyStarted ($appr_id, $user_id, $anonymous_code=null) | |
getUserSurveyExecutionStatus ($a_code=null) | |
findCodeForUser ($a_user_id) | |
isUnusedCode ($a_code, $a_user_id) | |
getFinishedIdsForAppraiseeId ($a_appr_id, $a_exclude_appraisee=false) | |
getFinishedIdForAppraiseeIdAndRaterId ($a_appr_id, $a_rat_id) | |
Get finished id for an appraisee and a rater. More... | |
getFinishedIdsForSelfEval ($a_user_id) | |
setSkillService ($a_val) | |
Set skill service. More... | |
getSkillService () | |
Get skill service. More... | |
set360RaterSent ($a_appraisee_id, $a_user_id, $a_anonymous_id, $a_tstamp=null) | |
closeAppraisee ($a_user_id) | |
openAllAppraisees () | |
getReminderStatus () | |
setReminderStatus ($a_value) | |
getReminderStart () | |
setReminderStart (ilDate $a_value=null) | |
getReminderEnd () | |
setReminderEnd (ilDate $a_value=null) | |
getReminderFrequency () | |
setReminderFrequency ($a_value) | |
getReminderTarget () | |
setReminderTarget ($a_value) | |
getReminderLastSent () | |
setReminderLastSent ($a_value) | |
getReminderTemplate ($selectDefault=false) | |
setReminderTemplate ($a_value) | |
getTutorNotificationStatus () | |
setTutorNotificationStatus ($a_value) | |
getTutorNotificationRecipients () | |
setTutorNotificationRecipients (array $a_value) | |
getTutorNotificationTarget () | |
setTutorNotificationTarget ($a_value) | |
getTutorResultsStatus () | |
setTutorResultsStatus ($a_value) | |
getTutorResultsRecipients () | |
setTutorResultsRecipients (array $a_value) | |
sent360Reminders () | |
Send 360 reminders. More... | |
send360ReminderToUser ($a_user_id, $a_appraisee_ids) | |
Send rater notification. More... | |
getNotificationTargetUserIds ($a_use_invited) | |
checkReminder () | |
setActivationStartDate ($starting_time=null) | |
setActivationEndDate ($ending_time=null) | |
getActivationStartDate () | |
getActivationEndDate () | |
setViewOwnResults ($a_value) | |
hasViewOwnResults () | |
setMailOwnResults ($a_value) | |
hasMailOwnResults () | |
setMailConfirmation ($a_value) | |
hasMailConfirmation () | |
setAnonymousUserList ($a_value) | |
hasAnonymousUserList () | |
setMode ($a_value) | |
getMode () | |
setSelfEvaluationResults ($a_value) | |
getSelfEvaluationResults () | |
sendTutorResults () | |
getMaxSumScore () | |
Get max sum score. More... | |
![]() | |
__construct ($a_id=0, $a_reference=true) | |
Constructor public. More... | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) More... | |
read () | |
read object data from db into object More... | |
getId () | |
get object id public More... | |
setId ($a_id) | |
set object id public More... | |
setRefId ($a_id) | |
set reference id public More... | |
getRefId () | |
get reference id public More... | |
getType () | |
get object type public More... | |
setType ($a_type) | |
set object type public More... | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
get object title public More... | |
getUntranslatedTitle () | |
get untranslated object title public More... | |
setTitle ($a_title) | |
set object title More... | |
getDescription () | |
get object description More... | |
setDescription ($a_desc) | |
set object description More... | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
get import id More... | |
setImportId ($a_import_id) | |
set import id More... | |
setOfflineStatus ($a_status) | |
Set offline status. More... | |
getOfflineStatus () | |
Get offline status. More... | |
supportsOfflineHandling () | |
Check whether object supports offline handling. More... | |
getOwner () | |
get object owner More... | |
getOwnerName () | |
setOwner ($a_owner) | |
set object owner More... | |
getCreateDate () | |
get create date public More... | |
getLastUpdateDate () | |
get last update date public More... | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. More... | |
create () | |
create More... | |
update () | |
update object in db More... | |
MDUpdateListener ($a_element) | |
Meta data update listener. More... | |
createMetaData () | |
create meta data entry More... | |
updateMetaData () | |
update meta data entry More... | |
deleteMetaData () | |
delete meta data entry More... | |
updateOwner () | |
update owner of object in db More... | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? More... | |
setPermissions ($a_parent_ref) | |
set permissions of object More... | |
setParentRolePermissions ($a_parent_ref) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
count references of object More... | |
delete () | |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More... | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public More... | |
applyDidacticTemplate ($a_tpl_id) | |
Apply template. More... | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. More... | |
cloneMetaData ($target_obj) | |
Copy meta data. More... | |
getPossibleSubObjects ($a_filter=true) | |
get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Static Public Member Functions | |
static | _getQuestionblock ($questionblock_id) |
Returns the database row for a given question block. More... | |
static | _addQuestionblock ($title="", $owner=0, $show_questiontext=true, $show_blocktitle=false, $compress_view=false) |
Adds a questionblock to the database. More... | |
static | _getConstraints ($survey_id) |
Returns the constraints to a given question or questionblock. More... | |
static | _hasDatasets ($survey_id) |
static | _instanciateQuestion ($question_id) |
Creates an instance of a question with a given question id. More... | |
static | validateExternalRaterCode ($a_ref_id, $a_code) |
static | getSurveySkippedValue () |
static | getSurveysWithTutorResults () |
![]() | |
static | _lookupObjIdByImportId ($a_import_id) |
static | _lookupImportId ($a_obj_id) |
static | _lookupOwnerName ($a_owner_id) |
lookup owner name for owner id More... | |
static | _getIdForImportId ($a_import_id) |
get current object id for import id (static) More... | |
static | _getAllReferences ($a_id) |
get all reference ids of object More... | |
static | _lookupTitle ($a_id) |
lookup object title More... | |
static | lookupOfflineStatus ($a_obj_id) |
Lookup offline status using objectDataCache. More... | |
static | _lookupOwner ($a_id) |
lookup object owner More... | |
static | _getIdsForTitle ($title, $type='', $partialmatch=false) |
static | _lookupDescription ($a_id) |
lookup object description More... | |
static | _lookupLastUpdate ($a_id, $a_as_string=false) |
lookup last update More... | |
static | _getLastUpdateOfObjects ($a_objs) |
Get last update for a set of media objects. More... | |
static | _lookupObjId ($a_id) |
static | _setDeletedDate ($a_ref_id, $a_deleted_by) |
static | setDeletedDates ($a_ref_ids, $a_user_id) |
Set deleted date. More... | |
static | _resetDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _lookupDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _writeTitle ($a_obj_id, $a_title) |
write title to db (static) More... | |
static | _writeDescription ($a_obj_id, $a_desc) |
write description to db (static) More... | |
static | _writeImportId ($a_obj_id, $a_import_id) |
write import id to db (static) More... | |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type More... | |
static | _isInTrash ($a_ref_id) |
checks wether object is in trash More... | |
static | _hasUntrashedReference ($a_obj_id) |
checks wether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId ($a_ref_id) |
lookup object id More... | |
static | _getObjectsDataForType ($a_type, $a_omit_trash=false) |
get all objects of a certain type More... | |
static | _exists ($a_id, $a_reference=false, $a_type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. More... | |
static | _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true) |
Prepare copy wizard object selection. More... | |
static | _getIcon ( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $a_obj_ids) |
Get long description data. More... | |
static | getAllOwnedRepositoryObjects ($a_user_id) |
Get all ids of objects user owns. More... | |
static | fixMissingTitles ($a_type, array &$a_obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate ($a_id) |
Lookup creation date. More... | |
static | hasAutoRating ($a_type, $a_ref_id) |
Check if auto rating is active for parent group/course. More... | |
Protected Member Functions | |
getParticipantTextResults ($active_id) | |
checkTutorNotification () | |
sendTutorNotification () | |
sentReminderPlaceholders ($a_message, $a_user_id, array $a_context_params) | |
Class ilObjSurvey.
Definition at line 12 of file class.ilObjSurvey.php.
ilObjSurvey::__construct | ( | $a_id = 0 , |
|
$a_call_by_reference = true |
|||
) |
Constructor public.
integer | reference_id or object_id |
boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 212 of file class.ilObjSurvey.php.
References $DIC, $ilUser, ilObject\$lng, ILIAS\GlobalScreen\Provider\__construct(), ilLoggerFactory\getLogger(), and user().
|
static |
Adds a questionblock to the database.
string | $title | The questionblock title |
integer | $owner | The database id of the owner |
Definition at line 1993 of file class.ilObjSurvey.php.
References $DIC, $ilDB, ilObject\$owner, and ilObject\$title.
|
static |
Returns the constraints to a given question or questionblock.
public
Definition at line 2415 of file class.ilObjSurvey.php.
References $DIC, $ilDB, $result, and $survey_id.
|
static |
Returns the database row for a given question block.
integer | $questionblock_id | The database id of the question block |
Definition at line 1971 of file class.ilObjSurvey.php.
References $DIC, $ilDB, and $result.
Referenced by ilSurveyEvaluationGUI\evaluation(), and ilSurveyEditorGUI\initQuestionblockForm().
|
static |
Definition at line 2958 of file class.ilObjSurvey.php.
References $DIC, $ilDB, $result, and $survey_id.
Referenced by ilSurveyConstraintsGUI\constraintsObject(), ilSurveySyncTableGUI\importData(), ilObjSurveyGUI\initPropertiesForm(), ilSurveyEditorGUI\questionsObject(), ilSurveyPageGUI\renderPage(), ilObjSurveyGUI\savePropertiesObject(), and ilSurveyConstraintsGUI\validateConstraintForEdit().
|
static |
Creates an instance of a question with a given question id.
integer | $question_id | The question id |
Definition at line 3437 of file class.ilObjSurvey.php.
References SurveyQuestion\_getQuestionType(), and SurveyQuestion\_includeClass().
Referenced by ilSurveyEditorGUI\copyQuestionsToPoolObject(), ilSurveyEditorGUI\executeCopyQuestionsToPoolObject(), and ilSurveyPageGUI\paste().
ilObjSurvey::addAppraisee | ( | $a_user_id | ) |
Definition at line 4947 of file class.ilObjSurvey.php.
References $access, $DIC, $ilDB, ANONYMOUS_USER_ID, getSurveyId(), isAppraisee(), and sendAppraiseeNotification().
ilObjSurvey::addConstraint | ( | $if_question_id, | |
$relation, | |||
$value, | |||
$conjunction | |||
) |
Adds a constraint.
integer | $if_question_id | The question id of the question which defines a precondition |
integer | $relation | The database id of the relation |
mixed | $value | The value compared with the relation public |
Definition at line 2466 of file class.ilObjSurvey.php.
References ilObject\$db, and $ilDB.
ilObjSurvey::addConstraintToQuestion | ( | $to_question_id, | |
$constraint_id | |||
) |
Adds a constraint to a question.
integer | $to_question_id | The question id of the question where to add the constraint |
integer | $constraint_id | The id of the constraint |
Definition at line 2491 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and getSurveyId().
ilObjSurvey::addMaterialTag | ( | & | $a_xml_writer, |
$a_material, | |||
$close_material_tag = true , |
|||
$add_mobs = true , |
|||
$attribs = null |
|||
) |
Creates an XML material tag from a plain text or xhtml text.
object | $a_xml_writer | Reference to the ILIAS XML writer |
string | $a_material | plain text or html text containing the material |
Definition at line 4487 of file class.ilObjSurvey.php.
References $mobs, ilObjMediaObject\_getMobsOfObject(), ilRTE\_replaceMediaObjectImageSrc(), ilObject\getId(), IL_INST_ID, and isHTML().
Referenced by toXML().
ilObjSurvey::addQuestion | ( | $question_id | ) |
Adds a question to the survey (used in importer!)
integer | $question_id | The question id of the question public |
Definition at line 314 of file class.ilObjSurvey.php.
ilObjSurvey::addQuestionToBlock | ( | $question_id, | |
$questionblock_id | |||
) |
Definition at line 1858 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, deleteConstraints(), getSurveyId(), and isQuestionInAnyBlock().
ilObjSurvey::addRater | ( | $a_appraisee_id, | |
$a_user_id, | |||
$a_anonymous_id = 0 |
|||
) |
Definition at line 5132 of file class.ilObjSurvey.php.
References $access, $DIC, $ilDB, getSurveyId(), isAppraisee(), isRater(), and sendRaterNotification().
ilObjSurvey::applySettingsTemplate | ( | $template_id | ) |
Apply settings template.
int | $template_id |
Definition at line 4796 of file class.ilObjSurvey.php.
References $_POST, $template_id, ANONYMIZE_CODE_ALL, ANONYMIZE_FREEACCESS, ANONYMIZE_OFF, ANONYMIZE_ON, saveToDb(), setAnonymize(), setAnonymousUserList(), setEvaluationAccess(), setPoolUsage(), setShowQuestionTitles(), and setTemplate().
ilObjSurvey::bindSurveyCodeToUser | ( | $user_id, | |
$code | |||
) |
Definition at line 3968 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, ANONYMOUS_USER_ID, and checkSurveyCode().
ilObjSurvey::canExportSurveyCode | ( | ) |
Checks if the survey code can be exported with the survey evaluation.
In some cases this may be necessary but usually you should prevent it because people who sent the survey codes could connect real people with the survey code in the evaluation and undermine the anonymity
Definition at line 4528 of file class.ilObjSurvey.php.
References getAnonymize().
ilObjSurvey::canStartSurvey | ( | $anonymous_id = null , |
|
$a_no_rbac = false |
|||
) |
Checks if the survey can be started.
Definition at line 1419 of file class.ilObjSurvey.php.
References $access, $messages, $result, ilDatePresentation\formatDate(), getEndDate(), ilObject\getOfflineStatus(), getStartDate(), and IL_CAL_TIMESTAMP.
ilObjSurvey::checkConstraint | ( | $constraint_data, | |
$working_data | |||
) |
Checks if a constraint is valid.
array | $constraint_data | The database row containing the constraint data |
array | $working_data | The user input of the related question |
Definition at line 2901 of file class.ilObjSurvey.php.
References $data.
ilObjSurvey::checkReminder | ( | ) |
Definition at line 5854 of file class.ilObjSurvey.php.
References $access, ilObject\$db, $DIC, $ilDB, $message, ilLanguageFactory\_getLanguageOfUser(), ilLink\_getStaticLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, get360Mode(), getEndDate(), ilObject\getId(), ilObjectActivation\getItem(), getNotificationTargetUserIds(), ilObject\getOfflineStatus(), ilObject\getRefId(), getReminderEnd(), getReminderFrequency(), getReminderLastSent(), getReminderStart(), getReminderStatus(), getReminderTarget(), getReminderTemplate(), getStartDate(), ilObject\getTitle(), IL_CAL_DATE, IL_CAL_DAY, saveToDb(), sent360Reminders(), sentReminderPlaceholders(), setReminderLastSent(), and ilObjectActivation\TIMINGS_ACTIVATION.
ilObjSurvey::checkSurveyCode | ( | $code | ) |
Definition at line 3995 of file class.ilObjSurvey.php.
References isAnonymousKey(), and isSurveyStarted().
Referenced by bindSurveyCodeToUser().
|
protected |
Definition at line 5683 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, getNotificationTargetUserIds(), getTutorNotificationStatus(), getTutorNotificationTarget(), and sendTutorNotification().
Referenced by finishSurvey().
ilObjSurvey::cloneTextblocks | ( | $mapping | ) |
Clones the textblocks of survey questions.
public
Definition at line 3843 of file class.ilObjSurvey.php.
References ilObjAdvancedEditing\_getUsedHTMLTagsAsString(), getTextblock(), saveHeading(), and ilUtil\stripSlashes().
ilObjSurvey::closeAppraisee | ( | $a_user_id | ) |
Definition at line 5485 of file class.ilObjSurvey.php.
References $DIC, $ilDB, $user, getSkillService(), getSurveyId(), and sendAppraiseeCloseNotification().
ilObjSurvey::create | ( | $a_upload = false | ) |
create survey object
Definition at line 249 of file class.ilObjSurvey.php.
References createMetaData(), ilObject\setOfflineStatus(), and ilObject\update().
ilObjSurvey::createExportDirectory | ( | ) |
creates data directory for export files (data_dir/svy_data/svy_<id>/export, depending on data directory that is set in ILIAS setup/ini)
ilSurveyException |
Definition at line 3858 of file class.ilObjSurvey.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
ilObjSurvey::createImportDirectory | ( | ) |
creates data directory for import files (data_dir/svy_data/svy_<id>/import, depending on data directory that is set in ILIAS setup/ini)
ilSurveyException |
Definition at line 3897 of file class.ilObjSurvey.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
ilObjSurvey::createMetaData | ( | ) |
Create meta data entry.
public
Definition at line 264 of file class.ilObjSurvey.php.
References saveAuthorToMetadata().
Referenced by create().
ilObjSurvey::createNewAccessCode | ( | ) |
Returns a new, unused survey access code.
Definition at line 4409 of file class.ilObjSurvey.php.
References $i, $index, and isSurveyCodeUnique().
Referenced by createSurveyCodes(), createSurveyCodesForExternalData(), and getUserSurveyExecutionStatus().
ilObjSurvey::createQuestionblock | ( | $title, | |
$show_questiontext, | |||
$show_blocktitle, | |||
$questions, | |||
$compress_view = false |
|||
) |
Creates a question block for the survey.
string | $title | The title of the question block |
array | $questions | An array with the database id's of the question block questions public |
Definition at line 2016 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $ilUser, $index, $questions, ilObject\$title, $user, deleteConstraints(), getSurveyId(), isQuestionInAnyBlock(), and moveQuestions().
Referenced by insertQuestionblock().
ilObjSurvey::createReference | ( | ) |
Definition at line 291 of file class.ilObjSurvey.php.
References $result, and saveToDb().
ilObjSurvey::createSurveyCodes | ( | $nrOfCodes | ) |
Definition at line 4169 of file class.ilObjSurvey.php.
References ilObject\$db, $i, $ilDB, $res, createNewAccessCode(), and getSurveyId().
ilObjSurvey::createSurveyCodesForExternalData | ( | $data | ) |
Definition at line 4202 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, createNewAccessCode(), and getSurveyId().
ilObjSurvey::delete | ( | ) |
delete object and all related data
public
Definition at line 325 of file class.ilObjSurvey.php.
References ilObject\countReferences(), ilUtil\delDir(), ilObject\deleteMetaData(), deleteSurveyRecord(), getImportDirectory(), and removeQuestion().
ilObjSurvey::deleteAllUserData | ( | $reset_LP = true | ) |
Deletes all user data of a survey.
public
bool | $reset_LP | notice that the LP can only be reset it the determining components still exist |
Definition at line 413 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, ilObject\getId(), ilObjectLP\getInstance(), and getSurveyId().
Referenced by deleteSurveyRecord().
ilObjSurvey::deleteAppraisee | ( | $a_user_id | ) |
Definition at line 5083 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, deleteRater(), and get360SelfEvaluation().
ilObjSurvey::deleteConstraint | ( | $constraint_id | ) |
Deletes a constraint of a question.
integer | $constraint_id | The database id of the constraint |
integer | $question_id | The database id of the question public |
Definition at line 2098 of file class.ilObjSurvey.php.
References ilObject\$db, and $ilDB.
Referenced by deleteConstraints(), and moveQuestions().
ilObjSurvey::deleteConstraints | ( | $question_id | ) |
Deletes the constraints for a question.
integer | $question_id | The database id of the question public |
Definition at line 2074 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, deleteConstraint(), and getSurveyId().
Referenced by addQuestionToBlock(), and createQuestionblock().
ilObjSurvey::deleteRater | ( | $a_appraisee_id, | |
$a_user_id, | |||
$a_anonymous_id = 0 |
|||
) |
Definition at line 5181 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, getFinishedIdForAppraiseeIdAndRaterId(), and removeSelectedSurveyResults().
Referenced by deleteAppraisee().
ilObjSurvey::deleteSurveyCode | ( | $survey_code | ) |
Deletes a given survey access code.
string | $survey_code | The survey code that should be deleted |
Definition at line 4348 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and getSurveyId().
ilObjSurvey::deleteSurveyRecord | ( | ) |
Deletes the survey from the database.
public
Definition at line 353 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $mobs, $result, ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilUtil\delDir(), deleteAllUserData(), ilUtil\getDataDir(), ilObject\getId(), and getSurveyId().
Referenced by delete().
ilObjSurvey::deleteUserSettings | ( | $id | ) |
Definition at line 717 of file class.ilObjSurvey.php.
References ilObject\$db, ilObject\$id, and $ilDB.
ilObjSurvey::deleteWorkingData | ( | $question_id, | |
$active_id | |||
) |
Deletes the working data of a question in the database.
integer | $question_id | The database id of the question |
integer | $active_id | The active id of the user who worked through the question public |
Definition at line 2579 of file class.ilObjSurvey.php.
References ilObject\$db, and $ilDB.
ilObjSurvey::deliverPDFfromFO | ( | $fo | ) |
Delivers a PDF file from a XSL-FO string.
string | $fo | The XSL-FO string public |
Definition at line 4602 of file class.ilObjSurvey.php.
References Vendor\Package\$e, $svy_log, ilUtil\deliverData(), ilRpcClientFactory\factory(), ilUtil\getASCIIFilename(), and ilUtil\ilTempnam().
ilObjSurvey::duplicateQuestionForSurvey | ( | $question_id, | |
$a_force = false |
|||
) |
Takes a question and creates a copy of the question for use in the survey.
integer | $question_id | The database id of the question |
Definition at line 588 of file class.ilObjSurvey.php.
References $ilUser, $user, ilObject\getId(), getQuestionGUI(), and getQuestionType().
Referenced by insertQuestion(), and insertQuestionblock().
ilObjSurvey::findCodeForUser | ( | $a_user_id | ) |
Definition at line 5366 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and ANONYMOUS_USER_ID.
ilObjSurvey::finishSurvey | ( | $finished_id | ) |
Finishes the survey creating an entry in the database.
integer | $user_id | The database id of the user who finishes the survey public |
Definition at line 2652 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $user, checkTutorNotification(), getMode(), getSurveyId(), getUserDataFromActiveId(), and MODE_SELF_EVAL.
ilObjSurvey::fixSequenceStructure | ( | ) |
Remove duplicate sequence entries, see #22018.
Definition at line 1212 of file class.ilObjSurvey.php.
References $data, $DIC, $ilDB, $result, and getSurveyId().
ilObjSurvey::get360Mode | ( | ) |
Definition at line 4899 of file class.ilObjSurvey.php.
References getMode(), and MODE_360.
Referenced by checkReminder(), getUserDataFromActiveId(), getUserSurveyExecutionStatus(), and importObject().
ilObjSurvey::get360Results | ( | ) |
Definition at line 4942 of file class.ilObjSurvey.php.
References $mode_360_results.
Referenced by importObject(), saveToDb(), and toXML().
ilObjSurvey::get360SelfAppraisee | ( | ) |
Definition at line 4922 of file class.ilObjSurvey.php.
References $mode_360_self_appr.
Referenced by importObject(), saveToDb(), sent360Reminders(), and toXML().
ilObjSurvey::get360SelfEvaluation | ( | ) |
Definition at line 4912 of file class.ilObjSurvey.php.
References $mode_360_self_eval.
Referenced by deleteAppraisee(), getAppraiseesToRate(), importObject(), isRater(), saveToDb(), sent360Reminders(), and toXML().
ilObjSurvey::get360SelfRaters | ( | ) |
Definition at line 4932 of file class.ilObjSurvey.php.
References $mode_360_self_rate.
Referenced by importObject(), saveToDb(), and toXML().
ilObjSurvey::getActivationEndDate | ( | ) |
Definition at line 6020 of file class.ilObjSurvey.php.
Referenced by saveToDb().
ilObjSurvey::getActivationStartDate | ( | ) |
Definition at line 6015 of file class.ilObjSurvey.php.
Referenced by saveToDb().
ilObjSurvey::getActivationVisibility | ( | ) |
Definition at line 1603 of file class.ilObjSurvey.php.
References $activation_visibility.
Referenced by saveToDb().
ilObjSurvey::getActiveID | ( | $user_id, | |
$anonymize_id, | |||
$appr_id | |||
) |
Checks if a user already started a survey.
integer | $user_id | The database id of the user |
Definition at line 2840 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and getSurveyId().
Referenced by sendNotificationMail().
ilObjSurvey::getAllRelations | ( | $short_as_key = false | ) |
Returns all available relations.
public
Definition at line 2543 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and ilUtil\sortArray().
ilObjSurvey::getAnonymize | ( | ) |
get anonymize status
Definition at line 1059 of file class.ilObjSurvey.php.
Referenced by canExportSurveyCode(), getUserSurveyExecutionStatus(), hasAnonymizedResults(), importObject(), isAccessibleWithoutCode(), saveToDb(), startSurvey(), and toXML().
ilObjSurvey::getAnonymousId | ( | $id | ) |
Checks for an anomyous survey id in the database an returns the id.
string | $id | A survey access code |
Definition at line 971 of file class.ilObjSurvey.php.
References ilObject\$db, ilObject\$id, $ilDB, and $result.
ilObjSurvey::getAnonymousIdByCode | ( | $a_code | ) |
ilObjSurvey::getAppraiseesData | ( | ) |
Definition at line 5104 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $name, $res, ilObjUser\_lookupEmail(), ilObjUser\_lookupName(), and getRatersData().
Referenced by sent360Reminders().
ilObjSurvey::getAppraiseesToRate | ( | $a_user_id, | |
$a_anonymous_id = null |
|||
) |
Definition at line 5248 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $res, get360SelfEvaluation(), getSurveyId(), and isAppraisee().
ilObjSurvey::getAuthor | ( | ) |
Gets the authors name of the ilObjSurvey object.
Definition at line 1313 of file class.ilObjSurvey.php.
References $author, ilObject\$id, ilObject\getId(), and ilObject\getType().
Referenced by importObject(), saveToDb(), and toXML().
& ilObjSurvey::getAvailableQuestionpools | ( | $use_obj_id = false , |
|
$could_be_offline = false , |
|||
$showPath = false , |
|||
$permission = "read" |
|||
) |
Returns the available question pools for the active user.
Definition at line 2352 of file class.ilObjSurvey.php.
References ilObjSurveyQuestionPool\_getAvailableQuestionpools().
Referenced by getQuestionsTable().
ilObjSurvey::getCalculateSumScore | ( | ) |
Get calculate sum score.
Definition at line 1077 of file class.ilObjSurvey.php.
References $calculate_sum_score.
Referenced by saveToDb().
ilObjSurvey::getConstraints | ( | $question_id | ) |
Returns the constraints to a given question or questionblock.
public
Definition at line 2386 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, SurveyQuestion\_getQuestionType(), SurveyQuestion\_includeClass(), and getSurveyId().
Referenced by getSurveyPages(), getSurveyQuestions(), SurveyConstraintsTableGUI\initItems(), and moveQuestions().
ilObjSurvey::getEndDate | ( | ) |
Gets the end date of the survey.
Definition at line 1528 of file class.ilObjSurvey.php.
Referenced by canStartSurvey(), checkReminder(), importObject(), saveToDb(), and toXML().
ilObjSurvey::getEvaluationAccess | ( | ) |
Gets the learners evaluation access.
Definition at line 1581 of file class.ilObjSurvey.php.
Referenced by importObject(), saveToDb(), and toXML().
& ilObjSurvey::getEvaluationByUser | ( | $questions, | |
$active_id | |||
) |
Calculates the evaluation data for a given user or anonymous id.
array | $questions | An array containing all relevant information on the survey's questions |
integer | $user_id | The database id of the user |
string | $anonymous_id | The unique anonymous id for an anonymous survey |
Definition at line 3097 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $questions, $result, and getUserDataFromActiveId().
& ilObjSurvey::getExistingQuestions | ( | ) |
Gets the question id's of the questions which are already in the survey.
Definition at line 1648 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, $result, and getSurveyId().
Referenced by getQuestionsTable().
ilObjSurvey::getExportDirectory | ( | ) |
get export directory of survey
Definition at line 3883 of file class.ilObjSurvey.php.
References ilUtil\getDataDir(), and ilObject\getId().
ilObjSurvey::getExternalCodeRecipients | ( | $a_check_finished = false | ) |
Definition at line 4292 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $res, $result, getSurveyId(), and isSurveyFinishedByCode().
Referenced by sendCodes().
ilObjSurvey::getFinishedIdForAppraiseeIdAndRaterId | ( | $a_appr_id, | |
$a_rat_id | |||
) |
Get finished id for an appraisee and a rater.
int | $a_appraisee_id | appraisee id |
int | $a_rater_id | rater id |
Definition at line 5421 of file class.ilObjSurvey.php.
References ilObject\$db, and $ilDB.
Referenced by deleteRater().
ilObjSurvey::getFinishedIdsForAppraiseeId | ( | $a_appr_id, | |
$a_exclude_appraisee = false |
|||
) |
ilObjSurvey::getFinishedIdsForSelfEval | ( | $a_user_id | ) |
ilObjSurvey::getImportDirectory | ( | ) |
get import directory of survey
Definition at line 3924 of file class.ilObjSurvey.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDirParents().
Referenced by delete(), and importObject().
ilObjSurvey::getIntroduction | ( | ) |
Gets the introduction text.
Definition at line 1625 of file class.ilObjSurvey.php.
Referenced by importObject(), saveToDb(), and toXML().
ilObjSurvey::getLastAccess | ( | $finished_id | ) |
ilObjSurvey::getLastActivePage | ( | $active_id | ) |
Returns the question id of the last active page a user visited in a survey.
integer | $active_id | The active id of the user |
Definition at line 2877 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and $result.
ilObjSurvey::getMailAddresses | ( | ) |
Definition at line 4679 of file class.ilObjSurvey.php.
References $mailaddresses.
Referenced by importObject(), and saveToDb().
ilObjSurvey::getMailNotification | ( | ) |
Definition at line 4669 of file class.ilObjSurvey.php.
References $mailnotification.
Referenced by importObject(), and saveToDb().
ilObjSurvey::getMailParticipantData | ( | ) |
Definition at line 4689 of file class.ilObjSurvey.php.
References $mailparticipantdata.
Referenced by importObject(), and saveToDb().
ilObjSurvey::getMaxSumScore | ( | ) |
Get max sum score.
Definition at line 6276 of file class.ilObjSurvey.php.
References $c, ilObjSurveyQuestionPool\_getQuestionClasses(), and getSurveyId().
ilObjSurvey::getMode | ( | ) |
Definition at line 6125 of file class.ilObjSurvey.php.
References $mode.
Referenced by finishSurvey(), get360Mode(), importObject(), saveToDb(), and toXML().
ilObjSurvey::getNextPage | ( | $active_page_question_id, | |
$direction | |||
) |
Returns the next "page" of a running test.
integer | $active_page_question_id | The database id of one of the questions on that page |
integer | $direction | The direction of the next page (-1 = previous page, 1 = next page) |
Definition at line 2318 of file class.ilObjSurvey.php.
References getSurveyPages().
ilObjSurvey::getNotificationTargetUserIds | ( | $a_use_invited | ) |
Definition at line 5803 of file class.ilObjSurvey.php.
References ilObject\$tree, ilObject\_lookupObjId(), ilObject\getRefId(), and getSurveyId().
Referenced by checkReminder(), and checkTutorNotification().
ilObjSurvey::getOutro | ( | ) |
Gets the outro text.
Definition at line 1637 of file class.ilObjSurvey.php.
Referenced by importObject(), saveToDb(), and toXML().
|
protected |
Definition at line 2771 of file class.ilObjSurvey.php.
References $questions, getSurveyQuestions(), and getUserSpecificResults().
Referenced by sendNotificationMail().
ilObjSurvey::getPoolUsage | ( | ) |
Definition at line 4761 of file class.ilObjSurvey.php.
References $pool_usage.
Referenced by importObject(), isPoolActive(), saveToDb(), and toXML().
ilObjSurvey::getPrecondition | ( | $id | ) |
Returns a precondition with a given id.
public
Definition at line 2362 of file class.ilObjSurvey.php.
References ilObject\$db, ilObject\$id, $ilDB, and $result.
& ilObjSurvey::getQuestionblockQuestionIds | ( | $questionblock_id | ) |
Returns the question id's of all questions of a question block.
Definition at line 1941 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, and $result.
& ilObjSurvey::getQuestionblockQuestions | ( | $questionblock_id | ) |
Returns the question titles of all questions of a question block.
Definition at line 1904 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and $survey_id.
Referenced by getQuestionblocksTable().
ilObjSurvey::getQuestionblocksTable | ( | $arrFilter | ) |
Calculates the data for the output of the questionblock browser.
public
Definition at line 3207 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $ilUser, $rows, $survey_id, $user, ilUtil\_getObjectsByOperations(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), and getQuestionblockQuestions().
ilObjSurvey::getQuestionGUI | ( | $questiontype, | |
$question_id | |||
) |
Returns a question gui object to a given questiontype and question id.
Definition at line 993 of file class.ilObjSurvey.php.
References SurveyQuestionGUI\_getQuestionGUI().
Referenced by duplicateQuestionForSurvey().
& ilObjSurvey::getQuestionpoolTitles | ( | $could_be_offline = false , |
|
$showPath = false |
|||
) |
Get the titles of all available survey question pools.
Definition at line 1672 of file class.ilObjSurvey.php.
References ilObjSurveyQuestionPool\_getAvailableQuestionpools().
ilObjSurvey::getQuestionsTable | ( | $arrFilter | ) |
Calculates the data for the output of the question browser.
public
Definition at line 3139 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $ilUser, $rows, $user, ilObjSurveyQuestionPool\_getQuestionTypeTranslations(), getAvailableQuestionpools(), getExistingQuestions(), and isPluginActive().
ilObjSurvey::getQuestionType | ( | $question_id | ) |
Returns the question type of a question with a given id.
integer | $question_id | The database id of the question |
Definition at line 1005 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, and $result.
Referenced by duplicateQuestionForSurvey().
ilObjSurvey::getRatersData | ( | $a_appraisee_id | ) |
Definition at line 5197 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, $name, $res, ilObjUser\_lookupEmail(), ilObjUser\_lookupName(), getSurveyCodesTableData(), and is360SurveyStarted().
Referenced by getAppraiseesData(), and sent360Reminders().
ilObjSurvey::getReminderEnd | ( | ) |
Definition at line 5570 of file class.ilObjSurvey.php.
References $reminder_end.
Referenced by checkReminder(), importObject(), and saveToDb().
ilObjSurvey::getReminderFrequency | ( | ) |
Definition at line 5580 of file class.ilObjSurvey.php.
References $reminder_frequency.
Referenced by checkReminder(), importObject(), and saveToDb().
ilObjSurvey::getReminderLastSent | ( | ) |
Definition at line 5600 of file class.ilObjSurvey.php.
References $reminder_last_sent.
Referenced by checkReminder(), and saveToDb().
ilObjSurvey::getReminderStart | ( | ) |
Definition at line 5560 of file class.ilObjSurvey.php.
References $reminder_start.
Referenced by checkReminder(), importObject(), and saveToDb().
ilObjSurvey::getReminderStatus | ( | ) |
Definition at line 5550 of file class.ilObjSurvey.php.
References $reminder_status.
Referenced by checkReminder(), importObject(), and saveToDb().
ilObjSurvey::getReminderTarget | ( | ) |
Definition at line 5590 of file class.ilObjSurvey.php.
References $reminder_target.
Referenced by checkReminder(), importObject(), saveToDb(), and sent360Reminders().
ilObjSurvey::getReminderTemplate | ( | $selectDefault = false | ) |
bool | $selectDefault |
Definition at line 5614 of file class.ilObjSurvey.php.
References $reminder_tmpl.
Referenced by checkReminder(), importObject(), and saveToDb().
ilObjSurvey::getSelfEvaluationResults | ( | ) |
Definition at line 6135 of file class.ilObjSurvey.php.
References $mode_self_eval_results.
Referenced by importObject(), saveToDb(), and toXML().
ilObjSurvey::getShowQuestionTitles | ( | ) |
Gets the status of the display_question_titles attribute.
Definition at line 1340 of file class.ilObjSurvey.php.
Referenced by importObject(), saveToDb(), and toXML().
ilObjSurvey::getSkillService | ( | ) |
Get skill service.
Definition at line 5464 of file class.ilObjSurvey.php.
References $mode_skill_service.
Referenced by closeAppraisee(), importObject(), saveToDb(), and toXML().
ilObjSurvey::getStartDate | ( | ) |
Gets the start date of the survey.
Definition at line 1408 of file class.ilObjSurvey.php.
Referenced by canStartSurvey(), checkReminder(), importObject(), saveToDb(), and toXML().
ilObjSurvey::getSurveyCodesForExport | ( | array | $a_codes = null , |
array | $a_ids = null |
||
) |
Returns a list of survey codes for file export.
array | $a_array | An array of all survey codes that should be exported |
Definition at line 4015 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $ilUser, ilObject\$lng, $result, $user, ilLink\_getLink(), ilObject\getRefId(), getSurveyId(), IL_CAL_DATETIME, IL_CAL_UNIX, and isSurveyCodeUsed().
ilObjSurvey::getSurveyCodesTableData | ( | array | $ids = null , |
$lang = null |
|||
) |
Fetches the data for the survey codes table.
string | $lang | Language for the survey code URL |
Definition at line 4089 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $lang, $result, ilLink\_getLink(), ilObject\getRefId(), getSurveyId(), and isSurveyCodeUsed().
Referenced by getRatersData().
& ilObjSurvey::getSurveyFinishedIds | ( | ) |
Get the finished id's of all survey participants.
Definition at line 2978 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, $svy_log, and getSurveyId().
ilObjSurvey::getSurveyId | ( | ) |
Returns the survey database id.
Definition at line 1031 of file class.ilObjSurvey.php.
References $survey_id.
Referenced by addAppraisee(), addConstraintToQuestion(), addQuestionToBlock(), addRater(), closeAppraisee(), createQuestionblock(), createSurveyCodes(), createSurveyCodesForExternalData(), deleteAllUserData(), deleteConstraints(), deleteSurveyCode(), deleteSurveyRecord(), finishSurvey(), fixSequenceStructure(), getActiveID(), getAppraiseesToRate(), getConstraints(), getExistingQuestions(), getExternalCodeRecipients(), ilSurveyParticipantsTableGUI\getItems(), getMaxSumScore(), getNotificationTargetUserIds(), getSurveyCodesForExport(), getSurveyCodesTableData(), getSurveyFinishedIds(), getSurveyPages(), getSurveyParticipants(), getSurveyQuestions(), getUserAccessCode(), getUserSurveyExecutionStatus(), importObject(), importSurveyCode(), insertQuestion(), is360SurveyStarted(), isAnonymizedParticipant(), isAnonymousKey(), isRater(), isSurveyCodeUnique(), isSurveyCodeUsed(), isSurveyFinishedByCode(), isSurveyStarted(), loadQuestionsFromDb(), openAllAppraisees(), removeConstraintsConcerningQuestion(), removeQuestionFromBlock(), removeQuestions(), saveCompletionStatus(), saveHeading(), saveQuestionsToDb(), saveToDb(), saveUserAccessCode(), sendCodes(), sendTutorResults(), set360RaterSent(), setObligatoryStates(), startSurvey(), toXML(), and unfoldQuestionblocks().
& ilObjSurvey::getSurveyPages | ( | ) |
Returns the survey pages in an array (a page contains one or more questions)
public
Definition at line 2231 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $index, $result, getConstraints(), and getSurveyId().
Referenced by getNextPage(), and toXML().
& ilObjSurvey::getSurveyParticipants | ( | $finished_ids = null , |
|
$force_non_anonymous = false , |
|||
$include_invites = false |
|||
) |
Definition at line 500 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $name, $result, ilObjUser\_lookupFullname(), ilObjUser\_lookupName(), getSurveyId(), and getUserDataFromActiveId().
Referenced by ilSurveyParticipantsTableGUI\getItems().
& ilObjSurvey::getSurveyQuestions | ( | $with_answers = false | ) |
Returns the survey questions and questionblocks in an array.
public
Definition at line 2118 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, $result, getConstraints(), getSurveyId(), and isPluginActive().
Referenced by getParticipantTextResults(), getUserSpecificResults(), SurveyConstraintsTableGUI\initItems(), and removeQuestions().
|
static |
Definition at line 6065 of file class.ilObjSurvey.php.
References $DIC, ilObject\$lng, $res, and ilSurveyMailTemplateReminderContext\ID.
Referenced by ilSurveyResultsUserTableGUI\fillRow(), and SurveyQuestionEvaluation\getSkippedValue().
|
static |
Definition at line 6140 of file class.ilObjSurvey.php.
References $ilDB, $log, $res, and ilLoggerFactory\getLogger().
Referenced by ilSurveyCronNotification\run().
ilObjSurvey::getTemplate | ( | ) |
Definition at line 4748 of file class.ilObjSurvey.php.
References $template_id.
Referenced by importObject(), isPoolActive(), and saveToDb().
ilObjSurvey::getTextblock | ( | $question_id | ) |
Definition at line 3822 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and $result.
Referenced by cloneTextblocks().
ilObjSurvey::getTutorNotificationRecipients | ( | ) |
Definition at line 5643 of file class.ilObjSurvey.php.
References $tutor_ntf_recipients.
Referenced by importObject(), saveToDb(), and sendTutorNotification().
ilObjSurvey::getTutorNotificationStatus | ( | ) |
Definition at line 5633 of file class.ilObjSurvey.php.
References $tutor_ntf_status.
Referenced by checkTutorNotification(), importObject(), and saveToDb().
ilObjSurvey::getTutorNotificationTarget | ( | ) |
Definition at line 5653 of file class.ilObjSurvey.php.
References $tutor_ntf_target.
Referenced by checkTutorNotification(), importObject(), and saveToDb().
ilObjSurvey::getTutorResultsRecipients | ( | ) |
Definition at line 5673 of file class.ilObjSurvey.php.
References $tutor_res_recipients.
Referenced by importObject(), saveToDb(), and sendTutorResults().
ilObjSurvey::getTutorResultsStatus | ( | ) |
Definition at line 5663 of file class.ilObjSurvey.php.
References $tutor_res_status.
Referenced by importObject(), and saveToDb().
ilObjSurvey::getUserAccessCode | ( | $user_id | ) |
Returns a survey access code that was saved for a registered user.
int | $user_id | The database id of the user |
Definition at line 4367 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and getSurveyId().
& ilObjSurvey::getUserData | ( | $ids | ) |
Returns a data of all users specified by id list.
$ids | array of user id's |
Definition at line 4653 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and $result.
ilObjSurvey::getUserDataFromActiveId | ( | $active_id, | |
$force_non_anonymous = false |
|||
) |
Returns the user information from an active_id (survey_finished.finished_id)
integer | $active_id | The active id of the user |
Definition at line 3035 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $name, $result, $user, ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, get360Mode(), and hasAnonymizedResults().
Referenced by finishSurvey(), getEvaluationByUser(), and getSurveyParticipants().
ilObjSurvey::getUserSettings | ( | $usr_id, | |
$key | |||
) |
ilObjSurvey::getUserSpecificResults | ( | $finished_ids | ) |
Calculates the evaluation data for the user specific results.
Definition at line 3003 of file class.ilObjSurvey.php.
References $data, SurveyQuestion\_getQuestionType(), SurveyQuestion\_includeClass(), SurveyQuestion\_instanciateQuestionEvaluation(), and getSurveyQuestions().
Referenced by getParticipantTextResults().
ilObjSurvey::getUserSurveyExecutionStatus | ( | $a_code = null | ) |
Definition at line 5310 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $ilUser, $res, $user, ANONYMOUS_USER_ID, createNewAccessCode(), get360Mode(), getAnonymize(), getSurveyId(), isAccessibleWithoutCode(), isRater(), and saveUserAccessCode().
& ilObjSurvey::getVariables | ( | $question_id | ) |
Returns all variables of a question.
public
Definition at line 2440 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and $result.
ilObjSurvey::getWorkingtimeForParticipant | ( | $finished_id | ) |
Definition at line 4725 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and $total.
ilObjSurvey::hasAnonymizedResults | ( | ) |
Checks if the survey results are to be anonymized.
Definition at line 1098 of file class.ilObjSurvey.php.
References getAnonymize().
Referenced by getUserDataFromActiveId(), and sendNotificationMail().
ilObjSurvey::hasAnonymousUserList | ( | ) |
Definition at line 6060 of file class.ilObjSurvey.php.
References $anon_user_list.
Referenced by importObject(), saveToDb(), and toXML().
ilObjSurvey::hasMailConfirmation | ( | ) |
Definition at line 6050 of file class.ilObjSurvey.php.
References $mail_confirmation.
Referenced by importObject(), saveToDb(), and toXML().
ilObjSurvey::hasMailOwnResults | ( | ) |
Definition at line 6040 of file class.ilObjSurvey.php.
References $mail_own_results.
Referenced by importObject(), saveToDb(), and toXML().
ilObjSurvey::hasViewOwnResults | ( | ) |
Definition at line 6030 of file class.ilObjSurvey.php.
References $view_own_results.
Referenced by importObject(), saveToDb(), and toXML().
ilObjSurvey::hideQuestionTitles | ( | ) |
Sets the question titles hidden during the query.
public
Definition at line 1373 of file class.ilObjSurvey.php.
ilObjSurvey::importObject | ( | $file_info, | |
$svy_qpl_id | |||
) |
Imports a survey from XML into the ILIAS database.
$file_info | |
$svy_qpl_id |
Definition at line 3507 of file class.ilObjSurvey.php.
References $_SESSION, $config, ilObject\$db, ilObject\$error, $ilDB, $result, $source, $svy_log, $xml, ilCopyWizardOptions\_getInstance(), SurveyQuestion\_getOriginalId(), SurveyQuestion\_instanciateQuestion(), ilRTE\_replaceMediaObjectImageSrc(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilObjMediaObject\_saveUsage(), ilObject\cloneMetaData(), ilUtil\delDir(), get360Mode(), get360Results(), get360SelfAppraisee(), get360SelfEvaluation(), get360SelfRaters(), getAnonymize(), getAuthor(), getEndDate(), getEvaluationAccess(), ilObject\getId(), getImportDirectory(), getIntroduction(), getMailAddresses(), getMailNotification(), getMailParticipantData(), getMode(), ilObject\getOfflineStatus(), getOutro(), getPoolUsage(), getReminderEnd(), getReminderFrequency(), getReminderStart(), getReminderStatus(), getReminderTarget(), getReminderTemplate(), getSelfEvaluationResults(), getShowQuestionTitles(), getSkillService(), getStartDate(), getSurveyId(), getTemplate(), getTutorNotificationRecipients(), getTutorNotificationStatus(), getTutorNotificationTarget(), getTutorResultsRecipients(), getTutorResultsStatus(), hasAnonymousUserList(), hasMailConfirmation(), hasMailOwnResults(), hasViewOwnResults(), IL_INST_ID, loadFromDb(), locateImportFiles(), MODE_360, MODE_SELF_EVAL, ilUtil\moveUploadedFile(), saveToDb(), setIntroduction(), setOutro(), and ilUtil\unzip().
ilObjSurvey::importSurveyCode | ( | $a_anonymize_key, | |
$a_created, | |||
$a_data | |||
) |
Definition at line 4189 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and getSurveyId().
ilObjSurvey::insertQuestion | ( | $question_id | ) |
Inserts a question in the survey and saves the relation to the database The question is appended to the end (last question) public.
Definition at line 609 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, SurveyQuestion\_isComplete(), duplicateQuestionForSurvey(), getSurveyId(), isQuestionInSurvey(), and loadQuestionsFromDb().
ilObjSurvey::insertQuestionblock | ( | $questionblock_id | ) |
Inserts a questionblock in the survey and saves the relation to the database.
public
Definition at line 677 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $questions, $result, ilObject\$title, createQuestionblock(), and duplicateQuestionForSurvey().
ilObjSurvey::is360SurveyStarted | ( | $appr_id, | |
$user_id, | |||
$anonymous_code = null |
|||
) |
Definition at line 5289 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and getSurveyId().
Referenced by getRatersData(), and sent360Reminders().
ilObjSurvey::isAccessibleWithoutCode | ( | ) |
Checks if the survey is accessable without a survey code.
Definition at line 1087 of file class.ilObjSurvey.php.
References getAnonymize().
Referenced by getUserSurveyExecutionStatus().
ilObjSurvey::isActivationLimited | ( | ) |
Definition at line 1608 of file class.ilObjSurvey.php.
Referenced by saveToDb().
ilObjSurvey::isAnonymizedParticipant | ( | $key | ) |
Definition at line 3983 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and getSurveyId().
ilObjSurvey::isAnonymousKey | ( | $key | ) |
Definition at line 3956 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and getSurveyId().
Referenced by checkSurveyCode().
ilObjSurvey::isAppraisee | ( | $a_user_id | ) |
Definition at line 5060 of file class.ilObjSurvey.php.
References ilObject\$db, and $ilDB.
Referenced by addAppraisee(), addRater(), getAppraiseesToRate(), and isRater().
ilObjSurvey::isAppraiseeClosed | ( | $a_user_id | ) |
Definition at line 5071 of file class.ilObjSurvey.php.
References ilObject\$db, and $ilDB.
Referenced by sent360Reminders().
ilObjSurvey::isComplete | ( | ) |
Returns 1, if a survey is complete for use.
Definition at line 550 of file class.ilObjSurvey.php.
References ilObject\getTitle().
Referenced by saveCompletionStatus(), and saveToDb().
ilObjSurvey::isHTML | ( | $a_text | ) |
Checks if a given string contains HTML or not.
string | $a_text | Text which should be checked |
Definition at line 4470 of file class.ilObjSurvey.php.
Referenced by addMaterialTag().
ilObjSurvey::isPluginActive | ( | $a_pname | ) |
Checks whether or not a question plugin with a given name is active.
string | $a_pname | The plugin name public |
Definition at line 4627 of file class.ilObjSurvey.php.
References $plugin_admin, and IL_COMP_MODULE.
Referenced by getQuestionsTable(), and getSurveyQuestions().
ilObjSurvey::isPoolActive | ( | ) |
Get current pool status.
Definition at line 4776 of file class.ilObjSurvey.php.
References getPoolUsage(), and getTemplate().
ilObjSurvey::isQuestionInAnyBlock | ( | $a_question_fi | ) |
Is question already in a block?
int | $a_question_fi | question id as in svy_question |
Definition at line 1882 of file class.ilObjSurvey.php.
Referenced by addQuestionToBlock(), and createQuestionblock().
ilObjSurvey::isQuestionInSurvey | ( | $a_question_fi | ) |
Check if a question is already in the survey.
question | id (as primary key from svy_question table) |
Definition at line 655 of file class.ilObjSurvey.php.
Referenced by insertQuestion(), and saveQuestionsToDb().
ilObjSurvey::isRater | ( | $a_appraisee_id, | |
$a_user_id, | |||
$a_anonymous_id = 0 |
|||
) |
Definition at line 5156 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, get360SelfEvaluation(), getSurveyId(), and isAppraisee().
Referenced by addRater(), and getUserSurveyExecutionStatus().
ilObjSurvey::isSurveyCodeUnique | ( | $code | ) |
Definition at line 4158 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and getSurveyId().
Referenced by createNewAccessCode().
ilObjSurvey::isSurveyCodeUsed | ( | $code | ) |
Definition at line 4147 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and getSurveyId().
Referenced by getSurveyCodesForExport(), and getSurveyCodesTableData().
ilObjSurvey::isSurveyFinishedByCode | ( | $a_code | ) |
Get if survey is finished for an specific anonymous user code.
$a_code | anonymous user code |
Definition at line 4330 of file class.ilObjSurvey.php.
References $result, and getSurveyId().
Referenced by getExternalCodeRecipients().
ilObjSurvey::isSurveyStarted | ( | $user_id, | |
$anonymize_id, | |||
$appr_id = 0 |
|||
) |
Checks if a user already started a survey.
integer | $user_id | The database id of the user |
Definition at line 2802 of file class.ilObjSurvey.php.
References $_SESSION, ilObject\$db, $ilDB, $result, ilObject\getId(), and getSurveyId().
Referenced by checkSurveyCode().
ilObjSurvey::isUnusedCode | ( | $a_code, | |
$a_user_id | |||
) |
Definition at line 5379 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and ANONYMOUS_USER_ID.
ilObjSurvey::loadFromDb | ( | ) |
Loads a survey object from a database.
public
Definition at line 1109 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, $result, ilRTE\_replaceMediaObjectImageSrc(), ilObject\getId(), ilObjectActivation\getItem(), IL_CAL_DATE, loadQuestionsFromDb(), set360Results(), set360SelfAppraisee(), set360SelfEvaluation(), set360SelfRaters(), setActivationEndDate(), setActivationLimited(), setActivationStartDate(), setActivationVisibility(), setAnonymize(), setAnonymousUserList(), setAuthor(), setCalculateSumScore(), setEndDate(), setEvaluationAccess(), setIntroduction(), setMailAddresses(), setMailConfirmation(), setMailNotification(), setMailOwnResults(), setMailParticipantData(), setMode(), setOutro(), setPoolUsage(), setReminderEnd(), setReminderFrequency(), setReminderLastSent(), setReminderStart(), setReminderStatus(), setReminderTarget(), setReminderTemplate(), setSelfEvaluationResults(), setShowQuestionTitles(), setSkillService(), setStartDate(), setSurveyId(), setTemplate(), setTutorNotificationRecipients(), setTutorNotificationStatus(), setTutorNotificationTarget(), setTutorResultsRecipients(), setTutorResultsStatus(), setViewOwnResults(), and ilObjectActivation\TIMINGS_ACTIVATION.
Referenced by importObject(), and read().
ilObjSurvey::loadQuestionsFromDb | ( | ) |
Loads the survey questions from the database.
public
Definition at line 1195 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, $result, and getSurveyId().
Referenced by insertQuestion(), and loadFromDb().
ilObjSurvey::loadWorkingData | ( | $question_id, | |
$active_id | |||
) |
Gets the working data of question from the database.
integer | $question_id | The database id of the question |
integer | $active_id | The active id of the user who worked through the question |
Definition at line 2598 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and $result.
ilObjSurvey::locateImportFiles | ( | $a_dir | ) |
Locates the import directory and the xml file in a directory with an unzipped import file.
Definition at line 3458 of file class.ilObjSurvey.php.
Referenced by importObject().
ilObjSurvey::modifyQuestionblock | ( | $questionblock_id, | |
$title, | |||
$show_questiontext, | |||
$show_blocktitle, | |||
$compress_view = false |
|||
) |
Modifies a question block.
integer | $questionblock_id | The database id of the question block |
string | $title | The title of the question block public |
Definition at line 2057 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and ilObject\$title.
ilObjSurvey::moveQuestions | ( | $move_questions, | |
$target_index, | |||
$insert_mode | |||
) |
Move questions and/or questionblocks to another position.
array | $move_questions | An array with the question id's of the questions to move |
integer | $target_index | The question id of the target position |
integer | $insert_mode | 0, if insert before the target position, 1 if insert after the target position public |
Definition at line 1685 of file class.ilObjSurvey.php.
References deleteConstraint(), getConstraints(), and saveQuestionsToDb().
Referenced by createQuestionblock().
ilObjSurvey::openAllAppraisees | ( | ) |
Definition at line 5511 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and getSurveyId().
ilObjSurvey::prepareTextareaOutput | ( | $txt_output | ) |
Prepares a string for a text area output in surveys.
string | $txt_output | String which should be prepared for output public |
Definition at line 4458 of file class.ilObjSurvey.php.
References ilUtil\prepareTextareaOutput().
ilObjSurvey::processPrintoutput2FO | ( | $print_output | ) |
Convert a print output to XSL-FO.
string | $print_output | The print output |
Definition at line 4545 of file class.ilObjSurvey.php.
References $config, Vendor\Package\$e, $GLOBALS, xslt_create(), xslt_error(), and xslt_free().
ilObjSurvey::read | ( | ) |
read object data from db into object public
Definition at line 302 of file class.ilObjSurvey.php.
References loadFromDb().
ilObjSurvey::removeConstraintsConcerningQuestion | ( | $question_id | ) |
Remove constraints concerning a question with a given question_id.
integer | $question_id | The database id of the question public |
Definition at line 1751 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and getSurveyId().
Referenced by removeQuestion().
ilObjSurvey::removeQuestion | ( | $question_id | ) |
Remove a question from the survey.
integer | $question_id | The database id of the question public |
Definition at line 1735 of file class.ilObjSurvey.php.
References removeConstraintsConcerningQuestion().
Referenced by delete(), and removeQuestions().
ilObjSurvey::removeQuestionFromBlock | ( | $question_id, | |
$questionblock_id | |||
) |
Definition at line 1847 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and getSurveyId().
ilObjSurvey::removeQuestions | ( | $remove_questions, | |
$remove_questionblocks | |||
) |
Remove questions from the survey.
array | $remove_questions | An array with the question id's of the questions to remove |
array | $remove_questionblocks | An array with the questionblock id's of the questions blocks to remove public |
Definition at line 1786 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, $size, getSurveyId(), getSurveyQuestions(), removeQuestion(), and saveQuestionsToDb().
ilObjSurvey::removeSelectedSurveyResults | ( | $finished_ids | ) |
Deletes the user data of a given array of survey participants.
public
Definition at line 457 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, ilObject\getId(), and ilObjectLP\getInstance().
Referenced by deleteRater().
ilObjSurvey::saveAuthorToMetadata | ( | $a_author = "" | ) |
Saves an authors name into the lifecycle metadata if no lifecycle metadata exists This will only be called for conversion of "old" tests where the author hasn't been stored in the lifecycle metadata.
string | $a_author | A string containing the name of the test author private |
Definition at line 1285 of file class.ilObjSurvey.php.
References $ilUser, $user, ilObject\getId(), and ilObject\getType().
Referenced by createMetaData().
ilObjSurvey::saveCompletionStatus | ( | ) |
Saves the completion status of the survey.
public
Definition at line 564 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, getSurveyId(), and isComplete().
ilObjSurvey::saveHeading | ( | $heading = "" , |
|
$insertbefore | |||
) |
Definition at line 3938 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and getSurveyId().
Referenced by cloneTextblocks().
ilObjSurvey::saveQuestionsToDb | ( | ) |
Saves the survey questions to the database.
public
Definition at line 897 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, getSurveyId(), and isQuestionInSurvey().
Referenced by moveQuestions(), removeQuestions(), and saveToDb().
ilObjSurvey::saveToDb | ( | ) |
Saves a survey object to a database.
public
Definition at line 752 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, ilRTE\_replaceMediaObjectImageSrc(), get360Results(), get360SelfAppraisee(), get360SelfEvaluation(), get360SelfRaters(), getActivationEndDate(), getActivationStartDate(), getActivationVisibility(), getAnonymize(), getAuthor(), getCalculateSumScore(), getEndDate(), getEvaluationAccess(), ilObject\getId(), getIntroduction(), ilObjectActivation\getItem(), getMailAddresses(), getMailNotification(), getMailParticipantData(), getMode(), getOutro(), getPoolUsage(), getReminderEnd(), getReminderFrequency(), getReminderLastSent(), getReminderStart(), getReminderStatus(), getReminderTarget(), getReminderTemplate(), getSelfEvaluationResults(), getShowQuestionTitles(), getSkillService(), getStartDate(), getSurveyId(), getTemplate(), getTutorNotificationRecipients(), getTutorNotificationStatus(), getTutorNotificationTarget(), getTutorResultsRecipients(), getTutorResultsStatus(), hasAnonymousUserList(), hasMailConfirmation(), hasMailOwnResults(), hasViewOwnResults(), IL_CAL_DATE, isActivationLimited(), isComplete(), RESULTS_SELF_EVAL_OWN, saveQuestionsToDb(), setSurveyId(), ilObjectActivation\setTimingType(), ilObjectActivation\TIMINGS_ACTIVATION, and ilObjectActivation\TIMINGS_DEACTIVATED.
Referenced by applySettingsTemplate(), checkReminder(), createReference(), and importObject().
ilObjSurvey::saveUserAccessCode | ( | $user_id, | |
$access_code | |||
) |
Saves a survey access code for a registered user to the database.
int | $user_id | The database id of the user |
string | $access_code | The survey access code |
Definition at line 4389 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and getSurveyId().
Referenced by getUserSurveyExecutionStatus().
ilObjSurvey::saveUserSettings | ( | $usr_id, | |
$key, | |||
$title, | |||
$value | |||
) |
Definition at line 703 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and ilObject\$title.
ilObjSurvey::send360ReminderToUser | ( | $a_user_id, | |
$a_appraisee_ids | |||
) |
Send rater notification.
int | $a_user_id | user id |
Definition at line 5771 of file class.ilObjSurvey.php.
References ilObject\$lng, ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilUserUtil\getNamePresentation(), ilObject\getRefId(), and ilObject\getTitle().
Referenced by sent360Reminders().
ilObjSurvey::sendAppraiseeCloseNotification | ( | $a_user_id | ) |
Send appraisee notification.
int | $a_user_id | user id |
Definition at line 5004 of file class.ilObjSurvey.php.
References ilObject\$lng, ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilObject\getRefId(), and ilObject\getTitle().
Referenced by closeAppraisee().
ilObjSurvey::sendAppraiseeNotification | ( | $a_user_id | ) |
Send appraisee notification.
int | $a_user_id | user id |
Definition at line 4974 of file class.ilObjSurvey.php.
References ilObject\$lng, ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilObject\getRefId(), and ilObject\getTitle().
Referenced by addAppraisee().
ilObjSurvey::sendCodes | ( | $not_sent, | |
$subject, | |||
$message, | |||
$lang | |||
) |
Definition at line 4221 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $DIC, $ilDB, $lang, $message, $url, ilLink\_getLink(), ANONYMOUS_USER_ID, getExternalCodeRecipients(), ilObject\getRefId(), and getSurveyId().
ilObjSurvey::sendNotificationMail | ( | $a_user_id, | |
$a_anonymize_id, | |||
$a_appr_id | |||
) |
$a_user_id | user who did the survey |
$a_anonymize_id | |
$a_appr_id |
Definition at line 2696 of file class.ilObjSurvey.php.
References $data, ilObject\$lng, $mailparticipantdata, ilObjUser\_getUserData(), getActiveID(), ilUserUtil\getNamePresentation(), getParticipantTextResults(), ilObject\getRefId(), ilObjUser\getUserIdsByEmail(), and hasAnonymizedResults().
ilObjSurvey::sendRaterNotification | ( | $a_user_id, | |
$a_appraisee_id | |||
) |
Send rater notification.
int | $a_user_id | user id |
Definition at line 5034 of file class.ilObjSurvey.php.
References ilObject\$lng, ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilUserUtil\getNamePresentation(), ilObject\getRefId(), and ilObject\getTitle().
Referenced by addRater().
|
protected |
Definition at line 5825 of file class.ilObjSurvey.php.
References $message, ilLanguageFactory\_getLanguageOfUser(), ilLink\_getStaticLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilObject\getRefId(), ilObject\getTitle(), and getTutorNotificationRecipients().
Referenced by checkTutorNotification().
ilObjSurvey::sendTutorResults | ( | ) |
Definition at line 6171 of file class.ilObjSurvey.php.
References $_GET, $ilDB, $log, $message, ilLanguageFactory\_getLanguageOfUser(), ilLink\_getStaticLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilLoggerFactory\getLogger(), ilObject\getRefId(), getSurveyId(), ilObject\getTitle(), getTutorResultsRecipients(), and ilHtmlToPdfTransformerFactory\PDF_OUTPUT_FILE.
ilObjSurvey::sent360Reminders | ( | ) |
Send 360 reminders.
Definition at line 5708 of file class.ilObjSurvey.php.
References $access, $app, $DIC, ilObject\$id, get360SelfAppraisee(), get360SelfEvaluation(), getAppraiseesData(), getRatersData(), getReminderTarget(), is360SurveyStarted(), isAppraiseeClosed(), NOTIFICATION_APPRAISEES, NOTIFICATION_APPRAISEES_AND_RATERS, NOTIFICATION_RATERS, and send360ReminderToUser().
Referenced by checkReminder().
|
protected |
Definition at line 6103 of file class.ilObjSurvey.php.
References $context, Vendor\Package\$e, $user, ilLoggerFactory\getLogger(), ilMailTemplateContextService\getTemplateContextById(), and ilSurveyMailTemplateReminderContext\ID.
Referenced by checkReminder().
ilObjSurvey::set360RaterSent | ( | $a_appraisee_id, | |
$a_user_id, | |||
$a_anonymous_id, | |||
$a_tstamp = null |
|||
) |
Definition at line 5469 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and getSurveyId().
ilObjSurvey::set360Results | ( | $a_value | ) |
Definition at line 4937 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::set360SelfAppraisee | ( | $a_value | ) |
Definition at line 4917 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::set360SelfEvaluation | ( | $a_value | ) |
Definition at line 4907 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::set360SelfRaters | ( | $a_value | ) |
Definition at line 4927 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setActivationEndDate | ( | $ending_time = null | ) |
Definition at line 6010 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setActivationLimited | ( | $a_value | ) |
Definition at line 1613 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setActivationStartDate | ( | $starting_time = null | ) |
Definition at line 6005 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setActivationVisibility | ( | $a_value | ) |
Definition at line 1598 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setAnonymize | ( | $a_anonymize | ) |
set anonymize status
Definition at line 1039 of file class.ilObjSurvey.php.
Referenced by applySettingsTemplate(), and loadFromDb().
ilObjSurvey::setAnonymousUserList | ( | $a_value | ) |
Definition at line 6055 of file class.ilObjSurvey.php.
Referenced by applySettingsTemplate(), and loadFromDb().
ilObjSurvey::setAuthor | ( | $author = "" | ) |
Sets the authors name of the ilObjSurvey object.
string | $author | A string containing the name of the test author public |
Definition at line 1271 of file class.ilObjSurvey.php.
References $author.
Referenced by loadFromDb().
ilObjSurvey::setCalculateSumScore | ( | bool | $a_val | ) |
Set calculate sum score.
bool | $a_val | calculate sum score |
Definition at line 1068 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setEndDate | ( | $end_date = "" | ) |
Sets the end date of the survey.
string | $end_date | Survey end date (YYYYMMDDHHMMSS) public |
Definition at line 1540 of file class.ilObjSurvey.php.
References $end_date.
Referenced by loadFromDb().
ilObjSurvey::setEndDateAndTime | ( | $end_date = "" , |
|
$end_time | |||
) |
Sets the end date of the survey.
string | $end_date | Survey end date (YYYY-MM-DD) |
string | $end_time | Survey end time (HH:MM:SS) public |
Definition at line 1553 of file class.ilObjSurvey.php.
References $d, $end_date, and $i.
ilObjSurvey::setEndTime | ( | $finished_id | ) |
Definition at line 4713 of file class.ilObjSurvey.php.
References $_SESSION, ilObject\$db, and $ilDB.
ilObjSurvey::setEvaluationAccess | ( | $evaluation_access = self::EVALUATION_ACCESS_OFF | ) |
Sets the learners evaluation access.
integer | $evaluation_access | The evaluation access public |
Definition at line 1593 of file class.ilObjSurvey.php.
References $evaluation_access.
Referenced by applySettingsTemplate(), and loadFromDb().
ilObjSurvey::setIntroduction | ( | $introduction = "" | ) |
Sets the introduction text.
string | $introduction | A string containing the introduction |
Definition at line 1384 of file class.ilObjSurvey.php.
References $introduction.
Referenced by importObject(), and loadFromDb().
ilObjSurvey::setMailAddresses | ( | $a_addresses | ) |
Definition at line 4684 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setMailConfirmation | ( | $a_value | ) |
Definition at line 6045 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setMailNotification | ( | $a_notification | ) |
Definition at line 4674 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setMailOwnResults | ( | $a_value | ) |
Definition at line 6035 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setMailParticipantData | ( | $a_data | ) |
Definition at line 4694 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setMode | ( | $a_value | ) |
Definition at line 6120 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setObligatoryStates | ( | $obligatory_questions | ) |
Sets the obligatory states for questions in a survey from the questions form.
array | $obligatory_questions | The questions which should be set obligatory from the questions form, the remaining questions should be setted not obligatory public |
Definition at line 2201 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $result, and getSurveyId().
ilObjSurvey::setOutro | ( | $outro = "" | ) |
Sets the outro text.
string | $outro | A string containing the outro |
Definition at line 1395 of file class.ilObjSurvey.php.
References $outro.
Referenced by importObject(), and loadFromDb().
ilObjSurvey::setPage | ( | $finished_id, | |
$page_id | |||
) |
Sets the number of the active survey page.
integer | $finished_id | The database id of the active user |
integer | $page_id | The index of the page public |
Definition at line 2680 of file class.ilObjSurvey.php.
References ilObject\$db, and $ilDB.
ilObjSurvey::setPoolUsage | ( | $a_value | ) |
Definition at line 4766 of file class.ilObjSurvey.php.
Referenced by applySettingsTemplate(), and loadFromDb().
ilObjSurvey::setReminderEnd | ( | ilDate | $a_value = null | ) |
Definition at line 5575 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setReminderFrequency | ( | $a_value | ) |
Definition at line 5585 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setReminderLastSent | ( | $a_value | ) |
Definition at line 5605 of file class.ilObjSurvey.php.
Referenced by checkReminder(), and loadFromDb().
ilObjSurvey::setReminderStart | ( | ilDate | $a_value = null | ) |
Definition at line 5565 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setReminderStatus | ( | $a_value | ) |
Definition at line 5555 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setReminderTarget | ( | $a_value | ) |
Definition at line 5595 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setReminderTemplate | ( | $a_value | ) |
Definition at line 5628 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setSelfEvaluationResults | ( | $a_value | ) |
Definition at line 6130 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setShowQuestionTitles | ( | $a_show | ) |
Sets the status of the display_question_titles attribute.
integer | $a_show | The status of the display_question_titles attribute |
Definition at line 1351 of file class.ilObjSurvey.php.
Referenced by applySettingsTemplate(), and loadFromDb().
ilObjSurvey::setSkillService | ( | $a_val | ) |
Set skill service.
bool | $a_val | activate skill service |
Definition at line 5454 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setStartDate | ( | $start_date = "" | ) |
Sets the start date of the survey.
string | $start_data | Survey start date (YYYYMMDDHHMMSS) public |
Definition at line 1487 of file class.ilObjSurvey.php.
References $start_date.
Referenced by loadFromDb().
ilObjSurvey::setStartDateAndTime | ( | $start_date = "" , |
|
$start_time | |||
) |
Sets the start date of the survey.
string | $start_date | Survey start date (YYYY-MM-DD) |
string | $start_time | Survey start time (HH:MM:SS) public |
Definition at line 1500 of file class.ilObjSurvey.php.
References $d, $i, and $start_date.
ilObjSurvey::setStartTime | ( | $finished_id, | |
$first_question | |||
) |
Definition at line 4699 of file class.ilObjSurvey.php.
References $_SESSION, ilObject\$db, ilObject\$id, and $ilDB.
ilObjSurvey::setSurveyId | ( | $survey_id | ) |
Sets the survey id.
integer | $survey_id | The survey id |
Definition at line 4642 of file class.ilObjSurvey.php.
References $survey_id.
Referenced by loadFromDb(), and saveToDb().
ilObjSurvey::setTemplate | ( | $template_id | ) |
Definition at line 4743 of file class.ilObjSurvey.php.
References $template_id.
Referenced by applySettingsTemplate(), and loadFromDb().
ilObjSurvey::setTutorNotificationRecipients | ( | array | $a_value | ) |
Definition at line 5648 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setTutorNotificationStatus | ( | $a_value | ) |
Definition at line 5638 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setTutorNotificationTarget | ( | $a_value | ) |
Definition at line 5658 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setTutorResultsRecipients | ( | array | $a_value | ) |
Definition at line 5678 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setTutorResultsStatus | ( | $a_value | ) |
Definition at line 5668 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::setViewOwnResults | ( | $a_value | ) |
Definition at line 6025 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
ilObjSurvey::showQuestionTitles | ( | ) |
Sets the question titles visible during the query.
public
Definition at line 1362 of file class.ilObjSurvey.php.
ilObjSurvey::startSurvey | ( | $user_id, | |
$anonymous_id, | |||
$appraisee_id | |||
) |
Starts the survey creating an entry in the database.
integer | $user_id | The database id of the user who starts the survey public |
Definition at line 2623 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, ANONYMOUS_USER_ID, getAnonymize(), and getSurveyId().
ilObjSurvey::toXML | ( | ) |
Returns a QTI xml representation of the survey.
Definition at line 3258 of file class.ilObjSurvey.php.
References $xml, addMaterialTag(), get360Results(), get360SelfAppraisee(), get360SelfEvaluation(), get360SelfRaters(), getAnonymize(), getAuthor(), ilObject\getDescription(), getEndDate(), getEvaluationAccess(), ilObject\getId(), getIntroduction(), getMode(), ilObject\getOfflineStatus(), getOutro(), getPoolUsage(), getSelfEvaluationResults(), getShowQuestionTitles(), getSkillService(), getStartDate(), getSurveyId(), getSurveyPages(), ilObject\getTitle(), ilObject\getType(), hasAnonymousUserList(), hasMailConfirmation(), hasMailOwnResults(), hasViewOwnResults(), and ilXmlWriter\xmlHeader().
ilObjSurvey::unfoldQuestionblocks | ( | $questionblocks | ) |
Unfolds question blocks of a question pool.
array | $questionblocks | An array of question block id's public |
Definition at line 1830 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, $index, and getSurveyId().
ilObjSurvey::update | ( | $a_upload = false | ) |
update object data
public
Definition at line 276 of file class.ilObjSurvey.php.
References ilObject\updateMetaData().
ilObjSurvey::updateCode | ( | $a_id, | |
$a_email, | |||
$a_last_name, | |||
$a_first_name, | |||
$a_sent | |||
) |
Definition at line 4865 of file class.ilObjSurvey.php.
References $data, ilObject\$db, $ilDB, and ilUtil\is_email().
ilObjSurvey::updateConjunctionForQuestions | ( | $questions, | |
$conjunction | |||
) |
Definition at line 2525 of file class.ilObjSurvey.php.
References ilObject\$db, $ilDB, and $questions.
ilObjSurvey::updateConstraint | ( | $precondition_id, | |
$if_question_id, | |||
$relation, | |||
$value, | |||
$conjunction | |||
) |
Updates a precondition.
integer | $precondition_id | The id of the original precondition |
integer | $to_question_id | The question id of the question where to add the constraint |
integer | $if_question_id | The question id of the question which defines a precondition |
integer | $relation | The database id of the relation |
mixed | $value | The value compared with the relation public |
Definition at line 2514 of file class.ilObjSurvey.php.
References ilObject\$db, and $ilDB.
ilObjSurvey::updateOrder | ( | array | $a_order | ) |
Definition at line 4753 of file class.ilObjSurvey.php.
|
static |
Definition at line 5520 of file class.ilObjSurvey.php.
References $_SESSION.
Referenced by ilSurveyExecutionGUI\__construct(), ilObjSurveyAccess\_checkGoto(), and ilObjSurveyGUI\executeCommand().
|
protected |
Definition at line 27 of file class.ilObjSurvey.php.
Referenced by addAppraisee(), addRater(), canStartSurvey(), checkReminder(), and sent360Reminders().
|
protected |
Definition at line 148 of file class.ilObjSurvey.php.
|
protected |
Definition at line 147 of file class.ilObjSurvey.php.
|
protected |
Definition at line 146 of file class.ilObjSurvey.php.
Referenced by getActivationVisibility().
|
protected |
Definition at line 179 of file class.ilObjSurvey.php.
Referenced by hasAnonymousUserList().
ilObjSurvey::$anonymize |
Definition at line 120 of file class.ilObjSurvey.php.
ilObjSurvey::$author |
Definition at line 70 of file class.ilObjSurvey.php.
Referenced by getAuthor(), and setAuthor().
|
protected |
Definition at line 54 of file class.ilObjSurvey.php.
Referenced by getCalculateSumScore().
ilObjSurvey::$display_question_titles |
Definition at line 126 of file class.ilObjSurvey.php.
ilObjSurvey::$end_date |
Definition at line 106 of file class.ilObjSurvey.php.
Referenced by setEndDate(), and setEndDateAndTime().
ilObjSurvey::$evaluation_access |
Definition at line 92 of file class.ilObjSurvey.php.
Referenced by setEvaluationAccess().
ilObjSurvey::$introduction |
Definition at line 77 of file class.ilObjSurvey.php.
Referenced by setIntroduction().
|
protected |
Definition at line 204 of file class.ilObjSurvey.php.
|
protected |
Definition at line 144 of file class.ilObjSurvey.php.
Referenced by getSurveysWithTutorResults(), and sendTutorResults().
|
protected |
Definition at line 177 of file class.ilObjSurvey.php.
Referenced by hasMailConfirmation().
|
protected |
Definition at line 176 of file class.ilObjSurvey.php.
Referenced by hasMailOwnResults().
ilObjSurvey::$mailaddresses |
Definition at line 136 of file class.ilObjSurvey.php.
Referenced by getMailAddresses().
ilObjSurvey::$mailnotification |
Definition at line 135 of file class.ilObjSurvey.php.
Referenced by getMailNotification().
ilObjSurvey::$mailparticipantdata |
Definition at line 137 of file class.ilObjSurvey.php.
Referenced by getMailParticipantData(), and sendNotificationMail().
|
protected |
Definition at line 187 of file class.ilObjSurvey.php.
Referenced by getMode().
|
protected |
Definition at line 154 of file class.ilObjSurvey.php.
Referenced by get360Results().
|
protected |
Definition at line 152 of file class.ilObjSurvey.php.
Referenced by get360SelfAppraisee().
|
protected |
Definition at line 151 of file class.ilObjSurvey.php.
Referenced by get360SelfEvaluation().
|
protected |
Definition at line 153 of file class.ilObjSurvey.php.
Referenced by get360SelfRaters().
|
protected |
Definition at line 188 of file class.ilObjSurvey.php.
Referenced by getSelfEvaluationResults().
|
protected |
Definition at line 155 of file class.ilObjSurvey.php.
Referenced by getSkillService().
ilObjSurvey::$outro |
Definition at line 84 of file class.ilObjSurvey.php.
Referenced by setOutro().
|
protected |
Definition at line 32 of file class.ilObjSurvey.php.
Referenced by isPluginActive().
ilObjSurvey::$pool_usage |
Definition at line 139 of file class.ilObjSurvey.php.
Referenced by getPoolUsage().
ilObjSurvey::$questions |
Definition at line 113 of file class.ilObjSurvey.php.
Referenced by createQuestionblock(), getEvaluationByUser(), getParticipantTextResults(), insertQuestionblock(), and updateConjunctionForQuestions().
|
protected |
Definition at line 164 of file class.ilObjSurvey.php.
Referenced by getReminderEnd().
|
protected |
Definition at line 165 of file class.ilObjSurvey.php.
Referenced by getReminderFrequency().
|
protected |
Definition at line 167 of file class.ilObjSurvey.php.
Referenced by getReminderLastSent().
|
protected |
Definition at line 163 of file class.ilObjSurvey.php.
Referenced by getReminderStart().
|
protected |
Definition at line 162 of file class.ilObjSurvey.php.
Referenced by getReminderStatus().
|
protected |
Definition at line 166 of file class.ilObjSurvey.php.
Referenced by getReminderTarget().
|
protected |
Definition at line 168 of file class.ilObjSurvey.php.
Referenced by getReminderTemplate().
ilObjSurvey::$start_date |
Definition at line 99 of file class.ilObjSurvey.php.
Referenced by setStartDate(), and setStartDateAndTime().
ilObjSurvey::$survey_id |
Definition at line 62 of file class.ilObjSurvey.php.
Referenced by _getConstraints(), _hasDatasets(), getQuestionblockQuestions(), getQuestionblocksTable(), getSurveyId(), and setSurveyId().
ilObjSurvey::$surveyCodeSecurity |
Definition at line 133 of file class.ilObjSurvey.php.
|
protected |
Definition at line 17 of file class.ilObjSurvey.php.
Referenced by deliverPDFfromFO(), getSurveyFinishedIds(), and importObject().
ilObjSurvey::$template_id |
Definition at line 138 of file class.ilObjSurvey.php.
Referenced by applySettingsTemplate(), getTemplate(), and setTemplate().
|
protected |
Definition at line 170 of file class.ilObjSurvey.php.
Referenced by getTutorNotificationRecipients().
|
protected |
Definition at line 169 of file class.ilObjSurvey.php.
Referenced by getTutorNotificationStatus().
|
protected |
Definition at line 171 of file class.ilObjSurvey.php.
Referenced by getTutorNotificationTarget().
|
protected |
Definition at line 173 of file class.ilObjSurvey.php.
Referenced by getTutorResultsRecipients().
|
protected |
Definition at line 172 of file class.ilObjSurvey.php.
Referenced by getTutorResultsStatus().
|
protected |
Definition at line 22 of file class.ilObjSurvey.php.
Referenced by closeAppraisee(), createQuestionblock(), duplicateQuestionForSurvey(), finishSurvey(), getQuestionblocksTable(), getQuestionsTable(), getSurveyCodesForExport(), getUserDataFromActiveId(), getUserSurveyExecutionStatus(), saveAuthorToMetadata(), and sentReminderPlaceholders().
|
protected |
Definition at line 175 of file class.ilObjSurvey.php.
Referenced by hasViewOwnResults().
const ilObjSurvey::ANONYMIZE_CODE_ALL = 3 |
Definition at line 42 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyGUI\afterSave(), applySettingsTemplate(), and ilObjSurveyGUI\savePropertiesObject().
const ilObjSurvey::ANONYMIZE_FREEACCESS = 2 |
Definition at line 41 of file class.ilObjSurvey.php.
Referenced by applySettingsTemplate(), and ilObjSurveyGUI\savePropertiesObject().
const ilObjSurvey::ANONYMIZE_OFF = 0 |
Definition at line 39 of file class.ilObjSurvey.php.
Referenced by applySettingsTemplate(), and ilObjSurveyGUI\savePropertiesObject().
const ilObjSurvey::ANONYMIZE_ON = 1 |
Definition at line 40 of file class.ilObjSurvey.php.
Referenced by applySettingsTemplate(), and ilObjSurveyGUI\savePropertiesObject().
const ilObjSurvey::EVALUATION_ACCESS_ALL = 1 |
Definition at line 35 of file class.ilObjSurvey.php.
Referenced by ilSurveyEvaluationGUI\evaluation(), ilObjSurveyAdministrationGUI\getSettingsTemplateConfig(), and ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::EVALUATION_ACCESS_OFF = 0 |
Definition at line 34 of file class.ilObjSurvey.php.
Referenced by ilSurveyEvaluationGUI\evaluation(), ilObjSurveyAdministrationGUI\getSettingsTemplateConfig(), and ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::EVALUATION_ACCESS_PARTICIPANTS = 2 |
Definition at line 36 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyGUI\afterSave(), ilSurveyEvaluationGUI\evaluation(), ilObjSurveyAdministrationGUI\getSettingsTemplateConfig(), and ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::MODE_360 = 1 |
Definition at line 192 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyAccess\_hasEvaluationAccess(), ilObjSurveyAccess\_lookup360Mode(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilObjSurveyGUI\afterSave(), get360Mode(), ilObjSurveyListGUI\getProperties(), ilObjSurveyGUI\getTabs(), importObject(), ilObjSurveyGUI\initPropertiesForm(), ilObjSurveyGUI\savePropertiesObject(), and ilSurveySkill\writeAndAddSelfEvalSkills().
const ilObjSurvey::MODE_SELF_EVAL = 2 |
Definition at line 193 of file class.ilObjSurvey.php.
Referenced by ilSurveyEvaluationGUI\__construct(), ilObjSurveyAccess\_hasEvaluationAccess(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilObjSurveyGUI\afterSave(), ilSurveyExecutionGUI\checkAuth(), ilSurveyEvaluationGUI\competenceEval(), ilSurveyEvaluationGUI\evaluation(), ilSurveyEvaluationGUI\evaluationuser(), ilObjSurveyGUI\executeCommand(), finishSurvey(), ilObjSurveyListGUI\getProperties(), ilObjSurveyGUI\getTabs(), importObject(), ilObjSurveyGUI\initPropertiesForm(), ilSurveyParticipantsGUI\maintenanceObject(), ilObjSurveyGUI\savePropertiesObject(), ilSurveyEvaluationGUI\sumscore(), and ilSurveySkill\writeAndAddSelfEvalSkills().
const ilObjSurvey::MODE_STANDARD = 0 |
Definition at line 191 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyGUI\executeCommand(), and ilObjSurveyGUI\getTabs().
const ilObjSurvey::NOTIFICATION_APPRAISEES = 3 |
Definition at line 183 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyGUI\initPropertiesForm(), ilObjSurveyGUI\savePropertiesObject(), and sent360Reminders().
const ilObjSurvey::NOTIFICATION_APPRAISEES_AND_RATERS = 5 |
Definition at line 185 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyGUI\initPropertiesForm(), ilObjSurveyGUI\savePropertiesObject(), and sent360Reminders().
const ilObjSurvey::NOTIFICATION_INVITED_USERS = 2 |
Definition at line 182 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::NOTIFICATION_PARENT_COURSE = 1 |
Definition at line 181 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::NOTIFICATION_RATERS = 4 |
Definition at line 184 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyGUI\initPropertiesForm(), ilObjSurveyGUI\savePropertiesObject(), and sent360Reminders().
const ilObjSurvey::PRINT_HIDE_LABELS = 1 |
Definition at line 48 of file class.ilObjSurvey.php.
Referenced by ilSurveyEditorGUI\__construct(), and SurveyQuestionGUI\getPrintViewQuestionTitle().
const ilObjSurvey::PRINT_SHOW_LABELS = 3 |
Definition at line 49 of file class.ilObjSurvey.php.
Referenced by ilSurveyEditorGUI\__construct(), and SurveyQuestionGUI\getPrintViewQuestionTitle().
const ilObjSurvey::QUESTIONTITLES_HIDDEN = 0 |
Definition at line 44 of file class.ilObjSurvey.php.
const ilObjSurvey::QUESTIONTITLES_VISIBLE = 1 |
Definition at line 45 of file class.ilObjSurvey.php.
const ilObjSurvey::RESULTS_360_ALL = 2 |
Definition at line 159 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyAccess\_hasEvaluationAccess(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilSurveyEvaluationGUI\determineAppraiseeId(), and ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::RESULTS_360_NONE = 0 |
Definition at line 157 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyAccess\_hasEvaluationAccess(), and ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::RESULTS_360_OWN = 1 |
Definition at line 158 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyAccess\_hasEvaluationAccess(), and ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::RESULTS_SELF_EVAL_ALL = 2 |
Definition at line 198 of file class.ilObjSurvey.php.
Referenced by ilSurveyEvaluationGUI\addApprSelectionToToolbar(), and ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::RESULTS_SELF_EVAL_NONE = 0 |
Definition at line 196 of file class.ilObjSurvey.php.
Referenced by ilObjSurveyAccess\_hasEvaluationAccess(), and ilObjSurveyGUI\initPropertiesForm().
const ilObjSurvey::RESULTS_SELF_EVAL_OWN = 1 |
Definition at line 197 of file class.ilObjSurvey.php.
Referenced by ilSurveyEvaluationGUI\evaluation(), ilObjSurveyGUI\initPropertiesForm(), and saveToDb().