|
ILIAS
release_8 Revision v8.24
|
Inheritance diagram for ilObjQuestionPool:
Collaboration diagram for ilObjQuestionPool:Public Member Functions | |
| __construct ($a_id=0, $a_call_by_reference=true) | |
| Constructor @access public. More... | |
| create ($a_upload=false) | |
| create questionpool object More... | |
| createReference () | |
| Creates a database reference id for the object (saves the object to the database and creates a reference id in the database) More... | |
| update () | |
| update object data More... | |
| read ($a_force_db=false) | |
| read object data from db into object More... | |
| delete () | |
| delete object and all related data More... | |
| deleteQuestionpool () | |
| deleteQuestion ($question_id) | |
| Deletes a question from the question pool. More... | |
| loadFromDb () | |
| Loads a ilObjQuestionpool object from a database. More... | |
| saveToDb () | |
| Saves a ilObjQuestionpool object to a database. More... | |
| getQuestiontype ($question_id) | |
| isInUse ($question_id) | |
| Checks whether the question is in use or not. More... | |
| createQuestion ($question_type, $question_id=-1) | |
| duplicateQuestion ($question_id) | |
| Duplicates a question for a questionpool. More... | |
| copyQuestion ($question_id, $questionpool_to) | |
| Copies a question into another question pool. More... | |
| getPrintviewQuestions () | |
| Calculates the data for the print view of the questionpool. More... | |
| objectToXmlWriter (ilXmlWriter &$a_xml_writer, $a_inst, $a_target_dir, &$expLog, $questions) | |
| export pages of test to xml (see ilias_co.dtd) More... | |
| exportXMLMetaData (&$a_xml_writer) | |
| export content objects meta data to xml (see ilias_co.dtd) More... | |
| modifyExportIdentifier ($a_tag, $a_param, $a_value) | |
| exportXMLPageObjects (&$a_xml_writer, $a_inst, &$expLog, $questions) | |
| export page objects to xml (see ilias_co.dtd) More... | |
| exportXMLMediaObjects (&$a_xml_writer, $a_inst, $a_target_dir, &$expLog) | |
| exportFileItems ($target_dir, &$expLog) | |
| export files of file itmes More... | |
| 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) More... | |
| getExportDirectory ($type="") | |
| get export directory of questionpool More... | |
| getImportDirectory () | |
| & | getAllQuestions () |
| Retrieve an array containing all question ids of the questionpool. More... | |
| & | getAllQuestionIds () |
| checkQuestionParent ($questionId) | |
| getImportMapping () | |
| get array of (two) new created questions for import id More... | |
| questionsToXML ($questions) | |
| Returns a QTI xml representation of a list of questions. More... | |
| setOnline ($a_online_status) | |
| Sets the questionpool online status. More... | |
| getOnline () | |
| setShowTaxonomies ($showTaxonomies) | |
| getShowTaxonomies () | |
| setNavTaxonomyId ($navTaxonomyId) | |
| getNavTaxonomyId () | |
| isNavTaxonomyActive () | |
| pasteFromClipboard () | |
| Copies/Moves a question from the clipboard. More... | |
| copyToClipboard ($question_id) | |
| Copies a question to the clipboard. More... | |
| moveToClipboard ($question_id) | |
| Moves a question to the clipboard. More... | |
| cleanupClipboard ($deletedQuestionId) | |
| & | getQuestionDetails ($question_ids) |
| Returns an array containing the qpl_question and qpl_qst_type fields for an array of question ids. More... | |
| & | getDeleteableQuestionDetails ($question_ids) |
| Returns an array containing the qpl_question and qpl_qst_type fields of deleteable questions for an array of question ids. More... | |
| _getFullPathToQpl ($ref_id) | |
| Retrieves the full path to a question pool with a given reference id. More... | |
| & | getQplQuestions () |
| cloneObject (int $a_target_id, int $a_copy_id=0, bool $a_omit_tree=false) | |
| Creates a 1:1 copy of the object and places the copy in a given repository. More... | |
| getQuestionTypes ($all_tags=false, $fixOrder=false, $withDeprecatedTypes=true) | |
| & | getQuestionList () |
| purgeQuestions () | |
| getTaxonomyIds () | |
| get ids of all taxonomies corresponding to current pool More... | |
| isSkillServiceEnabled () | |
| setSkillServiceEnabled ($skillServiceEnabled) | |
| fromXML ($xmlFile) | |
Public Member Functions inherited from ilObject | |
| __construct (int $id=0, bool $reference=true) | |
| withReferences () | |
| determines whether objects are referenced or not (got ref ids or not) More... | |
| processAutoRating () | |
| read () | |
| getId () | |
| setId (int $id) | |
| setRefId (int $ref_id) | |
| getRefId () | |
| getType () | |
| setType (string $type) | |
| getPresentationTitle () | |
| get presentation title Normally same as title Overwritten for sessions More... | |
| getTitle () | |
| getUntranslatedTitle () | |
| Get untranslated object title WebDAV needs to access the untranslated title of an object. More... | |
| setTitle (string $title) | |
| getDescription () | |
| setDescription (string $desc) | |
| getLongDescription () | |
| get object long description (stored in object_description) More... | |
| getImportId () | |
| setImportId (string $import_id) | |
| setOfflineStatus (bool $status) | |
| getOfflineStatus () | |
| supportsOfflineHandling () | |
| getOwner () | |
| getOwnerName () | |
| get full name of object owner More... | |
| setOwner (int $usr_id) | |
| getCreateDate () | |
| Get create date in YYYY-MM-DD HH-MM-SS format. More... | |
| getLastUpdateDate () | |
| Get last update date in YYYY-MM-DD HH-MM-SS format. More... | |
| create () | |
| note: title, description and type should be set when this function is called More... | |
| update () | |
| MDUpdateListener (string $element) | |
| Metadata update listener. More... | |
| createMetaData () | |
| updateMetaData () | |
| deleteMetaData () | |
| updateOwner () | |
| update owner of object in db More... | |
| putInTree (int $parent_ref_id) | |
| maybe this method should be in tree object!? More... | |
| setPermissions (int $parent_ref_id) | |
| setParentRolePermissions (int $parent_ref_id) | |
| Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More... | |
| createReference () | |
| creates reference for object More... | |
| countReferences () | |
| 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. More... | |
| applyDidacticTemplate (int $tpl_id) | |
| getXMLZip () | |
| getHTMLDirectory () | |
| appendCopyInfo (int $target_id, int $copy_id) | |
| Prepend Copy info if object with same name exists in that container. More... | |
| cloneDependencies (int $target_id, int $copy_id) | |
| Clone object dependencies. More... | |
| cloneMetaData (ilObject $target_obj) | |
| Copy meta data. More... | |
| selfOrParentWithRatingEnabled () | |
| getPossibleSubObjects (bool $filter=true) | |
| get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More... | |
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) More... | |
| static | _setImportDirectory ($a_import_dir=null) |
| set import directory More... | |
| static | _getImportDirectory () |
| get import directory of lm More... | |
| static | _getQuestionCount ($questionpool_id, $complete_questions_only=false) |
| Returns the number of questions in a question pool. More... | |
| static | _lookupOnline ($a_obj_id, $is_reference=false) |
| static | _hasEqualPoints ($a_obj_id, $is_reference=false) |
| Checks a question pool for questions with the same maximum points. More... | |
| static | _isWriteable ($object_id, $user_id) |
| Returns true, if the question pool is writeable by a given user. More... | |
| static | _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. More... | |
| static | _getQuestionTypes ($all_tags=false, $fixOrder=false, $withDeprecatedTypes=true) |
| static | getQuestionTypeByTypeId ($type_id) |
| static | getQuestionTypeTranslations () |
| static & | _getSelfAssessmentQuestionTypes ($all_tags=false) |
| Get all self assessment question types. More... | |
| static | _updateQuestionCount ($object_id) |
| Updates the number of available questions for a question pool in the database. More... | |
| static | isSkillManagementGloballyActivated () |
Static Public Member Functions inherited from ilObject | |
| static | _lookupObjIdByImportId (string $import_id) |
| Get (latest) object id for an import id. More... | |
| static | _lookupImportId (int $obj_id) |
| static | _lookupOwnerName (int $owner_id) |
| Lookup owner name for owner id. More... | |
| static | _getIdForImportId (string $import_id) |
| static | _getAllReferences (int $id) |
| get all reference ids for object ID More... | |
| static | _lookupTitle (int $obj_id) |
| static | lookupOfflineStatus (int $obj_id) |
| Lookup offline status using objectDataCache. More... | |
| static | _lookupOwner (int $obj_id) |
| Lookup owner user ID for object ID. More... | |
| static | _getIdsForTitle (string $title, string $type='', bool $partial_match=false) |
| static | _lookupDescription (int $obj_id) |
| static | _lookupLastUpdate (int $obj_id, bool $formatted=false) |
| static | _getLastUpdateOfObjects (array $obj_ids) |
| static | _lookupObjId (int $ref_id) |
| static | _setDeletedDate (int $ref_id, int $deleted_by) |
| static | setDeletedDates (array $ref_ids, int $user_id) |
| static | _resetDeletedDate (int $ref_id) |
| static | _lookupDeletedDate (int $ref_id) |
| static | _writeTitle (int $obj_id, string $title) |
| write title to db (static) More... | |
| static | _writeDescription (int $obj_id, string $desc) |
| write description to db (static) More... | |
| static | _writeImportId (int $obj_id, string $import_id) |
| write import id to db (static) More... | |
| static | _lookupType (int $id, bool $reference=false) |
| static | _isInTrash (int $ref_id) |
| static | _hasUntrashedReference (int $obj_id) |
| checks whether an object has at least one reference that is not in trash More... | |
| static | _lookupObjectId (int $ref_id) |
| static | _getObjectsDataForType (string $type, bool $omit_trash=false) |
| get all objects of a certain type More... | |
| static | _exists (int $id, bool $reference=false, ?string $type=null) |
| checks if an object exists in object_data More... | |
| static | _getObjectsByType (string $obj_type="", int $owner=null) |
| static | _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true) |
| Prepare copy wizard object selection. More... | |
| static | _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false) |
| Get icon for repository item. More... | |
| static | collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0) |
| Collect deletion dependencies. More... | |
| static | getDeletionDependencies (int $obj_id) |
| Get deletion dependencies. More... | |
| static | getLongDescriptions (array $obj_ids) |
| static | getAllOwnedRepositoryObjects (int $user_id) |
| static | fixMissingTitles ($type, array &$obj_title_map) |
| Try to fix missing object titles. More... | |
| static | _lookupCreationDate (int $obj_id) |
| static | _getObjectTypeIdByTitle (string $type, \ilDBInterface $ilDB=null) |
Data Fields | |
| $online | |
Data Fields inherited from ilObject | |
| const | TITLE_LENGTH = 255 |
| const | DESC_LENGTH = 128 |
| const | LONG_DESC_LENGTH = 4000 |
| const | TABLE_OBJECT_DATA = "object_data" |
| array | $objectList |
| string | $untranslatedTitle |
Protected Member Functions | |
| beforeUpdateMetaData () | |
| populateQuestionSkillAssignmentsXml (ilXmlWriter &$a_xml_writer, $questions) | |
Protected Member Functions inherited from ilObject | |
| doMDUpdateListener (string $a_element) | |
| beforeMDUpdateListener (string $a_element) | |
| doCreateMetaData () | |
| beforeCreateMetaData () | |
| doUpdateMetaData () | |
| beforeUpdateMetaData () | |
| doDeleteMetaData () | |
| beforeDeleteMetaData () | |
| handleAutoRating () | |
| hasAutoRating () | |
Private Member Functions | |
| exportXMLSettings ($xmlWriter) | |
Private Attributes | |
| array | $mob_ids |
| array | $file_ids |
| $showTaxonomies = null | |
| $navTaxonomyId = null | |
| $skillServiceEnabled | |
| $import_dir | |
Static Private Attributes | |
| static | $isSkillManagementGloballyActivated = null |
Additional Inherited Members | |
Protected Attributes inherited from ilObject | |
| ilLogger | $obj_log |
| ILIAS | $ilias |
| ilObjectDefinition | $obj_definition |
| ilDBInterface | $db |
| ilLogger | $log |
| ilErrorHandling | $error |
| ilTree | $tree |
| ilAppEventHandler | $app_event_handler |
| ilRbacAdmin | $rbac_admin |
| ilRbacReview | $rbac_review |
| ilObjUser | $user |
| ilLanguage | $lng |
| int | $id |
| bool | $referenced |
| bool | $call_by_reference |
| int | $max_title = self::TITLE_LENGTH |
| int | $max_desc = self::DESC_LENGTH |
| bool | $add_dots = true |
| int | $ref_id = null |
| string | $type = "" |
| string | $title = "" |
| bool | $offline = false |
| string | $desc = "" |
| string | $long_desc = "" |
| int | $owner = 0 |
| string | $create_date = "" |
| string | $last_update = "" |
| string | $import_id = "" |
| bool | $register = false |
Definition at line 31 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::__construct | ( | $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 74 of file class.ilObjQuestionPool.php.
References ILIAS\GlobalScreen\Provider\__construct(), and setOnline().
Here is the call graph for this function:
|
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 696 of file class.ilObjQuestionPool.php.
References $DIC, ilObject\$ilias, ilFileUtils\getDataDir(), ilFileUtils\makeDir(), and ILIAS\raiseError().
Referenced by ilObjQuestionPoolGUI\uploadQplObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns the available question pools for the active user.
Definition at line 1241 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, $ilUser, ilObject\$lng, ilObject\$ref_id, ilObject\$title, ilUtil\_getObjectsByOperations(), _hasEqualPoints(), ilObject\_lookupObjId(), ilObject\_prepareCloneSelection(), and ilLanguage\txt().
Referenced by ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjTestGUI\createQuestionObject(), ilObjTest\getAvailableQuestionpools(), ilObjTest\getAvailableQuestions(), and ilTestQuestionBrowserTableGUI\getQuestionParentObjIds().
Here is the call 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 1214 of file class.ilObjQuestionPool.php.
References $DIC, $path, ilObject\$ref_id, ilObject\$tree, ilTree\getPathFull(), ilStr\strLen(), and ilStr\subStr().
Here is the call graph for this function:
|
static |
get import directory of lm
Definition at line 734 of file class.ilObjQuestionPool.php.
References ilSession\get().
Referenced by assFormulaQuestionImport\fromXML(), getImportDirectory(), assQuestionImport\getQplImportArchivDirectory(), ilObjQuestionPoolGUI\importVerifiedFileObject(), and ilObjQuestionPoolGUI\uploadQplObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
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 845 of file class.ilObjQuestionPool.php.
Referenced by _updateQuestionCount().
Here is the caller graph for this function:
|
static |
Definition at line 1379 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, ilObject\$lng, ilObjAssessmentFolder\_getForbiddenQuestionTypes(), ilLanguage\loadLanguageModule(), ilAssQuestionTypeOrderer\ORDER_MODE_ALPHA, ilAssQuestionTypeOrderer\ORDER_MODE_FIX, and ilLanguage\txt().
Referenced by _getSelfAssessmentQuestionTypes(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), getQuestionTypes(), ilTestRandomQuestionSetSourcePoolDefinition\getTypeFilterAsTypeTags(), ilTestQuestionBrowserTableGUI\initFilter(), ilQuestionBrowserTableGUI\initFilter(), ilTestTaxonomyFilterLabelTranslater\loadTypeLabels(), ilObjAssessmentFolderGUI\saveSettingsObject(), and ilTestRandomQuestionSetSourcePoolDefinition\setTypeFilterFromTypeTags().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get all self assessment question types.
Definition at line 1463 of file class.ilObjQuestionPool.php.
References _getQuestionTypes().
Referenced by ilCopySelfAssQuestionTableGUI\getQuestions(), and ilPCQuestionGUI\insert().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Checks a question pool for questions with the same maximum points.
| integer | $a_obj_id | Object id of the question pool @access private |
Definition at line 950 of file class.ilObjQuestionPool.php.
Referenced by _getAvailableQuestionpools().
Here is the caller graph for this function:
|
static |
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 @access public |
Definition at line 1101 of file class.ilObjQuestionPool.php.
References $DIC, ilObject\$ref_id, ilObject\_getAllReferences(), and ilObject\_hasUntrashedReference().
Referenced by assQuestion\_isWriteable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 919 of file class.ilObjQuestionPool.php.
Referenced by ilObjQuestionPoolListGUI\getProperties().
Here is the caller graph for this function:
|
static |
set import directory
Definition at line 722 of file class.ilObjQuestionPool.php.
References ilSession\clear(), and ilSession\set().
Referenced by ilTestQuestionPoolImporter\importXmlRepresentation(), and ilObjQuestionPoolGUI\uploadQplObject().
Here is the call 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 @access public |
Definition at line 1526 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and _getQuestionCount().
Referenced by assQuestion\delete(), duplicateQuestion(), pasteFromClipboard(), and assQuestion\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented from ilObject.
Definition at line 129 of file class.ilObjQuestionPool.php.
References $DIC, $ilUser, ilObject\getId(), ilObject\getTitle(), and ilObject\getType().
Here is the call graph for this function:| ilObjQuestionPool::checkQuestionParent | ( | $questionId | ) |
Definition at line 791 of file class.ilObjQuestionPool.php.
References $DIC, and ilObject\getId().
Here is the call graph for this function:| ilObjQuestionPool::cleanupClipboard | ( | $deletedQuestionId | ) |
Definition at line 1074 of file class.ilObjQuestionPool.php.
References ilSession\clear(), ilSession\get(), and ilSession\set().
Here is the call graph for this function:| ilObjQuestionPool::cloneObject | ( | int | $a_target_id, |
| int | $a_copy_id = 0, |
||
| bool | $a_omit_tree = false |
||
| ) |
Creates a 1:1 copy of the object and places the copy in a given repository.
@access public
Definition at line 1328 of file class.ilObjQuestionPool.php.
References ilCopyWizardOptions\_getInstance(), ilObject\getId(), getOnline(), getQplQuestions(), getShowTaxonomies(), ilObject\getType(), and isSkillServiceEnabled().
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 @access public |
Definition at line 373 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 caller graph for this function:| ilObjQuestionPool::copyToClipboard | ( | $question_id | ) |
Copies a question to the clipboard.
| integer | $question_id | Object id of the question @access private |
Definition at line 1046 of file class.ilObjQuestionPool.php.
References ilSession\get(), and ilSession\set().
Here is the call graph for this function:| ilObjQuestionPool::create | ( | $a_upload = false | ) |
create questionpool object
Definition at line 86 of file class.ilObjQuestionPool.php.
References ilObject\$id, and ilObject\createMetaData().
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 642 of file class.ilObjQuestionPool.php.
References ilFileUtils\getDataDir(), getExportDirectory(), ilObject\getId(), and ilFileUtils\makeDir().
Here is the call graph for this function:| ilObjQuestionPool::createQuestion | ( | $question_type, | |
$question_id = -1 |
|||
| ) |
Definition at line 331 of file class.ilObjQuestionPool.php.
References assQuestion\_includeClass(), and assQuestion\instantiateQuestionGUI().
Referenced by copyQuestion(), duplicateQuestion(), getDeleteableQuestionDetails(), and questionsToXML().
Here is the call 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)
@access public
Reimplemented from ilObject.
Definition at line 104 of file class.ilObjQuestionPool.php.
References saveToDb().
Here is the call graph for this function:| ilObjQuestionPool::delete | ( | ) |
delete object and all related data
@access public
Reimplemented from ilObject.
Definition at line 164 of file class.ilObjQuestionPool.php.
References ilObject\deleteMetaData(), deleteQuestionpool(), and ilObject\getId().
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 @access private |
Definition at line 210 of file class.ilObjQuestionPool.php.
References assQuestion\instantiateQuestion().
Referenced by deleteQuestionpool().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::deleteQuestionpool | ( | ) |
Definition at line 184 of file class.ilObjQuestionPool.php.
References ilFileUtils\delDir(), deleteQuestion(), getAllQuestions(), ilFileUtils\getDataDir(), and ilObject\getId().
Referenced by delete().
Here is the call 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 @access public |
Definition at line 349 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 caller graph for this function:| ilObjQuestionPool::exportFileItems | ( | $target_dir, | |
| & | $expLog | ||
| ) |
export files of file itmes
Definition at line 617 of file class.ilObjQuestionPool.php.
References IL_INST_ID, and ilFileUtils\makeDir().
Referenced by objectToXmlWriter().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::exportXMLMediaObjects | ( | & | $a_xml_writer, |
| $a_inst, | |||
| $a_target_dir, | |||
| & | $expLog | ||
| ) |
Definition at line 598 of file class.ilObjQuestionPool.php.
References ilObjMediaObject\_exists().
Referenced by objectToXmlWriter().
Here is the call 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 519 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and ilObject\getType().
Referenced by objectToXmlWriter().
Here is the call 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 545 of file class.ilObjQuestionPool.php.
References $DIC, $file_ids, $mob_ids, $xml, and ilPCFileList\collectFileItems().
Referenced by objectToXmlWriter().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| ilXmlWriter | $xmlWriter |
Definition at line 428 of file class.ilObjQuestionPool.php.
References getNavTaxonomyId(), getShowTaxonomies(), and isSkillServiceEnabled().
Referenced by objectToXmlWriter().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::fromXML | ( | $xmlFile | ) |
Definition at line 1624 of file class.ilObjQuestionPool.php.
| & ilObjQuestionPool::getAllQuestionIds | ( | ) |
Definition at line 766 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and ilObject\getId().
Here is the call graph for this function:| & ilObjQuestionPool::getAllQuestions | ( | ) |
Retrieve an array containing all question ids of the questionpool.
Definition at line 749 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and ilObject\getId().
Referenced by deleteQuestionpool().
Here is the call 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 1148 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, assQuestion\_isUsedInRandomTest(), and createQuestion().
Here is the call graph for this function:| ilObjQuestionPool::getExportDirectory | ( | $type = "" | ) |
get export directory of questionpool
Definition at line 672 of file class.ilObjQuestionPool.php.
References ilObject\$type, ilExport\_getExportDirectory(), ilFileUtils\getDataDir(), ilObject\getId(), and ilObject\getType().
Referenced by createExportDirectory().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::getImportDirectory | ( | ) |
Definition at line 739 of file class.ilObjQuestionPool.php.
References _getImportDirectory().
Here is the call graph for this function:| ilObjQuestionPool::getImportMapping | ( | ) |
get array of (two) new created questions for import id
Definition at line 808 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::getNavTaxonomyId | ( | ) |
Definition at line 909 of file class.ilObjQuestionPool.php.
References $navTaxonomyId.
Referenced by exportXMLSettings(), isNavTaxonomyActive(), and saveToDb().
Here is the caller graph for this function:| ilObjQuestionPool::getOnline | ( | ) |
Definition at line 886 of file class.ilObjQuestionPool.php.
References $online.
Referenced by cloneObject(), and saveToDb().
Here is the caller graph for this function:| ilObjQuestionPool::getPrintviewQuestions | ( | ) |
Calculates the data for the print view of the questionpool.
@access public
Definition at line 398 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, $rows, ilObject\getId(), and getQuestionTypeTranslations().
Here is the call graph for this function:| & ilObjQuestionPool::getQplQuestions | ( | ) |
Definition at line 1306 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and ilObject\getId().
Referenced by cloneObject().
Here is the call 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 1125 of file class.ilObjQuestionPool.php.
| & ilObjQuestionPool::getQuestionList | ( | ) |
Definition at line 1503 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and ilObject\getId().
Here is the call graph for this function:| ilObjQuestionPool::getQuestiontype | ( | $question_id | ) |
Definition at line 288 of file class.ilObjQuestionPool.php.
|
static |
Definition at line 1416 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and $query.
Referenced by ilTestExpressPageObjectGUI\addPageOfQuestions(), ilTestCorrectionsGUI\allowedInAdjustment(), ilObjTestGUI\createQuestionObject(), ilTestExpressPageObjectGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), and ilTestExpressPageObjectGUI\handleToolbarCommand().
Here is the caller graph for this function:| ilObjQuestionPool::getQuestionTypes | ( | $all_tags = false, |
|
$fixOrder = false, |
|||
$withDeprecatedTypes = true |
|||
| ) |
Definition at line 1374 of file class.ilObjQuestionPool.php.
References _getQuestionTypes().
Here is the call graph for this function:
|
static |
Definition at line 1432 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, ilObject\$lng, ilLanguage\loadLanguageModule(), and ilLanguage\txt().
Referenced by getPrintviewQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::getShowTaxonomies | ( | ) |
Definition at line 899 of file class.ilObjQuestionPool.php.
References $showTaxonomies.
Referenced by cloneObject(), exportXMLSettings(), isNavTaxonomyActive(), and saveToDb().
Here is the caller graph for this function:| ilObjQuestionPool::getTaxonomyIds | ( | ) |
get ids of all taxonomies corresponding to current pool
Definition at line 1589 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and ilObjTaxonomy\getUsageOfObject().
Here is the call graph for this function:| 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 317 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::isNavTaxonomyActive | ( | ) |
Definition at line 914 of file class.ilObjQuestionPool.php.
References getNavTaxonomyId(), getShowTaxonomies(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
static |
Definition at line 1613 of file class.ilObjQuestionPool.php.
References $isSkillManagementGloballyActivated.
Referenced by ilObjQuestionPoolSettingsGeneralGUI\buildForm(), ilQuestionPoolSkillAdministrationGUI\isAccessDenied(), and ilObjQuestionPoolGUI\isSkillsTabRequired().
Here is the caller graph for this function:| ilObjQuestionPool::isSkillServiceEnabled | ( | ) |
Definition at line 1598 of file class.ilObjQuestionPool.php.
References $skillServiceEnabled.
Referenced by cloneObject(), exportXMLSettings(), and saveToDb().
Here is the caller graph for this function:| ilObjQuestionPool::loadFromDb | ( | ) |
Loads a ilObjQuestionpool object from a database.
@access public
Definition at line 224 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, ilObject\getId(), setNavTaxonomyId(), setOnline(), setShowTaxonomies(), and setSkillServiceEnabled().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::modifyExportIdentifier | ( | $a_tag, | |
| $a_param, | |||
| $a_value | |||
| ) |
Definition at line 528 of file class.ilObjQuestionPool.php.
References ilUtil\insertInstIntoID().
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 @access private |
Definition at line 1063 of file class.ilObjQuestionPool.php.
References ilSession\get(), and ilSession\set().
Here is the call graph for this function:| ilObjQuestionPool::objectToXmlWriter | ( | ilXmlWriter & | $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 445 of file class.ilObjQuestionPool.php.
References $DIC, exportFileItems(), exportXMLMediaObjects(), exportXMLMetaData(), exportXMLPageObjects(), exportXMLSettings(), populateQuestionSkillAssignmentsXml(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:| ilObjQuestionPool::pasteFromClipboard | ( | ) |
Copies/Moves a question from the clipboard.
@access private
Definition at line 984 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, _updateQuestionCount(), ilSession\clear(), CLIENT_WEB_DIR, copyQuestion(), ilSession\get(), ilObject\getId(), and ilFileUtils\makeDirParents().
Here is the call graph for this function:
|
protected |
| ilXmlWriter | $a_xml_writer | |
| $questions |
Definition at line 494 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and ilObject\getId().
Referenced by objectToXmlWriter().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::purgeQuestions | ( | ) |
Definition at line 1572 of file class.ilObjQuestionPool.php.
| ilObjQuestionPool::questionsToXML | ( | $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 820 of file class.ilObjQuestionPool.php.
References ILIAS\LTI\ToolProvider\$key, $xml, and createQuestion().
Here is the call graph for this function:| ilObjQuestionPool::read | ( | $a_force_db = false | ) |
read object data from db into object
| boolean | @access public |
Definition at line 151 of file class.ilObjQuestionPool.php.
References loadFromDb().
Here is the call graph for this function:| ilObjQuestionPool::saveToDb | ( | ) |
Saves a ilObjQuestionpool object to a database.
@access public
Definition at line 248 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, ilObject\getId(), getNavTaxonomyId(), getOnline(), getShowTaxonomies(), and isSkillServiceEnabled().
Referenced by createReference().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjQuestionPool::setNavTaxonomyId | ( | $navTaxonomyId | ) |
Definition at line 904 of file class.ilObjQuestionPool.php.
References $navTaxonomyId.
Referenced by loadFromDb().
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 873 of file class.ilObjQuestionPool.php.
Referenced by __construct(), and loadFromDb().
Here is the caller graph for this function:| ilObjQuestionPool::setShowTaxonomies | ( | $showTaxonomies | ) |
Definition at line 894 of file class.ilObjQuestionPool.php.
References $showTaxonomies.
Referenced by loadFromDb().
Here is the caller graph for this function:| ilObjQuestionPool::setSkillServiceEnabled | ( | $skillServiceEnabled | ) |
| boolean | $skillServiceEnabled |
Definition at line 1606 of file class.ilObjQuestionPool.php.
References $skillServiceEnabled.
Referenced by loadFromDb().
Here is the caller graph for this function:| ilObjQuestionPool::update | ( | ) |
update object data
@access public
Reimplemented from ilObject.
Definition at line 117 of file class.ilObjQuestionPool.php.
References ilObject\updateMetaData().
Here is the call graph for this function:
|
private |
Definition at line 34 of file class.ilObjQuestionPool.php.
Referenced by exportXMLPageObjects().
|
private |
Definition at line 66 of file class.ilObjQuestionPool.php.
|
staticprivate |
Definition at line 1611 of file class.ilObjQuestionPool.php.
Referenced by isSkillManagementGloballyActivated().
|
private |
Definition at line 33 of file class.ilObjQuestionPool.php.
Referenced by exportXMLPageObjects().
|
private |
Definition at line 55 of file class.ilObjQuestionPool.php.
Referenced by getNavTaxonomyId(), and setNavTaxonomyId().
| ilObjQuestionPool::$online |
Definition at line 41 of file class.ilObjQuestionPool.php.
Referenced by getOnline().
|
private |
Definition at line 48 of file class.ilObjQuestionPool.php.
Referenced by getShowTaxonomies(), and setShowTaxonomies().
|
private |
Definition at line 60 of file class.ilObjQuestionPool.php.
Referenced by isSkillServiceEnabled(), and setSkillServiceEnabled().