| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
 Inheritance diagram for ilObjQuestionPool:
 Inheritance diagram for ilObjQuestionPool: Collaboration diagram for ilObjQuestionPool:
 Collaboration diagram for ilObjQuestionPool:| Public Member Functions | |
| ilObjQuestionPool ($a_id=0, $a_call_by_reference=true) | |
| Constructor  public. | |
| create ($a_upload=false) | |
| create questionpool object | |
| createReference () | |
| Creates a database reference id for the object (saves the object to the database and creates a reference id in the database) | |
| update () | |
| update object data | |
| updateMetaData () | |
| update meta data entry | |
| read ($a_force_db=false) | |
| read object data from db into object | |
| delete () | |
| delete object and all related data | |
| deleteQuestionpool () | |
| initDefaultRoles () | |
| If your module does not require any default roles, delete this method (For an example how this method is used, look at ilObjForum) | |
| 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. | |
| deleteQuestion ($question_id) | |
| Deletes a question from the question pool. | |
| addQuestionChangeListeners (assQuestion $question) | |
| loadFromDb () | |
| Loads a ilObjQuestionpool object from a database. | |
| saveToDb () | |
| Saves a ilObjQuestionpool object to a database. | |
| getQuestiontype ($question_id) | |
| Returns the question type of a question with a given id. | |
| getDescription () | |
| get description of content object | |
| setDescription ($a_description) | |
| set description of content object | |
| getTitle () | |
| get title of glossary object | |
| setTitle ($a_title) | |
| set title of glossary object | |
| isInUse ($question_id) | |
| Checks whether the question is in use or not. | |
| & | createQuestion ($question_type, $question_id=-1) | 
| duplicateQuestion ($question_id) | |
| Duplicates a question for a questionpool. | |
| copyQuestion ($question_id, $questionpool_to) | |
| Copies a question into another question pool. | |
| getPrintviewQuestions () | |
| Calculates the data for the print view of the questionpool. | |
| exportPagesXML (&$a_xml_writer, $a_inst, $a_target_dir, &$expLog, $questions) | |
| export pages of test to xml (see ilias_co.dtd) | |
| exportXMLMetaData (&$a_xml_writer) | |
| export content objects meta data to xml (see ilias_co.dtd) | |
| modifyExportIdentifier ($a_tag, $a_param, $a_value) | |
| exportXMLPageObjects (&$a_xml_writer, $a_inst, &$expLog, $questions) | |
| export page objects to xml (see ilias_co.dtd) | |
| exportXMLMediaObjects (&$a_xml_writer, $a_inst, $a_target_dir, &$expLog) | |
| export media objects to xml (see ilias_co.dtd) | |
| exportFileItems ($a_target_dir, &$expLog) | |
| export files of file itmes | |
| createExportDirectory () | |
| creates data directory for export files (data_dir/qpl_data/qpl_<id>/export, depending on data directory that is set in ILIAS setup/ini) | |
| getExportDirectory ($type="") | |
| get export directory of questionpool | |
| _setImportDirectory ($a_import_dir=null) | |
| set import directory | |
| _getImportDirectory () | |
| get import directory of lm | |
| getImportDirectory () | |
| & | getAllQuestions () | 
| Retrieve an array containing all question ids of the questionpool. | |
| & | getAllQuestionIds () | 
| getImportMapping () | |
| get array of (two) new created questions for import id | |
| toXML ($questions) | |
| Returns a QTI xml representation of a list of questions. | |
| _getQuestionCount ($questionpool_id, $complete_questions_only=FALSE) | |
| Returns the number of questions in a question pool. | |
| setOnline ($a_online_status) | |
| Sets the questionpool online status. | |
| getOnline () | |
| setShowTaxonomies ($showTaxonomies) | |
| getShowTaxonomies () | |
| setNavTaxonomyId ($navTaxonomyId) | |
| getNavTaxonomyId () | |
| isNavTaxonomyActive () | |
| _lookupOnline ($a_obj_id, $is_reference=FALSE) | |
| _hasEqualPoints ($a_obj_id, $is_reference=FALSE) | |
| Checks a question pool for questions with the same maximum points. | |
| pasteFromClipboard () | |
| Copies/Moves a question from the clipboard. | |
| copyToClipboard ($question_id) | |
| Copies a question to the clipboard. | |
| moveToClipboard ($question_id) | |
| Moves a question to the clipboard. | |
| cleanupClipboard ($deletedQuestionId) | |
| _isWriteable ($object_id, $user_id) | |
| Returns true, if the question pool is writeable by a given user. | |
| & | getQuestionDetails ($question_ids) | 
| Returns an array containing the qpl_question and qpl_qst_type fields for an array of question ids. | |
| & | getDeleteableQuestionDetails ($question_ids) | 
| Returns an array containing the qpl_question and qpl_qst_type fields of deleteable questions for an array of question ids. | |
| _getFullPathToQpl ($ref_id) | |
| Retrieves the full path to a question pool with a given reference id. | |
| & | _getAvailableQuestionpools ($use_object_id=FALSE, $equal_points=FALSE, $could_be_offline=FALSE, $showPath=FALSE, $with_questioncount=FALSE, $permission="read", $usr_id="") | 
| Returns the available question pools for the active user. | |
| & | getQplQuestions () | 
| cloneObject ($a_target_id, $a_copy_id=0) | |
| Creates a 1:1 copy of the object and places the copy in a given repository. | |
| & | getQuestionTypes ($all_tags=FALSE, $fixOrder=false) | 
| & | _getQuestionTypes ($all_tags=FALSE, $fixOrder=false) | 
| & | getQuestionList () | 
| isPluginActive ($a_pname) | |
| Checks wheather or not a question plugin with a given name is active. | |
| purgeQuestions () | |
| getTaxonomyIds () | |
| get ids of all taxonomies corresponding to current pool | |
|  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 | |
| getUntranslatedTitle () | |
| get untranslated object title  public | |
| getLongDescription () | |
| get object long description (stored in object_description) | |
| getImportId () | |
| get import id | |
| setImportId ($a_import_id) | |
| set 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 | |
| getDiskUsage () | |
| Gets the disk usage of the object in bytes. | |
| 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. | |
| createMetaData () | |
| create 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) | |
| _lookupOwner ($a_id) | |
| lookup object owner | |
| _lookupLastUpdate ($a_id, $a_as_string=false) | |
| lookup last update | |
| _getLastUpdateOfObjects ($a_objs) | |
| Get last update for a set of media objects. | |
| _setDeletedDate ($a_ref_id) | |
| only called in ilTree::saveSubTree | |
| _resetDeletedDate ($a_ref_id) | |
| only called in ilObjectGUI::insertSavedNodes | |
| _lookupDeletedDate ($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) | |
| _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 | |
| _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 | |
| createRoleFolder () | |
| creates a local role folder | |
| applyDidacticTemplate ($a_tpl_id) | |
| Apply template. | |
| 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 ... | |
| 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. | |
| _lookupCreationDate ($a_id) | |
| Lookup creation date. | |
| Static Public Member Functions | |
| static | _createImportDirectory () | 
| creates data directory for import files (data_dir/qpl_data/qpl_<id>/import, depending on data directory that is set in ILIAS setup/ini) | |
| static | getQuestionTypeByTypeId ($type_id) | 
| static | getQuestionTypeTranslations () | 
| static & | _getSelfAssessmentQuestionTypes ($all_tags=FALSE) | 
| Get all self assessment question types. | |
| static | _updateQuestionCount ($object_id) | 
| Updates the number of available questions for a question pool in the database. | |
|  Static Public Member Functions inherited from ilObject | |
| static | _lookupObjIdByImportId ($a_import_id) | 
| static | _getAllReferences ($a_id) | 
| get all reference ids of object | |
| static | _lookupTitle ($a_id) | 
| lookup object title | |
| static | _getIdsForTitle ($title, $type= '', $partialmatch=false) | 
| static | _lookupDescription ($a_id) | 
| lookup object description | |
| static | _lookupObjId ($a_id) | 
| static | setDeletedDates ($a_ref_ids) | 
| Set deleted date  type $ilDB. | |
| static | _lookupType ($a_id, $a_reference=false) | 
| lookup object type | |
| static | _lookupObjectId ($a_ref_id) | 
| lookup object id | |
| static | _exists ($a_id, $a_reference=false, $a_type=null) | 
| checks if an object exists in object_data | |
| static | _getObjectsByType ($a_obj_type="", $a_owner="") | 
| Get objects by type. | |
| static | _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true) | 
| Prepare copy wizard object selection. | |
| static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) | 
| Get icon for repository item. | |
| static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) | 
| Collect deletion dependencies. | |
| static | getDeletionDependencies ($a_obj_id) | 
| Get deletion dependencies. | |
| static | getLongDescriptions (array $a_obj_ids) | 
| Get long description data. | |
| static | getAllOwnedRepositoryObjects ($a_user_id) | 
| Get all ids of objects user owns. | |
| static | hasAutoRating ($a_type, $a_ref_id) | 
| Check if auto rating is active for parent group/course. | |
| Data Fields | |
| $online | |
|  Data Fields inherited from ilObject | |
| const | TITLE_LENGTH = 255 | 
| max length of object title | |
| 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 | |
| Private Attributes | |
| $showTaxonomies = null | |
| $navTaxonomyId = null | |
| $import_dir | |
Definition at line 16 of file class.ilObjQuestionPool.php.
| 
 | static | 
creates data directory for import files (data_dir/qpl_data/qpl_<id>/import, depending on data directory that is set in ILIAS setup/ini)
Definition at line 777 of file class.ilObjQuestionPool.php.
References ilObject\$ilias, ilUtil\getDataDir(), and ilUtil\makeDir().
Referenced by ilObjQuestionPoolGUI\uploadQplObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| & ilObjQuestionPool::_getAvailableQuestionpools | ( | $use_object_id = FALSE, | |
| $equal_points = FALSE, | |||
| $could_be_offline = FALSE, | |||
| $showPath = FALSE, | |||
| $with_questioncount = FALSE, | |||
| $permission = "read", | |||
| $usr_id = "" | |||
| ) | 
Returns the available question pools for the active user.
Definition at line 1342 of file class.ilObjQuestionPool.php.
References $ilUser, $in, ilObject\$ref_id, $result, $row, ilObject\$title, $usr_id, ilUtil\_getObjectsByOperations(), _hasEqualPoints(), ilObject\_lookupObjId(), and ilObject\_prepareCloneSelection().
Referenced by ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjTestGUI\createQuestionObject(), ilObjTest\getAvailableQuestionpools(), ilObjTest\getAvailableQuestions(), and ilObjTest\randomSelectQuestions().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::_getFullPathToQpl | ( | $ref_id | ) | 
Retrieves the full path to a question pool with a given reference id.
Definition at line 1313 of file class.ilObjQuestionPool.php.
References $path, ilObject\$ref_id, ilStr\strLen(), and ilStr\subStr().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::_getImportDirectory | ( | ) | 
get import directory of lm
Definition at line 819 of file class.ilObjQuestionPool.php.
References $_SESSION.
Referenced by assFormulaQuestionImport\fromXML(), getImportDirectory(), assQuestionImport\getQplImportArchivDirectory(), ilObjQuestionPoolGUI\importVerifiedFileObject(), and ilObjQuestionPoolGUI\uploadQplObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::_getQuestionCount | ( | $questionpool_id, | |
| $complete_questions_only = FALSE | |||
| ) | 
Returns the number of questions in a question pool.
| integer | $questonpool_id | Object id of the questionpool to examine | 
| boolean | $complete_questions_only | If set to TRUE, returns only the number of complete questions in the questionpool. Default is FALSE | 
Definition at line 934 of file class.ilObjQuestionPool.php.
Referenced by _updateQuestionCount().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| & ilObjQuestionPool::_getQuestionTypes | ( | $all_tags = FALSE, | |
| $fixOrder = false | |||
| ) | 
Definition at line 1466 of file class.ilObjQuestionPool.php.
References $ilLog, ilObject\$lng, $result, $row, ilObjAssessmentFolder\_getForbiddenQuestionTypes(), ilPlugin\getPluginObject(), IL_COMP_MODULE, ilAssQuestionTypeOrderer\ORDER_MODE_ALPHA, and ilAssQuestionTypeOrderer\ORDER_MODE_FIX.
Referenced by _getSelfAssessmentQuestionTypes(), ilObjAssessmentFolderGUI\buildSettingsForm(), getQuestionTypes(), ilTestQuestionBrowserTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), and ilObjAssessmentFolderGUI\saveSettingsObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get all self assessment question types.
Definition at line 1559 of file class.ilObjQuestionPool.php.
References $t, and _getQuestionTypes().
Referenced by ilCopySelfAssQuestionTableGUI\getQuestions(), and ilPCQuestionGUI\insert().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::_hasEqualPoints | ( | $a_obj_id, | |
| $is_reference = FALSE | |||
| ) | 
Checks a question pool for questions with the same maximum points.
| integer | $a_obj_id | Object id of the question pool private | 
Definition at line 1039 of file class.ilObjQuestionPool.php.
Referenced by _getAvailableQuestionpools().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::_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 object | 
| integer | $user_id | The database id of the user public | 
Definition at line 1197 of file class.ilObjQuestionPool.php.
References ilObject\$ref_id, ilObject\_getAllReferences(), and ilObject\_hasUntrashedReference().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::_lookupOnline | ( | $a_obj_id, | |
| $is_reference = FALSE | |||
| ) | 
Definition at line 1007 of file class.ilObjQuestionPool.php.
Referenced by ilObjQuestionPoolListGUI\getProperties().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::_setImportDirectory | ( | $a_import_dir = null | ) | 
set import directory
Definition at line 804 of file class.ilObjQuestionPool.php.
References $_SESSION.
Referenced by ilTestQuestionPoolImporter\importXmlRepresentation(), and ilObjQuestionPoolGUI\uploadQplObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Updates the number of available questions for a question pool in the database.
| integer | $object_id | Object id of the questionpool to examine public | 
Definition at line 1621 of file class.ilObjQuestionPool.php.
References $result, and _getQuestionCount().
Referenced by assQuestion\delete(), duplicateQuestion(), pasteFromClipboard(), and assQuestion\saveToDb().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::addQuestionChangeListeners | ( | assQuestion | $question | ) | 
| assQuestion | $question | 
Definition at line 277 of file class.ilObjQuestionPool.php.
References assQuestion\addQuestionChangeListener(), ilObject\getId(), and ilObjTest\getPoolQuestionChangeListeners().
Referenced by deleteQuestion().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::cleanupClipboard | ( | $deletedQuestionId | ) | 
Definition at line 1170 of file class.ilObjQuestionPool.php.
References $_SESSION.
| ilObjQuestionPool::cloneObject | ( | $a_target_id, | |
| $a_copy_id = 0 | |||
| ) | 
Creates a 1:1 copy of the object and places the copy in a given repository.
public
Definition at line 1438 of file class.ilObjQuestionPool.php.
References $ilLog, ilObject\getId(), getOnline(), getQplQuestions(), and ilObject\getType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::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 public | 
Definition at line 480 of file class.ilObjQuestionPool.php.
References createQuestion(), duplicateQuestion(), and ilObject\getId().
Referenced by pasteFromClipboard().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::copyToClipboard | ( | $question_id | ) | 
Copies a question to the clipboard.
| integer | $question_id | Object id of the question private | 
Definition at line 1146 of file class.ilObjQuestionPool.php.
References $_SESSION.
| ilObjQuestionPool::create | ( | $a_upload = false | ) | 
create questionpool object
Definition at line 61 of file class.ilObjQuestionPool.php.
References ilObject\create(), and ilObject\createMetaData().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::createExportDirectory | ( | ) | 
creates data directory for export files (data_dir/qpl_data/qpl_<id>/export, depending on data directory that is set in ILIAS setup/ini)
Definition at line 722 of file class.ilObjQuestionPool.php.
References ilUtil\getDataDir(), getExportDirectory(), ilObject\getId(), and ilUtil\makeDir().
 Here is the call graph for this function:
 Here is the call graph for this function:| & ilObjQuestionPool::createQuestion | ( | $question_type, | |
| $question_id = -1 | |||
| ) | 
Definition at line 438 of file class.ilObjQuestionPool.php.
References assQuestion\_includeClass(), and assQuestion\_instanciateQuestionGUI().
Referenced by copyQuestion(), duplicateQuestion(), getDeleteableQuestionDetails(), and toXML().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::createReference | ( | ) | 
Creates a database reference id for the object (saves the object to the database and creates a reference id in the database)
public
Reimplemented from ilObject.
Definition at line 79 of file class.ilObjQuestionPool.php.
References $result, and saveToDb().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::delete | ( | ) | 
delete object and all related data
public
Reimplemented from ilObject.
Definition at line 140 of file class.ilObjQuestionPool.php.
References ilObject\deleteMetaData(), and deleteQuestionpool().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::deleteQuestion | ( | $question_id | ) | 
Deletes a question from the question pool.
| integer | $question_id | The database id of the question private | 
Definition at line 264 of file class.ilObjQuestionPool.php.
References assQuestion\_instanciateQuestion(), and addQuestionChangeListeners().
Referenced by deleteQuestionpool().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::deleteQuestionpool | ( | ) | 
Definition at line 157 of file class.ilObjQuestionPool.php.
References ilUtil\delDir(), deleteQuestion(), getAllQuestions(), ilUtil\getDataDir(), and ilObject\getId().
Referenced by delete().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::duplicateQuestion | ( | $question_id | ) | 
Duplicates a question for a questionpool.
| integer | $question_id | The database id of the question public | 
Definition at line 454 of file class.ilObjQuestionPool.php.
References _updateQuestionCount(), createQuestion(), and ilObject\getId().
Referenced by copyQuestion().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::exportFileItems | ( | $a_target_dir, | |
| & | $expLog | ||
| ) | 
export files of file itmes
Definition at line 704 of file class.ilObjQuestionPool.php.
Referenced by exportPagesXML().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::exportPagesXML | ( | & | $a_xml_writer, | 
| $a_inst, | |||
| $a_target_dir, | |||
| & | $expLog, | ||
| $questions | |||
| ) | 
export pages of test to xml (see ilias_co.dtd)
| object | $a_xml_writer | ilXmlWriter object that receives the xml data | 
Definition at line 547 of file class.ilObjQuestionPool.php.
References $ilBench, exportFileItems(), exportXMLMediaObjects(), exportXMLMetaData(), and exportXMLPageObjects().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::exportXMLMediaObjects | ( | & | $a_xml_writer, | 
| $a_inst, | |||
| $a_target_dir, | |||
| & | $expLog | ||
| ) | 
export media objects to xml (see ilias_co.dtd)
| object | $a_xml_writer | ilXmlWriter object that receives the xml data | 
Definition at line 683 of file class.ilObjQuestionPool.php.
References ilObjMediaObject\_exists().
Referenced by exportPagesXML().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::exportXMLMetaData | ( | & | $a_xml_writer | ) | 
export content objects meta data to xml (see ilias_co.dtd)
| object | $a_xml_writer | ilXmlWriter object that receives the xml data | 
Definition at line 591 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and ilObject\getType().
Referenced by exportPagesXML().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::exportXMLPageObjects | ( | & | $a_xml_writer, | 
| $a_inst, | |||
| & | $expLog, | ||
| $questions | |||
| ) | 
export page objects to xml (see ilias_co.dtd)
| object | $a_xml_writer | ilXmlWriter object that receives the xml data | 
Definition at line 618 of file class.ilObjQuestionPool.php.
References $ilBench, and ilPCFileList\collectFileItems().
Referenced by exportPagesXML().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| & ilObjQuestionPool::getAllQuestionIds | ( | ) | 
Definition at line 854 of file class.ilObjQuestionPool.php.
References $row, ilObject\getId(), and isPluginActive().
 Here is the call graph for this function:
 Here is the call graph for this function:| & ilObjQuestionPool::getAllQuestions | ( | ) | 
Retrieve an array containing all question ids of the questionpool.
Definition at line 838 of file class.ilObjQuestionPool.php.
References $result, $row, and ilObject\getId().
Referenced by deleteQuestionpool().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| & ilObjQuestionPool::getDeleteableQuestionDetails | ( | $question_ids | ) | 
Returns an array containing the qpl_question and qpl_qst_type fields of deleteable questions for an array of question ids.
| array | $question_ids | An array containing the question ids | 
Definition at line 1247 of file class.ilObjQuestionPool.php.
References $ilLog, $result, $row, assQuestion\_isUsedInRandomTest(), and createQuestion().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::getDescription | ( | ) | 
get description of content object
Reimplemented from ilObject.
Definition at line 388 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::getExportDirectory | ( | $type = "" | ) | 
get export directory of questionpool
Definition at line 756 of file class.ilObjQuestionPool.php.
References ilObject\$type, and ilUtil\getDataDir().
Referenced by createExportDirectory().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::getImportDirectory | ( | ) | 
Definition at line 828 of file class.ilObjQuestionPool.php.
References _getImportDirectory().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::getImportMapping | ( | ) | 
get array of (two) new created questions for import id
Definition at line 887 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::getNavTaxonomyId | ( | ) | 
Definition at line 997 of file class.ilObjQuestionPool.php.
References $navTaxonomyId.
Referenced by isNavTaxonomyActive(), and saveToDb().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::getOnline | ( | ) | 
Definition at line 976 of file class.ilObjQuestionPool.php.
References $online.
Referenced by cloneObject(), and saveToDb().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::getPrintviewQuestions | ( | ) | 
Calculates the data for the print view of the questionpool.
public
Definition at line 510 of file class.ilObjQuestionPool.php.
References $row, ilObject\getId(), getQuestionTypeTranslations(), and isPluginActive().
 Here is the call graph for this function:
 Here is the call graph for this function:| & ilObjQuestionPool::getQplQuestions | ( | ) | 
Definition at line 1417 of file class.ilObjQuestionPool.php.
References $result, $row, and ilObject\getId().
Referenced by cloneObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| & ilObjQuestionPool::getQuestionDetails | ( | $question_ids | ) | 
Returns an array containing the qpl_question and qpl_qst_type fields for an array of question ids.
| array | $question_ids | An array containing the question ids | 
Definition at line 1223 of file class.ilObjQuestionPool.php.
| & ilObjQuestionPool::getQuestionList | ( | ) | 
Definition at line 1599 of file class.ilObjQuestionPool.php.
References $result, $row, and ilObject\getId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::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 359 of file class.ilObjQuestionPool.php.
References $result.
| 
 | static | 
Definition at line 1510 of file class.ilObjQuestionPool.php.
References $query, $result, and $row.
Referenced by ilTestExpressPageObjectGUI\addPageOfQuestions(), ilScoringAdjustmentGUI\allowedInAdjustment(), ilTestExpressPageObjectGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), and ilTestExpressPageObjectGUI\handleToolbarCommand().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| & ilObjQuestionPool::getQuestionTypes | ( | $all_tags = FALSE, | |
| $fixOrder = false | |||
| ) | 
Definition at line 1461 of file class.ilObjQuestionPool.php.
References _getQuestionTypes().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Definition at line 1521 of file class.ilObjQuestionPool.php.
References $ilLog, ilObject\$lng, $result, $row, ilPlugin\getPluginObject(), and IL_COMP_MODULE.
Referenced by getPrintviewQuestions().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::getShowTaxonomies | ( | ) | 
Definition at line 987 of file class.ilObjQuestionPool.php.
References $showTaxonomies.
Referenced by isNavTaxonomyActive(), and saveToDb().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::getTaxonomyIds | ( | ) | 
get ids of all taxonomies corresponding to current pool
Definition at line 1667 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and ilObjTaxonomy\getUsageOfObject().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::getTitle | ( | ) | 
get title of glossary object
Reimplemented from ilObject.
Definition at line 406 of file class.ilObjQuestionPool.php.
Referenced by updateMetaData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::ilObjQuestionPool | ( | $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 51 of file class.ilObjQuestionPool.php.
References ilObject\ilObject(), and setOnline().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::initDefaultRoles | ( | ) | 
If your module does not require any default roles, delete this method (For an example how this method is used, look at ilObjForum)
public
Reimplemented from ilObject.
Definition at line 187 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::isInUse | ( | $question_id | ) | 
Checks whether the question is in use or not.
| integer | $question_id | The question id of the question to be checked | 
Definition at line 426 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::isNavTaxonomyActive | ( | ) | 
Definition at line 1002 of file class.ilObjQuestionPool.php.
References getNavTaxonomyId(), and getShowTaxonomies().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::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 1636 of file class.ilObjQuestionPool.php.
References IL_COMP_MODULE.
Referenced by getAllQuestionIds(), and getPrintviewQuestions().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::loadFromDb | ( | ) | 
Loads a ilObjQuestionpool object from a database.
public
Definition at line 292 of file class.ilObjQuestionPool.php.
References $result, $row, ilObject\getId(), setNavTaxonomyId(), setOnline(), and setShowTaxonomies().
Referenced by read().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::modifyExportIdentifier | ( | $a_tag, | |
| $a_param, | |||
| $a_value | |||
| ) | 
Definition at line 600 of file class.ilObjQuestionPool.php.
References ilUtil\insertInstIntoID().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::moveToClipboard | ( | $question_id | ) | 
Moves a question to the clipboard.
| integer | $question_id | Object id of the question private | 
Definition at line 1161 of file class.ilObjQuestionPool.php.
References $_SESSION.
| ilObjQuestionPool::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 205 of file class.ilObjQuestionPool.php.
References $_GET, and ilObject\getType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::pasteFromClipboard | ( | ) | 
Copies/Moves a question from the clipboard.
private
Definition at line 1077 of file class.ilObjQuestionPool.php.
References $_SESSION, $result, $row, $success, _updateQuestionCount(), copyQuestion(), ilObject\getId(), and ilUtil\makeDirParents().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::purgeQuestions | ( | ) | 
Definition at line 1652 of file class.ilObjQuestionPool.php.
References $ilUser.
| ilObjQuestionPool::read | ( | $a_force_db = false | ) | 
read object data from db into object
| boolean | public | 
Reimplemented from ilObject.
Definition at line 127 of file class.ilObjQuestionPool.php.
References loadFromDb().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::saveToDb | ( | ) | 
Saves a ilObjQuestionpool object to a database.
public
Definition at line 314 of file class.ilObjQuestionPool.php.
References $result, ilObject\getId(), getNavTaxonomyId(), getOnline(), and getShowTaxonomies().
Referenced by createReference().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::setDescription | ( | $a_description | ) | 
set description of content object
Reimplemented from ilObject.
Definition at line 396 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::setNavTaxonomyId | ( | $navTaxonomyId | ) | 
Definition at line 992 of file class.ilObjQuestionPool.php.
References $navTaxonomyId.
Referenced by loadFromDb().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::setOnline | ( | $a_online_status | ) | 
Sets the questionpool online status.
| integer | $a_online_status | Online status of the questionpool | 
Definition at line 962 of file class.ilObjQuestionPool.php.
Referenced by ilObjQuestionPool(), and loadFromDb().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::setShowTaxonomies | ( | $showTaxonomies | ) | 
Definition at line 982 of file class.ilObjQuestionPool.php.
References $showTaxonomies.
Referenced by loadFromDb().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjQuestionPool::setTitle | ( | $a_title | ) | 
set title of glossary object
Reimplemented from ilObject.
Definition at line 414 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::toXML | ( | $questions | ) | 
Returns a QTI xml representation of a list of questions.
| array | $questions | An array containing the question ids of the questions | 
Definition at line 906 of file class.ilObjQuestionPool.php.
References createQuestion().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::update | ( | ) | 
update object data
public
Reimplemented from ilObject.
Definition at line 92 of file class.ilObjQuestionPool.php.
References updateMetaData().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjQuestionPool::updateMetaData | ( | ) | 
update meta data entry
Reimplemented from ilObject.
Definition at line 105 of file class.ilObjQuestionPool.php.
References $ilUser, ilObject\getId(), getTitle(), and ilObject\getType().
Referenced by update().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 43 of file class.ilObjQuestionPool.php.
| 
 | private | 
Definition at line 37 of file class.ilObjQuestionPool.php.
Referenced by getNavTaxonomyId(), and setNavTaxonomyId().
| ilObjQuestionPool::$online | 
Definition at line 23 of file class.ilObjQuestionPool.php.
Referenced by getOnline().
| 
 | private | 
Definition at line 30 of file class.ilObjQuestionPool.php.
Referenced by getShowTaxonomies(), and setShowTaxonomies().