|
ILIAS
Release_3_10_x_branch Revision 61812
|
Inheritance diagram for ilObjSurvey:
Collaboration diagram for ilObjSurvey:Public Member Functions | |
| ilObjSurvey ($a_id=0, $a_call_by_reference=true) | |
| Constructor public. | |
| create ($a_upload=false) | |
| create survey object | |
| createMetaData () | |
| Create meta data entry. | |
| update () | |
| update object data | |
| createReference () | |
| creates reference for object | |
| read ($a_force_db=false) | |
| read object data from db into object | |
| addQuestion ($question_id) | |
| Adds a question to the survey. | |
| delete () | |
| delete object and all related data | |
| deleteSurveyRecord () | |
| Deletes the survey from the database. | |
| deleteAllUserData () | |
| Deletes all user data of a survey. | |
| removeSelectedSurveyResults ($finished_ids) | |
| Deletes the user data of a given array of survey participants. | |
| & | getSurveyParticipants () |
| notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
| notifys an object about an event occured Based on the event happend, each object may decide how it reacts. | |
| isComplete () | |
| Returns true, if a survey is complete for use. | |
| _isComplete ($obj_id) | |
| Returns true, if a survey is complete for use. | |
| & | _getGlobalSurveyData ($obj_id) |
| Returns an array with data needed in the repository, personal desktop or courses. | |
| saveCompletionStatus () | |
| Saves the completion status of the survey. | |
| duplicateQuestionForSurvey ($question_id) | |
| Takes a question and creates a copy of the question for use in the survey. | |
| insertQuestion ($question_id) | |
| Inserts a question in the survey and saves the relation to the database. | |
| insertQuestionblock ($questionblock_id) | |
| Inserts a questionblock in the survey and saves the relation to the database. | |
| getAllRTEContent () | |
| Returns the content of all RTE enabled text areas in the test. | |
| cleanupMediaobjectUsage () | |
| Cleans up the media objects for all text fields in a test which are using an RTE field. | |
| saveToDb () | |
| Saves a survey object to a database. | |
| saveQuestionsToDb () | |
| Saves the survey questions to the database. | |
| getAnonymousId ($id) | |
| Checks for an anomyous survey id in the database an returns the id. | |
| getQuestionGUI ($questiontype, $question_id) | |
| Returns a question gui object to a given questiontype and question id. | |
| getQuestionType ($question_id) | |
| Returns the question type of a question with a given id. | |
| getSurveyId () | |
| Returns the survey database id. | |
| setAnonymize ($a_anonymize) | |
| set anonymize status | |
| getAnonymize () | |
| get anonymize status | |
| isAccessibleWithoutCode () | |
| Checks if the survey is accessable without a survey code. | |
| loadFromDb () | |
| Loads a survey object from a database. | |
| loadQuestionsFromDb () | |
| Loads the survey questions from the database. | |
| setStartDateEnabled ($enabled=false) | |
| Sets the enabled state of the start date. | |
| getStartDateEnabled () | |
| Gets the enabled state of the start date. | |
| setEndDateEnabled ($enabled=false) | |
| Sets the enabled state of the end date. | |
| getEndDateEnabled () | |
| Gets the enabled state of the end date. | |
| setAuthor ($author="") | |
| Sets the authors name. | |
| saveAuthorToMetadata ($a_author="") | |
| Saves an authors name into the lifecycle metadata if no lifecycle metadata exists. | |
| getAuthor () | |
| Gets the authors name. | |
| getShowQuestionTitles () | |
| Gets the status of the display_question_titles attribute. | |
| showQuestionTitles () | |
| Sets the question titles visible during the query. | |
| hideQuestionTitles () | |
| Sets the question titles hidden during the query. | |
| setInvitation ($invitation=0) | |
| Sets the invitation status. | |
| setInvitationMode ($invitation_mode=0) | |
| Sets the invitation mode. | |
| setInvitationAndMode ($invitation=0, $invitation_mode=0) | |
| Sets the invitation status and mode (a more performant solution if you change both) | |
| setIntroduction ($introduction="") | |
| Sets the introduction text. | |
| setOutro ($outro="") | |
| Sets the outro text. | |
| getInvitation () | |
| Gets the invitation status. | |
| getInvitationMode () | |
| Gets the invitation mode. | |
| getStatus () | |
| Gets the survey status. | |
| isOnline () | |
| Gets the survey status. | |
| isOffline () | |
| Gets the survey status. | |
| setStatus ($status=STATUS_OFFLINE) | |
| Sets the survey status. | |
| getStartDate () | |
| Gets the start date of the survey. | |
| canStartSurvey ($anonymous_id=NULL) | |
| Checks if the survey can be started. | |
| setStartDate ($start_date="") | |
| Sets the start date of the survey. | |
| getStartMonth () | |
| Gets the start month of the survey. | |
| getStartDay () | |
| Gets the start day of the survey. | |
| getStartYear () | |
| Gets the start year of the survey. | |
| getEndDate () | |
| Gets the end date of the survey. | |
| setEndDate ($end_date="") | |
| Sets the end date of the survey. | |
| getEndMonth () | |
| Gets the end month of the survey. | |
| getEndDay () | |
| Gets the end day of the survey. | |
| getEndYear () | |
| Gets the end year of the survey. | |
| getEvaluationAccess () | |
| Gets the learners evaluation access. | |
| setEvaluationAccess ($evaluation_access=EVALUATION_ACCESS_OFF) | |
| Sets the learners evaluation access. | |
| getIntroduction () | |
| Gets the introduction text. | |
| getOutro () | |
| Gets the outro text. | |
| & | getExistingQuestions () |
| Gets the question id's of the questions which are already in the survey. | |
| & | getQuestionpoolTitles ($could_be_offline=FALSE, $showPath=FALSE) |
| Get the titles of all available survey question pools. | |
| moveUpQuestion ($question_id) | |
| Moves a question up in the list of survey questions. | |
| moveDownQuestion ($question_id) | |
| Moves a question down in the list of survey questions. | |
| moveUpQuestionblock ($questionblock_id) | |
| Moves a questionblock up in the list of survey questions. | |
| moveDownQuestionblock ($questionblock_id) | |
| Moves a questionblock down in the list of survey questions. | |
| moveQuestions ($move_questions, $target_index, $insert_mode) | |
| Move questions and/or questionblocks to another position. | |
| removeQuestion ($question_id) | |
| Remove a question from the survey. | |
| removeConstraintsConcerningQuestion ($question_id) | |
| Remove constraints concerning a question with a given question_id. | |
| removeQuestions ($remove_questions, $remove_questionblocks) | |
| Remove questions from the survey. | |
| unfoldQuestionblocks ($questionblocks) | |
| Unfolds question blocks of a question pool. | |
| & | getQuestionblockTitles () |
| Returns the titles of all question blocks of the question pool. | |
| & | getQuestionblockQuestions ($questionblock_id) |
| Returns the question titles of all questions of a question block. | |
| & | getQuestionblockQuestionIds ($questionblock_id) |
| Returns the question id's of all questions of a question block. | |
| getQuestionblock ($questionblock_id) | |
| Returns the database row for a given question block. | |
| _getQuestionblock ($questionblock_id) | |
| Returns the database row for a given question block. | |
| _addQuestionblock ($title="", $owner=0) | |
| Adds a questionblock to the database. | |
| createQuestionblock ($title, $show_questiontext, $questions) | |
| Creates a question block for the survey. | |
| modifyQuestionblock ($questionblock_id, $title, $show_questiontext) | |
| Modifies a question block. | |
| deleteConstraints ($question_id) | |
| Deletes the constraints for a question. | |
| deleteConstraint ($constraint_id, $question_id) | |
| Deletes a constraint of a question. | |
| & | getSurveyQuestions ($with_answers=false) |
| Returns the survey questions and questionblocks in an array. | |
| setObligatoryStates ($obligatory_questions) | |
| Sets the obligatory states for questions in a survey from the questions form. | |
| & | getObligatoryStates () |
| Gets specific obligatory states of the survey. | |
| & | getSurveyPages () |
| Returns the survey pages in an array (a page contains one or more questions) | |
| getNextPage ($active_page_question_id, $direction) | |
| Returns the next "page" of a running test. | |
| & | getAvailableQuestionpools ($use_obj_id=false, $could_be_offline=false, $showPath=FALSE, $permission="read") |
| Returns the available question pools for the active user. | |
| getPrecondition ($id) | |
| Returns a precondition with a given id. | |
| getConstraints ($question_id) | |
| Returns the constraints to a given question or questionblock. | |
| _getConstraints ($survey_id) | |
| Returns the constraints to a given question or questionblock. | |
| & | getVariables ($question_id) |
| Returns all variables of a question. | |
| addConstraint ($to_question_id, $if_question_id, $relation, $value) | |
| Adds a constraint to a question. | |
| updateConstraint ($to_question_id, $if_question_id, $relation, $value) | |
| Updates a precondition. | |
| getAllRelations ($short_as_key=false) | |
| Returns all available relations. | |
| disinviteUser ($user_id) | |
| Disinvites a user from a survey. | |
| inviteUser ($user_id) | |
| Invites a user to a survey. | |
| inviteGroup ($group_id) | |
| Invites a group to a survey. | |
| inviteRole ($role_id) | |
| Invites a role to a survey. | |
| & | getInvitedUsers () |
| Returns a list of all invited users in a survey. | |
| & | getInvitedGroups () |
| Returns a list of all invited groups in a survey. | |
| deleteWorkingData ($question_id, $active_id) | |
| Deletes the working data of a question in the database. | |
| loadWorkingData ($question_id, $active_id) | |
| Gets the working data of question from the database. | |
| fillSurveyForUser ($user_id=ANONYMOUS_USER_ID) | |
| Fills a survey randomly with data for a given user. | |
| startSurvey ($user_id, $anonymous_id) | |
| Starts the survey creating an entry in the database. | |
| finishSurvey ($user_id, $anonymize_id) | |
| Finishes the survey creating an entry in the database. | |
| isAllowedToTakeMultipleSurveys ($userid="") | |
| Checks if a user is allowed to take multiple survey. | |
| isSurveyStarted ($user_id, $anonymize_id) | |
| Checks if a user already started a survey. | |
| getLastActivePage ($active_id) | |
| Returns the question id of the last active page a user visited in a survey. | |
| checkConstraint ($constraint_data, $working_data) | |
| Checks if a constraint is valid. | |
| _hasDatasets ($survey_id) | |
| & | getSurveyFinishedIds () |
| Get the finished id's of all survey participants. | |
| & | getUserSpecificResults () |
| Calculates the evaluation data for the user specific results. | |
| getUserDataFromActiveId ($active_id) | |
| Returns the user information from an active_id (survey_finished.finished_id) | |
| & | getEvaluationByUser ($questions, $active_id) |
| Calculates the evaluation data for a given user or anonymous id. | |
| getCumulatedResults (&$question) | |
| Calculates the evaluation data for a question. | |
| _getNrOfParticipants ($survey_id) | |
| Returns the number of participants for a survey. | |
| & | getQuestions ($question_ids) |
| & | getQuestionblocks ($questionblock_ids) |
| getQuestionsTable ($sort, $sortorder, $filter_text, $sel_filter_type, $startrow=0, $completeonly=0, $filter_question_type="", $filter_questionpool="") | |
| Calculates the data for the output of the question browser. | |
| getQuestionblocksTable ($sort, $sortorder, $filter_text, $sel_filter_type, $startrow=0) | |
| Calculates the data for the output of the questionblock browser. | |
| toXML () | |
| Returns a QTI xml representation of the survey. | |
| & | _instanciateQuestion ($question_id) |
| Creates an instance of a question with a given question id. | |
| locateImportFiles ($a_dir) | |
| Locates the import directory and the xml file in a directory with an unzipped import file. | |
| importObject ($file_info, $survey_questionpool_id) | |
| Imports a survey from XML into the ILIAS database. | |
| & | _getAvailableSurveys ($use_object_id=false) |
| Returns the available surveys for the active user. | |
| cloneObject ($a_target_id, $a_copy_id=0) | |
| Clone object. | |
| getTextblock ($question_id) | |
| cloneTextblocks ($mapping) | |
| Clones the textblocks of survey questions. | |
| 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) | |
| getExportDirectory () | |
| get export directory of survey | |
| getExportFiles ($dir) | |
| get export files | |
| 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) | |
| getImportDirectory () | |
| get import directory of survey | |
| saveHeading ($heading="", $insertbefore) | |
| _getRefIdFromObjId ($obj_id) | |
| isAnonymousKey ($key) | |
| getUserSurveyCode ($user_id) | |
| isAnonymizedParticipant ($key) | |
| checkSurveyCode ($code) | |
| getSurveyCodesCount () | |
| Returns the number of generated survey codes for the survey. | |
| getSurveyCodesForExport ($a_array) | |
| Returns a list of survey codes for file export. | |
| & | getSurveyCodesTableData ($lang="en", $offset=0, $limit=10) |
| Fetches the data for the survey codes table. | |
| isSurveyCodeUsed ($code) | |
| createSurveyCodes ($nrOfCodes) | |
| deleteSurveyCode ($survey_code) | |
| Deletes a given survey access code. | |
| getUserAccessCode ($user_id) | |
| Returns a survey access code that was saved for a registered user. | |
| saveUserAccessCode ($user_id, $access_code) | |
| Saves a survey access code for a registered user to the database. | |
| createNewAccessCode () | |
| Returns a new, unused survey access code. | |
| & | processCSVRow ($row, $quoteAll=FALSE, $separator=";") |
| Convertes an array for CSV usage. | |
| _getLastAccess ($finished_id) | |
| prepareTextareaOutput ($txt_output) | |
| Prepares a string for a text area output in surveys. | |
| isHTML ($a_text) | |
| Checks if a given string contains HTML or not. | |
| 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. | |
| canExportSurveyCode () | |
| Checks if the survey code can be exported with the survey evaluation. | |
| processPrintoutput2FO ($print_output) | |
| Convert a print output to XSL-FO. | |
| deliverPDFfromFO ($fo) | |
| Delivers a PDF file from a XSL-FO string. | |
| _checkCondition ($a_svy_id, $a_operator, $a_value, $a_usr_id=0) | |
| isPluginActive ($a_pname) | |
| Checks wheather or not a question plugin with a given name is active. | |
Public Member Functions inherited from ilObject | |
| ilObject ($a_id=0, $a_reference=true) | |
| Constructor public. | |
| withReferences () | |
| determines wehter objects are referenced or not (got ref ids or not) | |
| getId () | |
| get object id public | |
| setId ($a_id) | |
| set object id public | |
| setRefId ($a_id) | |
| set reference id public | |
| getRefId () | |
| get reference id public | |
| getType () | |
| get object type public | |
| setType ($a_type) | |
| set object type public | |
| getPresentationTitle () | |
| get presentation title Normally same as title Overwritten for sessions | |
| getTitle () | |
| get object title public | |
| getUntranslatedTitle () | |
| get untranslated object title public | |
| setTitle ($a_title) | |
| set object title | |
| getDescription () | |
| get object description | |
| setDescription ($a_desc) | |
| set object description | |
| getLongDescription () | |
| get object long description (stored in object_description) | |
| getImportId () | |
| get import id | |
| setImportId ($a_import_id) | |
| set import id | |
| _lookupObjIdByImportId ($a_import_id) | |
| getOwner () | |
| get object owner | |
| getOwnerName () | |
| _lookupOwnerName ($a_owner_id) | |
| lookup owner name for owner id | |
| setOwner ($a_owner) | |
| set object owner | |
| getCreateDate () | |
| get create date public | |
| getLastUpdateDate () | |
| get last update date public | |
| setObjDataRecord ($a_record) | |
| set object_data record (note: this method should only be called from the ilObjectFactory class) | |
| create () | |
| create | |
| MDUpdateListener ($a_element) | |
| Meta data update listener. | |
| updateMetaData () | |
| update meta data entry | |
| deleteMetaData () | |
| delete meta data entry | |
| updateOwner () | |
| update owner of object in db | |
| _getIdForImportId ($a_import_id) | |
| get current object id for import id (static) | |
| _getAllReferences ($a_id) | |
| get all reference ids of object | |
| _lookupTitle ($a_id) | |
| lookup object title | |
| _lookupDescription ($a_id) | |
| lookup object description | |
| _lookupLastUpdate ($a_id, $a_as_string=false) | |
| lookup last update | |
| _getLastUpdateOfObjects ($a_objs) | |
| Get last update for a set of media objects. | |
| _lookupObjId ($a_id) | |
| _setDeletedDate ($a_ref_id) | |
| only called in ilTree::saveSubTree | |
| _resetDeletedDate ($a_ref_id) | |
| only called in ilObjectGUI::insertSavedNodes | |
| _writeTitle ($a_obj_id, $a_title) | |
| write title to db (static) | |
| _writeDescription ($a_obj_id, $a_desc) | |
| write description to db (static) | |
| _writeImportId ($a_obj_id, $a_import_id) | |
| write import id to db (static) | |
| _lookupType ($a_id, $a_reference=false) | |
| lookup object type | |
| _isInTrash ($a_ref_id) | |
| checks wether object is in trash | |
| _hasUntrashedReference ($a_obj_id) | |
| checks wether an object has at least one reference that is not in trash | |
| _lookupObjectId ($a_ref_id) | |
| lookup object id | |
| _getObjectsDataForType ($a_type, $a_omit_trash=false) | |
| get all objects of a certain type | |
| putInTree ($a_parent_ref) | |
| maybe this method should be in tree object!? | |
| setPermissions ($a_parent_ref) | |
| set permissions of object | |
| countReferences () | |
| count references of object | |
| 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 | |
| createRoleFolder () | |
| creates a local role folder | |
| 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. | |
| cloneDependencies ($a_target_id, $a_copy_id) | |
| Clone object dependencies. | |
| cloneMetaData ($target_obj) | |
| Copy meta data. | |
Data Fields | |
| $survey_id | |
| $author | |
| $introduction | |
| $outro | |
| $status | |
| $evaluation_access | |
| $start_date | |
| $startdate_enabled | |
| $end_date | |
| $enddate_enabled | |
| $questions | |
| $invitation | |
| $invitation_mode | |
| $anonymize | |
| $display_question_titles | |
| $surveyCodeSecurity | |
Data Fields inherited from ilObject | |
| $ilias | |
| $lng | |
| $id | |
| $ref_id | |
| $type | |
| $title | |
| $untranslatedTitle | |
| $desc | |
| $long_desc | |
| $owner | |
| $create_date | |
| $last_update | |
| $import_id | |
| $register = false | |
| $referenced | |
| $objectList | |
| $max_title | |
| $max_desc | |
| $add_dots | |
| $obj_data_record | |
| object_data record | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilObject | |
| static | _getIdsForTitle ($title, $type= '') |
| _exists ($a_id, $a_reference=false) | |
| checks if an object exists in object_data | |
| static | _getObjectsByType ($a_obj_type="") |
| Get objects by type. | |
| static | _prepareCloneSelection ($a_ref_ids, $new_type) |
| Prepare copy wizard object selection. | |
| static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Definition at line 37 of file class.ilObjSurvey.php.
| ilObjSurvey::_addQuestionblock | ( | $title = "", |
|
$owner = 0 |
|||
| ) |
Adds a questionblock to the database.
Adds a questionblock to the database
| string | $title | The questionblock title |
| integer | $owner | The database id of the owner |
Definition at line 2361 of file class.ilObjSurvey.php.
References ilObject\$owner, $result, and ilObject\$title.
Referenced by cloneObject().
Here is the caller graph for this function:| ilObjSurvey::_checkCondition | ( | $a_svy_id, | |
| $a_operator, | |||
| $a_value, | |||
$a_usr_id = 0 |
|||
| ) |
Definition at line 5327 of file class.ilObjSurvey.php.
References ilObjSurveyAccess\_lookupFinished().
Here is the call graph for this function:| & ilObjSurvey::_getAvailableSurveys | ( | $use_object_id = false | ) |
Returns the available surveys for the active user.
Returns the available surveys for the active user
Definition at line 4438 of file class.ilObjSurvey.php.
References $result, ilUtil\_getObjectsByOperations(), and ilObject\_prepareCloneSelection().
Here is the call graph for this function:| ilObjSurvey::_getConstraints | ( | $survey_id | ) |
Returns the constraints to a given question or questionblock.
Returns the constraints to a given question or questionblock
public
Definition at line 2868 of file class.ilObjSurvey.php.
References $result, and $survey_id.
Referenced by cloneObject().
Here is the caller graph for this function:| & ilObjSurvey::_getGlobalSurveyData | ( | $obj_id | ) |
Returns an array with data needed in the repository, personal desktop or courses.
Returns an array with data needed in the repository, personal desktop or courses
Definition at line 580 of file class.ilObjSurvey.php.
References $result, and ilObjSurvey().
Here is the call graph for this function:| ilObjSurvey::_getLastAccess | ( | $finished_id | ) |
Definition at line 5160 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::_getNrOfParticipants | ( | $survey_id | ) |
Returns the number of participants for a survey.
Returns the number of participants for a survey
| integer | $survey_id | The database ID of the survey |
Definition at line 3752 of file class.ilObjSurvey.php.
References $result, and $survey_id.
Referenced by SurveyTextQuestionGUI\getCumulatedResultRow(), SurveyMetricQuestionGUI\getCumulatedResultRow(), SurveyNominalQuestionGUI\getCumulatedResultRow(), SurveyOrdinalQuestionGUI\getCumulatedResultRow(), SurveyMatrixQuestionGUI\getCumulatedResultRow(), SurveyTextQuestionGUI\getCumulatedResultsDetails(), SurveyMetricQuestionGUI\getCumulatedResultsDetails(), SurveyNominalQuestionGUI\getCumulatedResultsDetails(), SurveyOrdinalQuestionGUI\getCumulatedResultsDetails(), SurveyMatrixQuestionGUI\getCumulatedResultsDetails(), SurveyOrdinalQuestion\outChart(), SurveyNominalQuestion\outChart(), SurveyMetricQuestion\outChart(), and SurveyMatrixQuestion\outChart().
Here is the caller graph for this function:| ilObjSurvey::_getQuestionblock | ( | $questionblock_id | ) |
Returns the database row for a given question block.
Returns the database row for a given question block
| integer | $questionblock_id | The database id of the question block |
Definition at line 2340 of file class.ilObjSurvey.php.
References $result.
Referenced by cloneObject().
Here is the caller graph for this function:| ilObjSurvey::_getRefIdFromObjId | ( | $obj_id | ) |
Definition at line 4769 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::_hasDatasets | ( | $survey_id | ) |
Definition at line 3530 of file class.ilObjSurvey.php.
References $result, and $survey_id.
| & ilObjSurvey::_instanciateQuestion | ( | $question_id | ) |
Creates an instance of a question with a given question id.
Creates an instance of a question with a given question id
| integer | $question_id | The question id |
Definition at line 4236 of file class.ilObjSurvey.php.
References SurveyQuestion\_getQuestionType(), and SurveyQuestion\_includeClass().
Referenced by cloneObject(), fillSurveyForUser(), getSurveyQuestions(), removeQuestion(), and toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::_isComplete | ( | $obj_id | ) |
Returns true, if a survey is complete for use.
Returns true, if a survey is complete for use
Definition at line 558 of file class.ilObjSurvey.php.
References ilObjSurvey().
Here is the call graph for this function:| ilObjSurvey::addConstraint | ( | $to_question_id, | |
| $if_question_id, | |||
| $relation, | |||
| $value | |||
| ) |
Adds a constraint to a question.
Adds a constraint to a question
| 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 2918 of file class.ilObjSurvey.php.
References ilObject\$ilias, and $result.
| 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 5227 of file class.ilObjSurvey.php.
References $mobs, ilObjMediaObject\_getMobsOfObject(), ilRTE\_replaceMediaObjectImageSrc(), ilObject\getId(), and isHTML().
Referenced by toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::addQuestion | ( | $question_id | ) |
Adds a question to the survey.
| integer | $question_id | The question id of the question public |
Definition at line 278 of file class.ilObjSurvey.php.
| 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 5271 of file class.ilObjSurvey.php.
References ANONYMIZE_OFF, and getAnonymize().
Here is the call graph for this function:| ilObjSurvey::canStartSurvey | ( | $anonymous_id = NULL | ) |
Checks if the survey can be started.
Checks if the survey can be started
Definition at line 1599 of file class.ilObjSurvey.php.
References $result, ilDatePresentation\formatDate(), getEndDateEnabled(), getEndDay(), getEndMonth(), getEndYear(), getStartDateEnabled(), getStartDay(), getStartMonth(), getStartYear(), getStatus(), IL_CAL_TIMESTAMP, isSurveyStarted(), and STATUS_OFFLINE.
Here is the call graph for this function:| ilObjSurvey::checkConstraint | ( | $constraint_data, | |
| $working_data | |||
| ) |
Checks if a constraint is valid.
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 3473 of file class.ilObjSurvey.php.
References $data.
| ilObjSurvey::checkSurveyCode | ( | $code | ) |
Definition at line 4845 of file class.ilObjSurvey.php.
References isAnonymousKey(), and isSurveyStarted().
Here is the call graph for this function:| ilObjSurvey::cleanupMediaobjectUsage | ( | ) |
Cleans up the media objects for all text fields in a test which are using an RTE field.
Cleans up the media objects for all text fields in a test which are using an RTE field
private
Definition at line 733 of file class.ilObjSurvey.php.
References ilRTE\_cleanupMediaObjectUsage(), getAllRTEContent(), ilObject\getId(), and ilObject\getType().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::cloneObject | ( | $a_target_id, | |
$a_copy_id = 0 |
|||
| ) |
Clone object.
public
| int | ref_id of target container |
| int | copy id |
Reimplemented from ilObject.
Definition at line 4475 of file class.ilObjSurvey.php.
References $result, _addQuestionblock(), _getConstraints(), SurveyQuestion\_getOriginalId(), _getQuestionblock(), _instanciateQuestion(), ilObject\cloneMetaData(), getAnonymize(), getAuthor(), getEndDate(), getEndDateEnabled(), getEvaluationAccess(), getIntroduction(), getInvitation(), getInvitationMode(), getOutro(), getStartDate(), getStartDateEnabled(), getStatus(), getSurveyId(), and loadFromDb().
Here is the call graph for this function:| ilObjSurvey::cloneTextblocks | ( | $mapping | ) |
Clones the textblocks of survey questions.
Clones the textblocks of survey questions
public
Definition at line 4601 of file class.ilObjSurvey.php.
References ilObjAdvancedEditing\_getUsedHTMLTagsAsString(), getTextblock(), saveHeading(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilObjSurvey::create | ( | $a_upload = false | ) |
create survey object
Definition at line 212 of file class.ilObjSurvey.php.
References ilObject\create(), and createMetaData().
Here is the call graph for this function:| 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)
Definition at line 4616 of file class.ilObjSurvey.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
Here is the call graph for this function:| 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)
Definition at line 4697 of file class.ilObjSurvey.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
Here is the call graph for this function:| ilObjSurvey::createMetaData | ( | ) |
Create meta data entry.
Create meta data entry
public
Reimplemented from ilObject.
Definition at line 228 of file class.ilObjSurvey.php.
References saveAuthorToMetadata().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::createNewAccessCode | ( | ) |
Returns a new, unused survey access code.
Definition at line 5095 of file class.ilObjSurvey.php.
References isSurveyCodeUsed().
Referenced by createSurveyCodes(), and fillSurveyForUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::createQuestionblock | ( | $title, | |
| $show_questiontext, | |||
| $questions | |||
| ) |
Creates a question block for the survey.
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 2381 of file class.ilObjSurvey.php.
References ilObject\$ilias, $questions, $result, ilObject\$title, deleteConstraints(), and moveQuestions().
Referenced by insertQuestionblock().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::createReference | ( | ) |
creates reference for object
public
Reimplemented from ilObject.
Definition at line 254 of file class.ilObjSurvey.php.
References $result, and saveToDb().
Here is the call graph for this function:| ilObjSurvey::createSurveyCodes | ( | $nrOfCodes | ) |
Definition at line 5011 of file class.ilObjSurvey.php.
References $result, createNewAccessCode(), and getSurveyId().
Here is the call graph for this function:| ilObjSurvey::delete | ( | ) |
delete object and all related data
public
Reimplemented from ilObject.
Definition at line 290 of file class.ilObjSurvey.php.
References ilUtil\delDir(), ilObject\deleteMetaData(), deleteSurveyRecord(), getImportDirectory(), and removeQuestion().
Here is the call graph for this function:| ilObjSurvey::deleteAllUserData | ( | ) |
Deletes all user data of a survey.
Deletes all user data of a survey
public
Definition at line 385 of file class.ilObjSurvey.php.
References $result.
Referenced by deleteSurveyRecord().
Here is the caller graph for this function:| ilObjSurvey::deleteConstraint | ( | $constraint_id, | |
| $question_id | |||
| ) |
Deletes a constraint of a question.
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 2476 of file class.ilObjSurvey.php.
References getSurveyId().
Referenced by moveQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::deleteConstraints | ( | $question_id | ) |
Deletes the constraints for a question.
Deletes the constraints for a question
| integer | $question_id | The database id of the question public |
Definition at line 2445 of file class.ilObjSurvey.php.
References $result, and getSurveyId().
Referenced by createQuestionblock().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::deleteSurveyCode | ( | $survey_code | ) |
Deletes a given survey access code.
Deletes a given survey access code
| string | $survey_code | The survey code that should be deleted |
Definition at line 5032 of file class.ilObjSurvey.php.
| ilObjSurvey::deleteSurveyRecord | ( | ) |
Deletes the survey from the database.
Deletes the survey from the database
public
Definition at line 319 of file class.ilObjSurvey.php.
References $mobs, $result, ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilUtil\delDir(), deleteAllUserData(), ilUtil\getDataDir(), and ilObject\getId().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::deleteWorkingData | ( | $question_id, | |
| $active_id | |||
| ) |
Deletes the working data of a question in the database.
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 3194 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::deliverPDFfromFO | ( | $fo | ) |
Delivers a PDF file from a XSL-FO string.
Delivers a PDF file from a XSL-FO string
| string | $fo | The XSL-FO string public |
Definition at line 5315 of file class.ilObjSurvey.php.
References $result, ilUtil\deliverData(), ilUtil\getASCIIFilename(), ilObject\getTitle(), and ilUtil\ilTempnam().
Here is the call graph for this function:| ilObjSurvey::disinviteUser | ( | $user_id | ) |
Disinvites a user from a survey.
Disinvites a user from a survey
| integer | $user_id | The database id of the disinvited user public |
Definition at line 3014 of file class.ilObjSurvey.php.
References $result, ilObjUser\_lookupLogin(), getInvitation(), ilObject\getRefId(), and INVITATION_ON.
Here is the call graph for this function:| ilObjSurvey::duplicateQuestionForSurvey | ( | $question_id | ) |
Takes a question and creates a copy of the question for use in the survey.
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 632 of file class.ilObjSurvey.php.
References getQuestionGUI(), and getQuestionType().
Referenced by insertQuestion(), and insertQuestionblock().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::fillSurveyForUser | ( | $user_id = ANONYMOUS_USER_ID | ) |
Fills a survey randomly with data for a given user.
| integer | $user_id | The database id of the user. If empty an anonymous user will be taken public |
Definition at line 3245 of file class.ilObjSurvey.php.
References $result, _instanciateQuestion(), createNewAccessCode(), getSurveyPages(), and saveUserAccessCode().
Here is the call graph for this function:| ilObjSurvey::finishSurvey | ( | $user_id, | |
| $anonymize_id | |||
| ) |
Finishes the survey creating an entry in the database.
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 3329 of file class.ilObjSurvey.php.
References $result, getAnonymize(), and getSurveyId().
Here is the call graph for this function:| ilObjSurvey::getAllRelations | ( | $short_as_key = false | ) |
Returns all available relations.
Returns all available relations
public
Definition at line 2985 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::getAllRTEContent | ( | ) |
Returns the content of all RTE enabled text areas in the test.
Returns the content of all RTE enabled text areas in the test
private
Definition at line 718 of file class.ilObjSurvey.php.
References $result, getIntroduction(), and getOutro().
Referenced by cleanupMediaobjectUsage().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::getAnonymize | ( | ) |
get anonymize status
Definition at line 984 of file class.ilObjSurvey.php.
References $anonymize.
Referenced by canExportSurveyCode(), cloneObject(), finishSurvey(), getUserDataFromActiveId(), isAccessibleWithoutCode(), isAllowedToTakeMultipleSurveys(), isSurveyStarted(), saveToDb(), startSurvey(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getAnonymousId | ( | $id | ) |
Checks for an anomyous survey id in the database an returns the id.
Checks for an anomyous survey id in the database an returns the id
| string | $id | A survey access code |
Definition at line 898 of file class.ilObjSurvey.php.
References ilObject\$id, and $result.
| ilObjSurvey::getAuthor | ( | ) |
Gets the authors name.
Gets the authors name of the ilObjSurvey object
Definition at line 1226 of file class.ilObjSurvey.php.
References $author, ilObject\$id, ilObject\getId(), and ilObject\getType().
Referenced by cloneObject(), isComplete(), loadFromDb(), and toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilObjSurvey::getAvailableQuestionpools | ( | $use_obj_id = false, |
|
$could_be_offline = false, |
|||
$showPath = FALSE, |
|||
$permission = "read" |
|||
| ) |
Returns the available question pools for the active user.
Returns the available question pools for the active user
Definition at line 2801 of file class.ilObjSurvey.php.
References ilObjSurveyQuestionPool\_getAvailableQuestionpools().
Referenced by getQuestionsTable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::getConstraints | ( | $question_id | ) |
Returns the constraints to a given question or questionblock.
Returns the constraints to a given question or questionblock
public
Definition at line 2838 of file class.ilObjSurvey.php.
References $result, SurveyQuestion\_getQuestionType(), SurveyQuestion\_includeClass(), and getSurveyId().
Referenced by getSurveyPages(), getSurveyQuestions(), and moveQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::getCumulatedResults | ( | & | $question | ) |
Calculates the evaluation data for a question.
Calculates the evaluation data for a question
| integer | $question_id | The database id of the question |
| integer | $user_id | The database id of the user |
Definition at line 3729 of file class.ilObjSurvey.php.
References $result, and getSurveyId().
Here is the call graph for this function:| ilObjSurvey::getEndDate | ( | ) |
Gets the end date of the survey.
Gets the end date of the survey
Definition at line 1746 of file class.ilObjSurvey.php.
References $end_date.
Referenced by cloneObject(), and saveToDb().
Here is the caller graph for this function:| ilObjSurvey::getEndDateEnabled | ( | ) |
Gets the enabled state of the end date.
Gets the enabled state of the end date
Definition at line 1164 of file class.ilObjSurvey.php.
References $enddate_enabled.
Referenced by canStartSurvey(), cloneObject(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getEndDay | ( | ) |
Gets the end day of the survey.
Gets the end day of the survey
Definition at line 1795 of file class.ilObjSurvey.php.
Referenced by canStartSurvey(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getEndMonth | ( | ) |
Gets the end month of the survey.
Gets the end month of the survey
Definition at line 1774 of file class.ilObjSurvey.php.
Referenced by canStartSurvey(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getEndYear | ( | ) |
Gets the end year of the survey.
Gets the end year of the survey
Definition at line 1816 of file class.ilObjSurvey.php.
Referenced by canStartSurvey(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getEvaluationAccess | ( | ) |
Gets the learners evaluation access.
Gets the learners evaluation access
Definition at line 1837 of file class.ilObjSurvey.php.
References $evaluation_access.
Referenced by cloneObject(), and toXML().
Here is the caller graph for this function:| & ilObjSurvey::getEvaluationByUser | ( | $questions, | |
| $active_id | |||
| ) |
Calculates the evaluation data for a given user or anonymous 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 3680 of file class.ilObjSurvey.php.
References $questions, $result, and getUserDataFromActiveId().
Here is the call graph for this function:| & ilObjSurvey::getExistingQuestions | ( | ) |
Gets the question id's of the questions which are already in the survey.
Gets the question id's of the questions which are already in the survey
Definition at line 1892 of file class.ilObjSurvey.php.
References $data, and $result.
Referenced by getQuestionsTable().
Here is the caller graph for this function:| ilObjSurvey::getExportDirectory | ( | ) |
get export directory of survey
Definition at line 4646 of file class.ilObjSurvey.php.
References ilUtil\getDataDir().
Here is the call graph for this function:| ilObjSurvey::getExportFiles | ( | $dir | ) |
get export files
Definition at line 4657 of file class.ilObjSurvey.php.
| ilObjSurvey::getImportDirectory | ( | ) |
get import directory of survey
Definition at line 4729 of file class.ilObjSurvey.php.
References ilUtil\getDataDir(), and ilUtil\makeDirParents().
Referenced by delete(), and importObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::getIntroduction | ( | ) |
Gets the introduction text.
Gets the introduction text
Definition at line 1865 of file class.ilObjSurvey.php.
References $introduction.
Referenced by cloneObject(), getAllRTEContent(), importObject(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getInvitation | ( | ) |
Gets the invitation status.
Gets the invitation status
Definition at line 1467 of file class.ilObjSurvey.php.
References $invitation.
Referenced by cloneObject(), disinviteUser(), inviteGroup(), inviteRole(), inviteUser(), and setInvitationMode().
Here is the caller graph for this function:| ilObjSurvey::getInvitationMode | ( | ) |
Gets the invitation mode.
Gets the invitation mode
Definition at line 1481 of file class.ilObjSurvey.php.
References $invitation_mode, MODE_PREDEFINED_USERS, and MODE_UNLIMITED.
Referenced by cloneObject(), and setInvitation().
Here is the caller graph for this function:| & ilObjSurvey::getInvitedGroups | ( | ) |
Returns a list of all invited groups in a survey.
Returns a list of all invited groups in a survey
Definition at line 3169 of file class.ilObjSurvey.php.
References $result.
| & ilObjSurvey::getInvitedUsers | ( | ) |
Returns a list of all invited users in a survey.
Returns a list of all invited users in a survey
Definition at line 3145 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::getLastActivePage | ( | $active_id | ) |
Returns the question id of the last active page a user visited in a survey.
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 3445 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::getNextPage | ( | $active_page_question_id, | |
| $direction | |||
| ) |
Returns the next "page" of a running test.
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 2755 of file class.ilObjSurvey.php.
References getSurveyPages().
Here is the call graph for this function:| & ilObjSurvey::getObligatoryStates | ( | ) |
Gets specific obligatory states of the survey.
Gets specific obligatory states of the survey
Definition at line 2638 of file class.ilObjSurvey.php.
References $result.
Referenced by getSurveyPages(), getSurveyQuestions(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getOutro | ( | ) |
Gets the outro text.
Gets the outro text
Definition at line 1879 of file class.ilObjSurvey.php.
References $outro.
Referenced by cloneObject(), getAllRTEContent(), importObject(), saveToDb(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getPrecondition | ( | $id | ) |
Returns a precondition with a given id.
Returns a precondition with a given id
public
Definition at line 2814 of file class.ilObjSurvey.php.
References ilObject\$id, and $result.
| ilObjSurvey::getQuestionblock | ( | $questionblock_id | ) |
Returns the database row for a given question block.
Returns the database row for a given question block
| integer | $questionblock_id | The database id of the question block |
Definition at line 2320 of file class.ilObjSurvey.php.
References $result.
| & ilObjSurvey::getQuestionblockQuestionIds | ( | $questionblock_id | ) |
Returns the question id's of all questions of a question block.
Returns the question id's of all questions of a question block
Definition at line 2295 of file class.ilObjSurvey.php.
References $result.
| & ilObjSurvey::getQuestionblockQuestions | ( | $questionblock_id | ) |
Returns the question titles of all questions of a question block.
Returns the question titles of all questions of a question block
Definition at line 2257 of file class.ilObjSurvey.php.
References $result, and $survey_id.
Referenced by getQuestionblocksTable().
Here is the caller graph for this function:| & ilObjSurvey::getQuestionblocks | ( | $questionblock_ids | ) |
Definition at line 3775 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::getQuestionblocksTable | ( | $sort, | |
| $sortorder, | |||
| $filter_text, | |||
| $sel_filter_type, | |||
$startrow = 0 |
|||
| ) |
Calculates the data for the output of the questionblock browser.
Calculates the data for the output of the questionblock browser
public
Definition at line 3948 of file class.ilObjSurvey.php.
References ilUtil\getImagePath(), and getQuestionblockQuestions().
Here is the call graph for this function:| & ilObjSurvey::getQuestionblockTitles | ( | ) |
Returns the titles of all question blocks of the question pool.
Returns the titles of all question blocks of the question pool
Definition at line 2234 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::getQuestionGUI | ( | $questiontype, | |
| $question_id | |||
| ) |
Returns a question gui object to a given questiontype and question id.
Returns a question gui object to a given questiontype and question id
Definition at line 924 of file class.ilObjSurvey.php.
References SurveyQuestionGUI\_getQuestionGUI().
Referenced by duplicateQuestionForSurvey().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilObjSurvey::getQuestionpoolTitles | ( | $could_be_offline = FALSE, |
|
$showPath = FALSE |
|||
| ) |
Get the titles of all available survey question pools.
Get the titles of all available survey question pools
Definition at line 1915 of file class.ilObjSurvey.php.
References ilObjSurveyQuestionPool\_getAvailableQuestionpools().
Here is the call graph for this function:| & ilObjSurvey::getQuestions | ( | $question_ids | ) |
Definition at line 3763 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::getQuestionsTable | ( | $sort, | |
| $sortorder, | |||
| $filter_text, | |||
| $sel_filter_type, | |||
$startrow = 0, |
|||
$completeonly = 0, |
|||
$filter_question_type = "", |
|||
$filter_questionpool = "" |
|||
| ) |
Calculates the data for the output of the question browser.
Calculates the data for the output of the question browser
public
Definition at line 3802 of file class.ilObjSurvey.php.
References getAvailableQuestionpools(), getExistingQuestions(), ilUtil\getImagePath(), and isPluginActive().
Here is the call graph for this function:| ilObjSurvey::getQuestionType | ( | $question_id | ) |
Returns the question type of a question with a given id.
Returns the question type of a question with a given id
| integer | $question_id | The database id of the question |
Definition at line 939 of file class.ilObjSurvey.php.
References $data, and $result.
Referenced by duplicateQuestionForSurvey().
Here is the caller graph for this function:| ilObjSurvey::getShowQuestionTitles | ( | ) |
Gets the status of the display_question_titles attribute.
Gets the status of the display_question_titles attribute
Definition at line 1261 of file class.ilObjSurvey.php.
References $display_question_titles.
Referenced by saveToDb(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getStartDate | ( | ) |
Gets the start date of the survey.
Gets the start date of the survey
Definition at line 1586 of file class.ilObjSurvey.php.
References $start_date.
Referenced by cloneObject(), and saveToDb().
Here is the caller graph for this function:| ilObjSurvey::getStartDateEnabled | ( | ) |
Gets the enabled state of the start date.
Gets the enabled state of the start date
Definition at line 1129 of file class.ilObjSurvey.php.
References $startdate_enabled.
Referenced by canStartSurvey(), cloneObject(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getStartDay | ( | ) |
Gets the start day of the survey.
Gets the start day of the survey
Definition at line 1704 of file class.ilObjSurvey.php.
Referenced by canStartSurvey(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getStartMonth | ( | ) |
Gets the start month of the survey.
Gets the start month of the survey
Definition at line 1683 of file class.ilObjSurvey.php.
Referenced by canStartSurvey(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getStartYear | ( | ) |
Gets the start year of the survey.
Gets the start year of the survey
Definition at line 1725 of file class.ilObjSurvey.php.
Referenced by canStartSurvey(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getStatus | ( | ) |
Gets the survey status.
Gets the survey status
Definition at line 1505 of file class.ilObjSurvey.php.
References $status.
Referenced by canStartSurvey(), cloneObject(), and toXML().
Here is the caller graph for this function:| ilObjSurvey::getSurveyCodesCount | ( | ) |
Returns the number of generated survey codes for the survey.
Returns the number of generated survey codes for the survey
Definition at line 4872 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::getSurveyCodesForExport | ( | $a_array | ) |
Returns a list of survey codes for file export.
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 4892 of file class.ilObjSurvey.php.
References $lang, $result, ilObject\getRefId(), IL_CAL_DATE, IL_CAL_TIMESTAMP, and isSurveyCodeUsed().
Here is the call graph for this function:| & ilObjSurvey::getSurveyCodesTableData | ( | $lang = "en", |
|
$offset = 0, |
|||
$limit = 10 |
|||
| ) |
Fetches the data for the survey codes table.
Fetches the data for the survey codes table
| string | $lang | Language for the survey code URL |
| integer | $offset | Offset for the requested data |
| integer | $limit | Limit of the requested data |
Definition at line 4945 of file class.ilObjSurvey.php.
References $lang, $result, ilDatePresentation\formatDate(), ilObject\getRefId(), IL_CAL_TIMESTAMP, and isSurveyCodeUsed().
Here is the call graph for this function:| & ilObjSurvey::getSurveyFinishedIds | ( | ) |
Get the finished id's of all survey participants.
Definition at line 3554 of file class.ilObjSurvey.php.
References $ilLog, and $result.
| ilObjSurvey::getSurveyId | ( | ) |
Returns the survey database id.
Returns the survey database id
Definition at line 966 of file class.ilObjSurvey.php.
References $survey_id.
Referenced by cloneObject(), createSurveyCodes(), deleteConstraint(), deleteConstraints(), finishSurvey(), getConstraints(), getCumulatedResults(), getUserSpecificResults(), inviteUser(), isAnonymizedParticipant(), isAnonymousKey(), removeConstraintsConcerningQuestion(), removeQuestions(), saveHeading(), saveUserAccessCode(), toXML(), unfoldQuestionblocks(), and updateConstraint().
Here is the caller graph for this function:| & ilObjSurvey::getSurveyPages | ( | ) |
Returns the survey pages in an array (a page contains one or more questions)
Returns the survey pages in an array (a page contains one or more questions)
public
Definition at line 2663 of file class.ilObjSurvey.php.
References $in, $result, getConstraints(), and getObligatoryStates().
Referenced by fillSurveyForUser(), getNextPage(), moveDownQuestion(), moveDownQuestionblock(), moveUpQuestion(), moveUpQuestionblock(), and toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilObjSurvey::getSurveyParticipants | ( | ) |
Definition at line 444 of file class.ilObjSurvey.php.
References $result, and getUserDataFromActiveId().
Here is the call graph for this function:| & ilObjSurvey::getSurveyQuestions | ( | $with_answers = false | ) |
Returns the survey questions and questionblocks in an array.
Returns the survey questions and questionblocks in an array
public
Definition at line 2498 of file class.ilObjSurvey.php.
References $data, $in, $result, _instanciateQuestion(), getConstraints(), getObligatoryStates(), and isPluginActive().
Referenced by getUserSpecificResults(), moveDownQuestion(), moveUpQuestion(), and removeQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::getTextblock | ( | $question_id | ) |
Definition at line 4576 of file class.ilObjSurvey.php.
References $result.
Referenced by cloneTextblocks().
Here is the caller graph for this function:| ilObjSurvey::getUserAccessCode | ( | $user_id | ) |
Returns a survey access code that was saved for a registered user.
Returns a survey access code that was saved for a registered user
| int | $user_id | The database id of the user |
Definition at line 5054 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::getUserDataFromActiveId | ( | $active_id | ) |
Returns the user information from an active_id (survey_finished.finished_id)
| integer | $active_id | The active id of the user |
Definition at line 3617 of file class.ilObjSurvey.php.
References $_GET, $result, $user, ilObjUser\_lookupLogin(), and getAnonymize().
Referenced by getEvaluationByUser(), and getSurveyParticipants().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilObjSurvey::getUserSpecificResults | ( | ) |
Calculates the evaluation data for the user specific results.
Definition at line 3579 of file class.ilObjSurvey.php.
References $data, $questions, $result, SurveyQuestion\_getQuestionType(), SurveyQuestion\_includeClass(), getSurveyId(), and getSurveyQuestions().
Here is the call graph for this function:| ilObjSurvey::getUserSurveyCode | ( | $user_id | ) |
Definition at line 4805 of file class.ilObjSurvey.php.
References $result, isAccessibleWithoutCode(), and isAllowedToTakeMultipleSurveys().
Here is the call graph for this function:| & ilObjSurvey::getVariables | ( | $question_id | ) |
Returns all variables of a question.
Returns all variables of a question
public
Definition at line 2891 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::hideQuestionTitles | ( | ) |
Sets the question titles hidden during the query.
Sets the question titles hidden during the query
public
Definition at line 1287 of file class.ilObjSurvey.php.
References QUESTIONTITLES_HIDDEN.
| ilObjSurvey::ilObjSurvey | ( | $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 187 of file class.ilObjSurvey.php.
References ANONYMIZE_OFF, EVALUATION_ACCESS_OFF, ilObject\ilObject(), INVITATION_OFF, MODE_PREDEFINED_USERS, QUESTIONTITLES_VISIBLE, and STATUS_OFFLINE.
Referenced by _getGlobalSurveyData(), and _isComplete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::importObject | ( | $file_info, | |
| $survey_questionpool_id | |||
| ) |
Imports a survey from XML into the ILIAS database.
Imports a survey from XML into the ILIAS database
Definition at line 4310 of file class.ilObjSurvey.php.
References $_SESSION, $ilLog, $result, ilRTE\_replaceMediaObjectImageSrc(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilObjMediaObject\_saveUsage(), ilUtil\delDir(), ilObject\getId(), getImportDirectory(), getIntroduction(), getOutro(), locateImportFiles(), ilUtil\moveUploadedFile(), saveToDb(), setIntroduction(), setOutro(), and ilUtil\unzip().
Here is the call graph for this function:| ilObjSurvey::insertQuestion | ( | $question_id | ) |
Inserts a question in the survey and saves the relation to the database.
Inserts a question in the survey and saves the relation to the database
public
Definition at line 649 of file class.ilObjSurvey.php.
References ilObject\$ilias, $result, SurveyQuestion\_isComplete(), duplicateQuestionForSurvey(), and loadQuestionsFromDb().
Here is the call graph for this function:| ilObjSurvey::insertQuestionblock | ( | $questionblock_id | ) |
Inserts a questionblock in the survey and saves the relation to the database.
Inserts a questionblock in the survey and saves the relation to the database
public
Definition at line 692 of file class.ilObjSurvey.php.
References $questions, $result, ilObject\$title, createQuestionblock(), and duplicateQuestionForSurvey().
Here is the call graph for this function:| ilObjSurvey::inviteGroup | ( | $group_id | ) |
Invites a group to a survey.
Invites a group to a survey
| integer | $group_id | The database id of the invited group public |
Definition at line 3078 of file class.ilObjSurvey.php.
References ilObjUser\_lookupLogin(), ilObject\getId(), getInvitation(), ilObject\getRefId(), INVITATION_ON, and inviteUser().
Here is the call graph for this function:| ilObjSurvey::inviteRole | ( | $role_id | ) |
Invites a role to a survey.
Invites a role to a survey
| integer | $role_id | The database id of the invited role public |
Definition at line 3112 of file class.ilObjSurvey.php.
References ilObjUser\_lookupLogin(), ilObject\getId(), getInvitation(), ilObject\getRefId(), INVITATION_ON, and inviteUser().
Here is the call graph for this function:| ilObjSurvey::inviteUser | ( | $user_id | ) |
Invites a user to a survey.
Invites a user to a survey
| integer | $user_id | The database id of the invited user public |
Definition at line 3042 of file class.ilObjSurvey.php.
References $result, ilObjUser\_lookupLogin(), getInvitation(), ilObject\getRefId(), getSurveyId(), and INVITATION_ON.
Referenced by inviteGroup(), and inviteRole().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::isAccessibleWithoutCode | ( | ) |
Checks if the survey is accessable without a survey code.
Definition at line 994 of file class.ilObjSurvey.php.
References ANONYMIZE_FREEACCESS, and getAnonymize().
Referenced by getUserSurveyCode(), isAllowedToTakeMultipleSurveys(), and isSurveyStarted().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::isAllowedToTakeMultipleSurveys | ( | $userid = "" | ) |
Checks if a user is allowed to take multiple survey.
Checks if a user is allowed to take multiple survey
| int | $userid | user id of the user |
Definition at line 3362 of file class.ilObjSurvey.php.
References $ilSetting, $result, getAnonymize(), and isAccessibleWithoutCode().
Referenced by getUserSurveyCode(), and isSurveyStarted().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::isAnonymizedParticipant | ( | $key | ) |
Definition at line 4826 of file class.ilObjSurvey.php.
References $result, and getSurveyId().
Here is the call graph for this function:| ilObjSurvey::isAnonymousKey | ( | $key | ) |
Definition at line 4786 of file class.ilObjSurvey.php.
References $result, and getSurveyId().
Referenced by checkSurveyCode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::isComplete | ( | ) |
Returns true, if a survey is complete for use.
Returns true, if a survey is complete for use
Definition at line 538 of file class.ilObjSurvey.php.
References getAuthor(), and ilObject\getTitle().
Referenced by saveCompletionStatus(), and saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::isHTML | ( | $a_text | ) |
Checks if a given string contains HTML or not.
| string | $a_text | Text which should be checked |
Definition at line 5207 of file class.ilObjSurvey.php.
Referenced by addMaterialTag().
Here is the caller graph for this function:| ilObjSurvey::isOffline | ( | ) |
Gets the survey status.
Gets the survey status
Definition at line 1540 of file class.ilObjSurvey.php.
References STATUS_OFFLINE.
| ilObjSurvey::isOnline | ( | ) |
Gets the survey status.
Gets the survey status
Definition at line 1519 of file class.ilObjSurvey.php.
References STATUS_ONLINE.
| ilObjSurvey::isPluginActive | ( | $a_pname | ) |
Checks wheather or not a question plugin with a given name is active.
| string | $a_pname | The plugin name public |
Definition at line 5360 of file class.ilObjSurvey.php.
References IL_COMP_MODULE.
Referenced by getQuestionsTable(), and getSurveyQuestions().
Here is the caller graph for this function:| ilObjSurvey::isSurveyCodeUsed | ( | $code | ) |
Definition at line 4993 of file class.ilObjSurvey.php.
References $result.
Referenced by createNewAccessCode(), getSurveyCodesForExport(), and getSurveyCodesTableData().
Here is the caller graph for this function:| ilObjSurvey::isSurveyStarted | ( | $user_id, | |
| $anonymize_id | |||
| ) |
Checks if a user already started a survey.
Checks if a user already started a survey
| integer | $user_id | The database id of the user |
Definition at line 3395 of file class.ilObjSurvey.php.
References $_SESSION, $result, getAnonymize(), isAccessibleWithoutCode(), and isAllowedToTakeMultipleSurveys().
Referenced by canStartSurvey(), and checkSurveyCode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::loadFromDb | ( | ) |
Loads a survey object from a database.
Loads a survey object from a database
public
Definition at line 1013 of file class.ilObjSurvey.php.
References $data, $result, ilRTE\_replaceMediaObjectImageSrc(), ANONYMIZE_FREEACCESS, ANONYMIZE_OFF, ANONYMIZE_ON, getAuthor(), loadQuestionsFromDb(), saveAuthorToMetadata(), setAnonymize(), and setOutro().
Referenced by cloneObject(), and read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::loadQuestionsFromDb | ( | ) |
Loads the survey questions from the database.
Loads the survey questions from the database
public
Definition at line 1085 of file class.ilObjSurvey.php.
References $data, and $result.
Referenced by insertQuestion(), and loadFromDb().
Here is the caller graph for this function:| ilObjSurvey::loadWorkingData | ( | $question_id, | |
| $active_id | |||
| ) |
Gets the working data of question from the database.
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 3216 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::locateImportFiles | ( | $a_dir | ) |
Locates the import directory and the xml file in a directory with an unzipped import file.
Locates the import directory and the xml file in a directory with an unzipped import file
Definition at line 4256 of file class.ilObjSurvey.php.
Referenced by importObject().
Here is the caller graph for this function:| ilObjSurvey::modifyQuestionblock | ( | $questionblock_id, | |
| $title, | |||
| $show_questiontext | |||
| ) |
Modifies a question block.
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 2426 of file class.ilObjSurvey.php.
References $result, and ilObject\$title.
| ilObjSurvey::moveDownQuestion | ( | $question_id | ) |
Moves a question down in the list of survey questions.
Moves a question down in the list of survey questions
| integer | $question_id | The question id of the question which has to be moved down public |
Definition at line 1966 of file class.ilObjSurvey.php.
References $questions, getSurveyPages(), getSurveyQuestions(), and moveQuestions().
Here is the call graph for this function:| ilObjSurvey::moveDownQuestionblock | ( | $questionblock_id | ) |
Moves a questionblock down in the list of survey questions.
Moves a questionblock down in the list of survey questions
| integer | $questionblock_id | The questionblock id of the questionblock which has to be moved down public |
Definition at line 2033 of file class.ilObjSurvey.php.
References getSurveyPages(), and moveQuestions().
Here is the call graph for this function:| ilObjSurvey::moveQuestions | ( | $move_questions, | |
| $target_index, | |||
| $insert_mode | |||
| ) |
Move questions and/or questionblocks to another position.
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 2065 of file class.ilObjSurvey.php.
References deleteConstraint(), getConstraints(), and saveQuestionsToDb().
Referenced by createQuestionblock(), moveDownQuestion(), moveDownQuestionblock(), moveUpQuestion(), and moveUpQuestionblock().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::moveUpQuestion | ( | $question_id | ) |
Moves a question up in the list of survey questions.
Moves a question up in the list of survey questions
| integer | $question_id | The question id of the question which has to be moved up public |
Definition at line 1929 of file class.ilObjSurvey.php.
References $questions, getSurveyPages(), getSurveyQuestions(), and moveQuestions().
Here is the call graph for this function:| ilObjSurvey::moveUpQuestionblock | ( | $questionblock_id | ) |
Moves a questionblock up in the list of survey questions.
Moves a questionblock up in the list of survey questions
| integer | $questionblock_id | The questionblock id of the questionblock which has to be moved up public |
Definition at line 2003 of file class.ilObjSurvey.php.
References getSurveyPages(), and moveQuestions().
Here is the call graph for this function:| ilObjSurvey::notify | ( | $a_event, | |
| $a_ref_id, | |||
| $a_parent_non_rbac_id, | |||
| $a_node_id, | |||
$a_params = 0 |
|||
| ) |
notifys an object about an event occured Based on the event happend, each object may decide how it reacts.
If you are not required to handle any events related to your module, just delete this method. (For an example how this method is used, look at ilObjGroup)
public
| string | event |
| integer | reference id of object where the event occured |
| array | passes optional parameters if required |
Reimplemented from ilObject.
Definition at line 477 of file class.ilObjSurvey.php.
References $_GET, and ilObject\getType().
Here is the call graph for this function:| 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 5194 of file class.ilObjSurvey.php.
| & ilObjSurvey::processCSVRow | ( | $row, | |
$quoteAll = FALSE, |
|||
$separator = ";" |
|||
| ) |
Convertes an array for CSV usage.
Processes an array as a CSV row and converts the array values to correct CSV values. The "converted" array is returned
| array | $row | The array containing the values for a CSV row |
| string | $quoteAll | Indicates to quote every value (=TRUE) or only values containing quotes and separators (=FALSE, default) |
| string | $separator | The value separator in the CSV row (used for quoting) (; = default) |
Definition at line 5127 of file class.ilObjSurvey.php.
References $separator.
| ilObjSurvey::processPrintoutput2FO | ( | $print_output | ) |
Convert a print output to XSL-FO.
Convert a print output to XSL-FO
| string | $print_output | The print output |
Definition at line 5292 of file class.ilObjSurvey.php.
References $ilLog, xslt_create(), xslt_error(), xslt_free(), and xslt_process().
Here is the call graph for this function:| ilObjSurvey::read | ( | $a_force_db = false | ) |
read object data from db into object
| boolean | public |
Reimplemented from ilObject.
Definition at line 266 of file class.ilObjSurvey.php.
References loadFromDb().
Here is the call graph for this function:| ilObjSurvey::removeConstraintsConcerningQuestion | ( | $question_id | ) |
Remove constraints concerning a question with a given 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 2134 of file class.ilObjSurvey.php.
References $result, and getSurveyId().
Referenced by removeQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::removeQuestion | ( | $question_id | ) |
Remove a question from the survey.
Remove a question from the survey
| integer | $question_id | The database id of the question public |
Definition at line 2118 of file class.ilObjSurvey.php.
References _instanciateQuestion(), and removeConstraintsConcerningQuestion().
Referenced by delete(), and removeQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::removeQuestions | ( | $remove_questions, | |
| $remove_questionblocks | |||
| ) |
Remove questions from the survey.
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 2173 of file class.ilObjSurvey.php.
References $data, $questions, $result, getSurveyId(), getSurveyQuestions(), removeQuestion(), and saveQuestionsToDb().
Here is the call graph for this function:| ilObjSurvey::removeSelectedSurveyResults | ( | $finished_ids | ) |
Deletes the user data of a given array of survey participants.
Deletes the user data of a given array of survey participants
public
Definition at line 420 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::saveAuthorToMetadata | ( | $a_author = "" | ) |
Saves an authors name into the lifecycle metadata if no lifecycle metadata exists.
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 1194 of file class.ilObjSurvey.php.
References ilObject\getId(), and ilObject\getType().
Referenced by createMetaData(), and loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::saveCompletionStatus | ( | ) |
Saves the completion status of the survey.
Saves the completion status of the survey
public
Definition at line 604 of file class.ilObjSurvey.php.
References $result, and isComplete().
Here is the call graph for this function:| ilObjSurvey::saveHeading | ( | $heading = "", |
|
| $insertbefore | |||
| ) |
Definition at line 4748 of file class.ilObjSurvey.php.
References getSurveyId().
Referenced by cloneTextblocks().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::saveQuestionsToDb | ( | ) |
Saves the survey questions to the database.
Saves the survey questions to the database
public
Definition at line 854 of file class.ilObjSurvey.php.
References $result.
Referenced by moveQuestions(), removeQuestions(), and saveToDb().
Here is the caller graph for this function:| ilObjSurvey::saveToDb | ( | ) |
Saves a survey object to a database.
Saves a survey object to a database
public
Definition at line 752 of file class.ilObjSurvey.php.
References ilObject\$ilias, $result, ilRTE\_replaceMediaObjectImageSrc(), cleanupMediaobjectUsage(), getAnonymize(), getEndDate(), getOutro(), getShowQuestionTitles(), getStartDate(), isComplete(), and saveQuestionsToDb().
Referenced by createReference(), and importObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::saveUserAccessCode | ( | $user_id, | |
| $access_code | |||
| ) |
Saves a survey access code for a registered user to the database.
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 5079 of file class.ilObjSurvey.php.
References $result, and getSurveyId().
Referenced by fillSurveyForUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::setAnonymize | ( | $a_anonymize | ) |
set anonymize status
Definition at line 974 of file class.ilObjSurvey.php.
Referenced by loadFromDb().
Here is the caller graph for this function:| ilObjSurvey::setAuthor | ( | $author = "" | ) |
Sets the authors name.
Sets the authors name of the ilObjSurvey object
| string | $author | A string containing the name of the test author public |
Definition at line 1178 of file class.ilObjSurvey.php.
References $author.
| ilObjSurvey::setEndDate | ( | $end_date = "" | ) |
Sets the end date of the survey.
Sets the end date of the survey
| string | $end_date | Survey end date (YYYY-MM-DD) public |
Definition at line 1760 of file class.ilObjSurvey.php.
References $end_date.
| ilObjSurvey::setEndDateEnabled | ( | $enabled = false | ) |
Sets the enabled state of the end date.
Sets the enabled state of the end date
| boolean | $enabled | True to enable the end date, false to disable the end date public |
Definition at line 1143 of file class.ilObjSurvey.php.
| ilObjSurvey::setEvaluationAccess | ( | $evaluation_access = EVALUATION_ACCESS_OFF | ) |
Sets the learners evaluation access.
Sets the learners evaluation access
| integer | $evaluation_access | The evaluation access public |
Definition at line 1851 of file class.ilObjSurvey.php.
References $evaluation_access.
| ilObjSurvey::setIntroduction | ( | $introduction = "" | ) |
Sets the introduction text.
Sets the introduction text
| string | $introduction | A string containing the introduction public |
Definition at line 1439 of file class.ilObjSurvey.php.
References $introduction.
Referenced by importObject().
Here is the caller graph for this function:| ilObjSurvey::setInvitation | ( | $invitation = 0 | ) |
Sets the invitation status.
Sets the invitation status
| integer | $invitation | The invitation status public |
Definition at line 1301 of file class.ilObjSurvey.php.
References $invitation, $result, $user, ilObjUser\_lookupLogin(), ilObject\getId(), getInvitationMode(), ilObject\getRefId(), INVITATION_OFF, INVITATION_ON, and MODE_UNLIMITED.
Referenced by setInvitationAndMode(), and setInvitationMode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurvey::setInvitationAndMode | ( | $invitation = 0, |
|
$invitation_mode = 0 |
|||
| ) |
Sets the invitation status and mode (a more performant solution if you change both)
Sets the invitation status and mode (a more performant solution if you change both)
| integer | $invitation | The invitation status |
| integer | $invitation_mode | The invitation mode public |
Definition at line 1411 of file class.ilObjSurvey.php.
References $invitation, $invitation_mode, $result, MODE_UNLIMITED, and setInvitation().
Here is the call graph for this function:| ilObjSurvey::setInvitationMode | ( | $invitation_mode = 0 | ) |
Sets the invitation mode.
Sets the invitation mode
| integer | $invitation_mode | The invitation mode public |
Definition at line 1382 of file class.ilObjSurvey.php.
References $invitation_mode, $result, getInvitation(), MODE_UNLIMITED, and setInvitation().
Here is the call graph for this function:| ilObjSurvey::setObligatoryStates | ( | $obligatory_questions | ) |
Sets the obligatory states for questions in a survey from the questions form.
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 2594 of file class.ilObjSurvey.php.
References $result.
| ilObjSurvey::setOutro | ( | $outro = "" | ) |
Sets the outro text.
Sets the outro text
| string | $outro | A string containing the outro public |
Definition at line 1453 of file class.ilObjSurvey.php.
References $outro.
Referenced by importObject(), and loadFromDb().
Here is the caller graph for this function:| ilObjSurvey::setStartDate | ( | $start_date = "" | ) |
Sets the start date of the survey.
Sets the start date of the survey
| string | $start_data | Survey start date (YYYY-MM-DD) public |
Definition at line 1669 of file class.ilObjSurvey.php.
References $start_date.
| ilObjSurvey::setStartDateEnabled | ( | $enabled = false | ) |
Sets the enabled state of the start date.
Sets the enabled state of the start date
| boolean | $enabled | True to enable the start date, false to disable the start date public |
Definition at line 1108 of file class.ilObjSurvey.php.
| ilObjSurvey::setStatus | ( | $status = STATUS_OFFLINE | ) |
Sets the survey status.
Sets the survey status
| integer | $status | Survey status |
Definition at line 1562 of file class.ilObjSurvey.php.
References $result, $status, STATUS_OFFLINE, and STATUS_ONLINE.
| ilObjSurvey::showQuestionTitles | ( | ) |
Sets the question titles visible during the query.
Sets the question titles visible during the query
public
Definition at line 1274 of file class.ilObjSurvey.php.
References QUESTIONTITLES_VISIBLE.
| ilObjSurvey::startSurvey | ( | $user_id, | |
| $anonymous_id | |||
| ) |
Starts the survey creating an entry in the database.
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 3283 of file class.ilObjSurvey.php.
References $result, and getAnonymize().
Here is the call graph for this function:| ilObjSurvey::toXML | ( | ) |
Returns a QTI xml representation of the survey.
Returns a QTI xml representation of the survey
Definition at line 4058 of file class.ilObjSurvey.php.
References _instanciateQuestion(), addMaterialTag(), getAnonymize(), getAuthor(), ilObject\getDescription(), getEndDateEnabled(), getEndDay(), getEndMonth(), getEndYear(), getEvaluationAccess(), ilObject\getId(), getIntroduction(), getObligatoryStates(), getOutro(), getShowQuestionTitles(), getStartDateEnabled(), getStartDay(), getStartMonth(), getStartYear(), getStatus(), getSurveyId(), getSurveyPages(), ilObject\getTitle(), ilObject\getType(), and ilXmlWriter\xmlHeader().
Here is the call graph for this function:| ilObjSurvey::unfoldQuestionblocks | ( | $questionblocks | ) |
Unfolds question blocks of a question pool.
Unfolds question blocks of a question pool
| array | $questionblocks | An array of question block id's public |
Definition at line 2209 of file class.ilObjSurvey.php.
References $result, and getSurveyId().
Here is the call graph for this function:| ilObjSurvey::update | ( | ) |
update object data
public
Reimplemented from ilObject.
Definition at line 240 of file class.ilObjSurvey.php.
References ilObject\updateMetaData().
Here is the call graph for this function:| ilObjSurvey::updateConstraint | ( | $to_question_id, | |
| $if_question_id, | |||
| $relation, | |||
| $value | |||
| ) |
Updates a precondition.
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 2957 of file class.ilObjSurvey.php.
References $result, and getSurveyId().
Here is the call graph for this function:| ilObjSurvey::$anonymize |
Definition at line 164 of file class.ilObjSurvey.php.
Referenced by getAnonymize().
| ilObjSurvey::$author |
Definition at line 57 of file class.ilObjSurvey.php.
Referenced by getAuthor(), and setAuthor().
| ilObjSurvey::$display_question_titles |
Definition at line 172 of file class.ilObjSurvey.php.
Referenced by getShowQuestionTitles().
| ilObjSurvey::$end_date |
Definition at line 120 of file class.ilObjSurvey.php.
Referenced by getEndDate(), and setEndDate().
| ilObjSurvey::$enddate_enabled |
Definition at line 129 of file class.ilObjSurvey.php.
Referenced by getEndDateEnabled().
| ilObjSurvey::$evaluation_access |
Definition at line 93 of file class.ilObjSurvey.php.
Referenced by getEvaluationAccess(), and setEvaluationAccess().
| ilObjSurvey::$introduction |
Definition at line 66 of file class.ilObjSurvey.php.
Referenced by getIntroduction(), and setIntroduction().
| ilObjSurvey::$invitation |
Definition at line 147 of file class.ilObjSurvey.php.
Referenced by getInvitation(), setInvitation(), and setInvitationAndMode().
| ilObjSurvey::$invitation_mode |
Definition at line 156 of file class.ilObjSurvey.php.
Referenced by getInvitationMode(), setInvitationAndMode(), and setInvitationMode().
| ilObjSurvey::$outro |
Definition at line 75 of file class.ilObjSurvey.php.
Referenced by getOutro(), and setOutro().
| ilObjSurvey::$questions |
Definition at line 138 of file class.ilObjSurvey.php.
Referenced by createQuestionblock(), getEvaluationByUser(), getUserSpecificResults(), insertQuestionblock(), moveDownQuestion(), moveUpQuestion(), and removeQuestions().
| ilObjSurvey::$start_date |
Definition at line 102 of file class.ilObjSurvey.php.
Referenced by getStartDate(), and setStartDate().
| ilObjSurvey::$startdate_enabled |
Definition at line 111 of file class.ilObjSurvey.php.
Referenced by getStartDateEnabled().
| ilObjSurvey::$status |
Definition at line 84 of file class.ilObjSurvey.php.
Referenced by getStatus(), and setStatus().
| ilObjSurvey::$survey_id |
Definition at line 47 of file class.ilObjSurvey.php.
Referenced by _getConstraints(), _getNrOfParticipants(), _hasDatasets(), getQuestionblockQuestions(), and getSurveyId().
| ilObjSurvey::$surveyCodeSecurity |
Definition at line 179 of file class.ilObjSurvey.php.