|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Inheritance diagram for ilObjSurveyQuestionPool:
Collaboration diagram for ilObjSurveyQuestionPool:Public Member Functions | |
| ilObjSurveyQuestionPool ($a_id=0, $a_call_by_reference=true) | |
| Constructor @access public. More... | |
| create ($a_upload=false) | |
| create question pool object More... | |
| update () | |
| update object data More... | |
| read ($a_force_db=false) | |
| read object data from db into object More... | |
| cloneObject ($a_target_id, $a_copy_id=0) | |
| Creates a 1:1 copy of the object and places the copy in a given repository. More... | |
| & | createQuestion ($question_type, $question_id=-1) |
| copyQuestion ($question_id, $questionpool_to) | |
| Copies a question into another question pool. More... | |
| loadFromDb () | |
| Loads a ilObjQuestionpool object from a database. More... | |
| saveToDb () | |
| Saves a ilObjSurveyQuestionPool object to a database. More... | |
| delete () | |
| delete object and all related data More... | |
| deleteAllData () | |
| 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. More... | |
| getTitle () | |
| get title of survey question pool object More... | |
| setTitle ($a_title) | |
| set title of survey question pool object More... | |
| removeQuestion ($question_id) | |
| Removes a question from the question pool. More... | |
| getQuestiontype ($question_id) | |
| Returns the question type of a question with a given id. More... | |
| isInUse ($question_id) | |
| Checks if a question is in use by a survey. More... | |
| paste ($question_id) | |
| Pastes a question in the question pool. More... | |
| & | getQuestionsInfo ($question_array) |
| Retrieves the datase entries for questions from a given array. More... | |
| duplicateQuestion ($question_id, $obj_id="") | |
| Duplicates a question for a questionpool. More... | |
| getQuestionsData ($arrFilter) | |
| Calculates the data for the output of the questionpool. More... | |
| createExportDirectory () | |
| creates data directory for export files (data_dir/spl_data/spl_<id>/export, depending on data directory that is set in ILIAS setup/ini) More... | |
| getExportDirectory () | |
| get export directory of survey More... | |
| getExportFiles ($dir) | |
| get export files More... | |
| createImportDirectory () | |
| creates data directory for import files (data_dir/spl_data/spl_<id>/import, depending on data directory that is set in ILIAS setup/ini) More... | |
| getImportDirectory () | |
| get import directory of survey More... | |
| toXML ($questions) | |
| export questions to xml More... | |
| & | getQuestions () |
| importObject ($source, $spl_exists=FALSE) | |
| Imports survey questions into ILIAS. More... | |
| setOnline ($a_online_status) | |
| Sets the questionpool online status. More... | |
| getOnline () | |
| _lookupOnline ($a_obj_id) | |
| _isWriteable ($object_id, $user_id) | |
| Returns true, if the question pool is writeable by a given user. More... | |
| & | _getQuestiontypes () |
| Creates a list of all available question types. More... | |
| _getAvailableQuestionpools ($use_object_id=FALSE, $could_be_offline=FALSE, $showPath=FALSE, $permission="read") | |
| Returns the available question pools for the active user. More... | |
| isPluginActive ($a_pname) | |
| Checks whether or not a question plugin with a given name is active. More... | |
| getQuestionInfos ($question_ids) | |
| Returns title, description and type for an array of question id's. More... | |
| purgeQuestions () | |
| copyToClipboard ($question_id) | |
| Copies a question to the clipboard. More... | |
| moveToClipboard ($question_id) | |
| Moves a question to the clipboard. More... | |
| pasteFromClipboard () | |
| Copies/Moves a question from the clipboard. More... | |
| setObligatoryStates ($obligatory_questions) | |
| Sets the obligatory states for questions in a survey from the questions form. More... | |
Public Member Functions inherited from ilObject | |
| ilObject ($a_id=0, $a_reference=true) | |
| Constructor @access public. More... | |
| withReferences () | |
| determines wehter objects are referenced or not (got ref ids or not) More... | |
| read ($a_force_db=false) | |
| read object data from db into object More... | |
| getId () | |
| get object id @access public More... | |
| setId ($a_id) | |
| set object id @access public More... | |
| setRefId ($a_id) | |
| set reference id @access public More... | |
| getRefId () | |
| get reference id @access public More... | |
| getType () | |
| get object type @access public More... | |
| setType ($a_type) | |
| set object type @access public More... | |
| getPresentationTitle () | |
| get presentation title Normally same as title Overwritten for sessions More... | |
| getTitle () | |
| get object title @access public More... | |
| getUntranslatedTitle () | |
| get untranslated object title @access 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... | |
| getOwner () | |
| get object owner More... | |
| getOwnerName () | |
| _lookupOwnerName ($a_owner_id) | |
| lookup owner name for owner id More... | |
| setOwner ($a_owner) | |
| set object owner More... | |
| getCreateDate () | |
| get create date @access public More... | |
| getLastUpdateDate () | |
| get last update date @access public More... | |
| getDiskUsage () | |
| setObjDataRecord ($a_record) | |
| set object_data record (note: this method should only be called from the ilObjectFactory class) 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... | |
| _getIdForImportId ($a_import_id) | |
| get current object id for import id (static) More... | |
| _lookupOwner ($a_id) | |
| lookup object owner More... | |
| _lookupLastUpdate ($a_id, $a_as_string=false) | |
| lookup last update More... | |
| _getLastUpdateOfObjects ($a_objs) | |
| Get last update for a set of media objects. More... | |
| _setDeletedDate ($a_ref_id) | |
| only called in ilTree::saveSubTree More... | |
| _resetDeletedDate ($a_ref_id) | |
| only called in ilObjectGUI::insertSavedNodes More... | |
| _lookupDeletedDate ($a_ref_id) | |
| only called in ilObjectGUI::insertSavedNodes More... | |
| _writeTitle ($a_obj_id, $a_title) | |
| write title to db (static) More... | |
| _writeDescription ($a_obj_id, $a_desc) | |
| write description to db (static) More... | |
| _writeImportId ($a_obj_id, $a_import_id) | |
| write import id to db (static) More... | |
| _isInTrash ($a_ref_id) | |
| checks wether object is in trash More... | |
| _hasUntrashedReference ($a_obj_id) | |
| checks wether an object has at least one reference that is not in trash More... | |
| _getObjectsDataForType ($a_type, $a_omit_trash=false) | |
| get all objects of a certain type 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) @access public More... | |
| applyDidacticTemplate ($a_tpl_id) | |
| Apply template. More... | |
| 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 passed, each object may decide how it reacts. More... | |
| setRegisterMode ($a_bool) | |
| isUserRegistered ($a_user_id=0) | |
| requireRegistration () | |
| getXMLZip () | |
| getHTMLDirectory () | |
| cloneObject ($a_target_id, $a_copy_id=0, $a_omit_tree=false) | |
| Clone object permissions, put in tree ... More... | |
| 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... | |
| _lookupCreationDate ($a_id) | |
| Lookup creation date. More... | |
Static Public Member Functions | |
| static | _setOnline ($a_obj_id, $a_online_status) |
| static & | _getQuestionTypeTranslations () |
Static Public Member Functions inherited from ilObject | |
| static | _lookupObjIdByImportId ($a_import_id) |
| static | _getAllReferences ($a_id) |
| get all reference ids of object More... | |
| static | _lookupTitle ($a_id) |
| lookup object title More... | |
| static | _getIdsForTitle ($title, $type='', $partialmatch=false) |
| static | _lookupDescription ($a_id) |
| lookup object description More... | |
| static | _lookupObjId ($a_id) |
| static | setDeletedDates ($a_ref_ids) |
| Set deleted date @global type $ilDB. More... | |
| static | _lookupType ($a_id, $a_reference=false) |
| lookup object type More... | |
| static | _lookupObjectId ($a_ref_id) |
| lookup object id More... | |
| static | _exists ($a_id, $a_reference=false, $a_type=null) |
| checks if an object exists in object_data@access public 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 | hasAutoRating ($a_type, $a_ref_id) |
| Check if auto rating is active for parent group/course. More... | |
Data Fields | |
| $online | |
Data Fields inherited from ilObject | |
| const | TITLE_LENGTH = 255 |
| max length of object title More... | |
| const | DESC_LENGTH = 128 |
| $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 More... | |
Definition at line 36 of file class.ilObjSurveyQuestionPool.php.
| ilObjSurveyQuestionPool::_getAvailableQuestionpools | ( | $use_object_id = FALSE, |
|
$could_be_offline = FALSE, |
|||
$showPath = FALSE, |
|||
$permission = "read" |
|||
| ) |
Returns the available question pools for the active user.
Definition at line 1043 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $ilUser, ilObject\$ref_id, $result, $row, ilUtil\_getObjectsByOperations(), ilObject\_lookupObjectId(), and ilObject\_prepareCloneSelection().
Referenced by ilSurveyQuestionbrowserTableGUI\__construct(), ilObjSurvey\getAvailableQuestionpools(), and ilObjSurvey\getQuestionpoolTitles().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilObjSurveyQuestionPool::_getQuestiontypes | ( | ) |
Creates a list of all available question types.
Definition at line 931 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, ilObject\$lng, $row, ilObject\$type, ilPlugin\getPluginObject(), and IL_COMP_MODULE.
Referenced by ilSurveyPageGUI\addQuestion(), ilSurveyPageGUI\addQuestionToolbarForm(), ilSurveyPageGUI\getPageNodes(), ilSurveyQuestionTableGUI\importData(), and ilSurveyEditorGUI\questionsObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1004 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $ilLog, ilObject\$lng, $result, $row, ilPlugin\getPluginObject(), and IL_COMP_MODULE.
Referenced by ilObjSurvey\getQuestionsTable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurveyQuestionPool::_isWriteable | ( | $object_id, | |
| $user_id | |||
| ) |
Returns true, if the question pool is writeable by a given user.
| integer | $object_id | The object id of the question pool |
| integer | $user_id | The database id of the user @access public |
Definition at line 908 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $result, ilObject\_getAllReferences(), and ilObject\_hasUntrashedReference().
Referenced by SurveyQuestion\_isWriteable().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurveyQuestionPool::_lookupOnline | ( | $a_obj_id | ) |
Definition at line 885 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $result, and $row.
Referenced by ilObjSurveyQuestionPoolListGUI\getProperties().
Here is the caller graph for this function:
|
static |
Definition at line 840 of file class.ilObjSurveyQuestionPool.php.
References $ilDB.
| ilObjSurveyQuestionPool::cloneObject | ( | $a_target_id, | |
$a_copy_id = 0 |
|||
| ) |
Creates a 1:1 copy of the object and places the copy in a given repository.
@access public
Definition at line 104 of file class.ilObjSurveyQuestionPool.php.
References $ilLog, ilCopyWizardOptions\_getInstance(), ilObject\getId(), getOnline(), getQuestions(), and ilObject\getType().
Here is the call graph for this function:| ilObjSurveyQuestionPool::copyQuestion | ( | $question_id, | |
| $questionpool_to | |||
| ) |
Copies a question into another question pool.
| integer | $question_id | Database id of the question |
| integer | $questionpool_to | Database id of the target questionpool @access public |
Definition at line 161 of file class.ilObjSurveyQuestionPool.php.
References createQuestion(), duplicateQuestion(), and ilObject\getId().
Referenced by pasteFromClipboard().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurveyQuestionPool::copyToClipboard | ( | $question_id | ) |
Copies a question to the clipboard.
| integer | $question_id | Object id of the question |
Definition at line 1147 of file class.ilObjSurveyQuestionPool.php.
References $_SESSION.
| ilObjSurveyQuestionPool::create | ( | $a_upload = false | ) |
create question pool object
Definition at line 60 of file class.ilObjSurveyQuestionPool.php.
References ilObject\createMetaData().
Here is the call graph for this function:| ilObjSurveyQuestionPool::createExportDirectory | ( | ) |
creates data directory for export files (data_dir/spl_data/spl_<id>/export, depending on data directory that is set in ILIAS setup/ini)
Definition at line 580 of file class.ilObjSurveyQuestionPool.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
Here is the call graph for this function:| ilObjSurveyQuestionPool::createImportDirectory | ( | ) |
creates data directory for import files (data_dir/spl_data/spl_<id>/import, depending on data directory that is set in ILIAS setup/ini)
Definition at line 660 of file class.ilObjSurveyQuestionPool.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
Here is the call graph for this function:| & ilObjSurveyQuestionPool::createQuestion | ( | $question_type, | |
$question_id = -1 |
|||
| ) |
Definition at line 135 of file class.ilObjSurveyQuestionPool.php.
References getQuestiontype().
Referenced by copyQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurveyQuestionPool::delete | ( | ) |
delete object and all related data
@access public
Reimplemented from ilObject.
Definition at line 242 of file class.ilObjSurveyQuestionPool.php.
References deleteAllData(), and ilObject\deleteMetaData().
Here is the call graph for this function:| ilObjSurveyQuestionPool::deleteAllData | ( | ) |
Definition at line 260 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $result, $row, ilUtil\delDir(), ilUtil\getDataDir(), ilObject\getId(), and removeQuestion().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurveyQuestionPool::duplicateQuestion | ( | $question_id, | |
$obj_id = "" |
|||
| ) |
Duplicates a question for a questionpool.
| integer | $question_id | The database id of the question @access public |
Definition at line 490 of file class.ilObjSurveyQuestionPool.php.
References $ilUser, and SurveyQuestion\_instanciateQuestion().
Referenced by copyQuestion(), and paste().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurveyQuestionPool::getExportDirectory | ( | ) |
get export directory of survey
Definition at line 610 of file class.ilObjSurveyQuestionPool.php.
References ilUtil\getDataDir().
Here is the call graph for this function:| ilObjSurveyQuestionPool::getExportFiles | ( | $dir | ) |
get export files
Definition at line 620 of file class.ilObjSurveyQuestionPool.php.
References $file.
| ilObjSurveyQuestionPool::getImportDirectory | ( | ) |
get import directory of survey
Definition at line 692 of file class.ilObjSurveyQuestionPool.php.
References ilUtil\getDataDir().
Here is the call graph for this function:| ilObjSurveyQuestionPool::getOnline | ( | ) |
Definition at line 879 of file class.ilObjSurveyQuestionPool.php.
References $online.
Referenced by cloneObject(), saveToDb(), and toXML().
Here is the caller graph for this function:| ilObjSurveyQuestionPool::getQuestionInfos | ( | $question_ids | ) |
Returns title, description and type for an array of question id's.
| array | $question_ids | An array of question id's |
Definition at line 1100 of file class.ilObjSurveyQuestionPool.php.
| & ilObjSurveyQuestionPool::getQuestions | ( | ) |
Definition at line 771 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $result, $row, and ilObject\getId().
Referenced by cloneObject(), setObligatoryStates(), and toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurveyQuestionPool::getQuestionsData | ( | $arrFilter | ) |
Calculates the data for the output of the questionpool.
@access public
Definition at line 514 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $ilUser, $row, ilObject\getId(), and isPluginActive().
Here is the call graph for this function:| & ilObjSurveyQuestionPool::getQuestionsInfo | ( | $question_array | ) |
Retrieves the datase entries for questions from a given array.
| array | $question_array | An array containing the id's of the questions |
Definition at line 462 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $result, $row, and isPluginActive().
Here is the call graph for this function:| ilObjSurveyQuestionPool::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 390 of file class.ilObjSurveyQuestionPool.php.
References $data, $ilDB, and $result.
Referenced by createQuestion(), and toXML().
Here is the caller graph for this function:| ilObjSurveyQuestionPool::getTitle | ( | ) |
get title of survey question pool object
Reimplemented from ilObject.
Definition at line 355 of file class.ilObjSurveyQuestionPool.php.
Referenced by toXML().
Here is the caller graph for this function:| ilObjSurveyQuestionPool::ilObjSurveyQuestionPool | ( | $a_id = 0, |
|
$a_call_by_reference = true |
|||
| ) |
Constructor @access public.
| integer | reference_id or object_id |
| boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 51 of file class.ilObjSurveyQuestionPool.php.
References ilObject\ilObject().
Here is the call graph for this function:| ilObjSurveyQuestionPool::importObject | ( | $source, | |
$spl_exists = FALSE |
|||
| ) |
Imports survey questions into ILIAS.
| string | $source | The filename of an XML import file @access public |
Definition at line 795 of file class.ilObjSurveyQuestionPool.php.
References ilUtil\delDir(), ilObject\getId(), and ilUtil\unzip().
Here is the call graph for this function:| ilObjSurveyQuestionPool::isInUse | ( | $question_id | ) |
Checks if a question is in use by a survey.
| integer | $question_id | The database id of the question |
Definition at line 416 of file class.ilObjSurveyQuestionPool.php.
| ilObjSurveyQuestionPool::isPluginActive | ( | $a_pname | ) |
Checks whether or not a question plugin with a given name is active.
| string | $a_pname | The plugin name @access public |
Definition at line 1081 of file class.ilObjSurveyQuestionPool.php.
References IL_COMP_MODULE.
Referenced by getQuestionsData(), and getQuestionsInfo().
Here is the caller graph for this function:| ilObjSurveyQuestionPool::loadFromDb | ( | ) |
Loads a ilObjQuestionpool object from a database.
@access public
Definition at line 191 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $result, $row, ilObject\getId(), and setOnline().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurveyQuestionPool::moveToClipboard | ( | $question_id | ) |
Moves a question to the clipboard.
| integer | $question_id | Object id of the question |
Definition at line 1161 of file class.ilObjSurveyQuestionPool.php.
References $_SESSION.
| ilObjSurveyQuestionPool::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)
@access public
| string | event |
| integer | reference id of object where the event occured |
| array | passes optional parameters if required |
Reimplemented from ilObject.
Definition at line 297 of file class.ilObjSurveyQuestionPool.php.
References $_GET, and ilObject\getType().
Here is the call graph for this function:| ilObjSurveyQuestionPool::paste | ( | $question_id | ) |
Pastes a question in the question pool.
| integer | $question_id | The database id of the question @access public |
Definition at line 450 of file class.ilObjSurveyQuestionPool.php.
References duplicateQuestion(), and ilObject\getId().
Here is the call graph for this function:| ilObjSurveyQuestionPool::pasteFromClipboard | ( | ) |
Copies/Moves a question from the clipboard.
Definition at line 1173 of file class.ilObjSurveyQuestionPool.php.
References $_SESSION, $ilDB, $result, $row, copyQuestion(), ilObject\getId(), ilUtil\makeDirParents(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilObjSurveyQuestionPool::purgeQuestions | ( | ) |
Definition at line 1128 of file class.ilObjSurveyQuestionPool.php.
References $data, $ilDB, $ilUser, $result, and removeQuestion().
Here is the call graph for this function:| ilObjSurveyQuestionPool::read | ( | $a_force_db = false | ) |
read object data from db into object
| boolean | @access public |
Reimplemented from ilObject.
Definition at line 93 of file class.ilObjSurveyQuestionPool.php.
References loadFromDb().
Here is the call graph for this function:| ilObjSurveyQuestionPool::removeQuestion | ( | $question_id | ) |
Removes a question from the question pool.
| integer | $question_id | The database id of the question @access private |
Definition at line 375 of file class.ilObjSurveyQuestionPool.php.
References SurveyQuestion\_instanciateQuestion().
Referenced by deleteAllData(), and purgeQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjSurveyQuestionPool::saveToDb | ( | ) |
Saves a ilObjSurveyQuestionPool object to a database.
@access public
Definition at line 211 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, $query, $result, ilObject\getId(), and getOnline().
Here is the call graph for this function:| ilObjSurveyQuestionPool::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 @access public |
Definition at line 1235 of file class.ilObjSurveyQuestionPool.php.
References $ilDB, and getQuestions().
Here is the call graph for this function:| ilObjSurveyQuestionPool::setOnline | ( | $a_online_status | ) |
Sets the questionpool online status.
| integer | $a_online_status | Online status of the questionpool |
Definition at line 865 of file class.ilObjSurveyQuestionPool.php.
Referenced by loadFromDb().
Here is the caller graph for this function:| ilObjSurveyQuestionPool::setTitle | ( | $a_title | ) |
set title of survey question pool object
Reimplemented from ilObject.
Definition at line 364 of file class.ilObjSurveyQuestionPool.php.
| ilObjSurveyQuestionPool::toXML | ( | $questions | ) |
export questions to xml
Definition at line 710 of file class.ilObjSurveyQuestionPool.php.
References SurveyQuestion\_includeClass(), ilObject\getId(), getOnline(), getQuestions(), getQuestiontype(), getTitle(), ilObject\getType(), and ilXmlWriter\xmlHeader().
Here is the call graph for this function:| ilObjSurveyQuestionPool::update | ( | ) |
update object data
@access public
Reimplemented from ilObject.
Definition at line 75 of file class.ilObjSurveyQuestionPool.php.
References ilObject\updateMetaData().
Here is the call graph for this function:| ilObjSurveyQuestionPool::$online |
Definition at line 43 of file class.ilObjSurveyQuestionPool.php.
Referenced by getOnline().