ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($a_id=0, $a_call_by_reference=true) | |
Constructor 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... | |
updateMetaData () | |
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... | |
addQuestionChangeListeners (assQuestion $question) | |
loadFromDb () | |
Loads a ilObjQuestionpool object from a database. More... | |
saveToDb () | |
Saves a ilObjQuestionpool object to a database. More... | |
getQuestiontype ($question_id) | |
Returns the question type of a question with a given id. More... | |
getDescription () | |
get description of content object More... | |
setDescription ($a_description) | |
set description of content object More... | |
getTitle () | |
get title of glossary object More... | |
setTitle ($a_title) | |
set title of glossary object More... | |
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) | |
export media objects to xml (see ilias_co.dtd) More... | |
exportFileItems ($a_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 ($a_target_id, $a_copy_id=0, $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) | |
& | getQuestionList () |
isPluginActive ($questionType) | |
Checks wheather or not a question plugin with a given name is active. More... | |
purgeQuestions () | |
getTaxonomyIds () | |
get ids of all taxonomies corresponding to current pool More... | |
isSkillServiceEnabled () | |
setSkillServiceEnabled ($skillServiceEnabled) | |
fromXML ($xmlFile) | |
Public Member Functions inherited from ilObject | |
__construct ($a_id=0, $a_reference=true) | |
Constructor public. More... | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) More... | |
read () | |
read object data from db into object More... | |
getId () | |
get object id public More... | |
setId ($a_id) | |
set object id public More... | |
setRefId ($a_id) | |
set reference id public More... | |
getRefId () | |
get reference id public More... | |
getType () | |
get object type public More... | |
setType ($a_type) | |
set object type public More... | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
get object title public More... | |
getUntranslatedTitle () | |
get untranslated object title public More... | |
setTitle ($a_title) | |
set object title More... | |
getDescription () | |
get object description More... | |
setDescription ($a_desc) | |
set object description More... | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
get import id More... | |
setImportId ($a_import_id) | |
set import id More... | |
getOwner () | |
get object owner More... | |
getOwnerName () | |
setOwner ($a_owner) | |
set object owner More... | |
getCreateDate () | |
get create date public More... | |
getLastUpdateDate () | |
get last update date public More... | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. More... | |
create () | |
create More... | |
update () | |
update object in db More... | |
MDUpdateListener ($a_element) | |
Meta data update listener. More... | |
createMetaData () | |
create meta data entry More... | |
updateMetaData () | |
update meta data entry More... | |
deleteMetaData () | |
delete meta data entry More... | |
updateOwner () | |
update owner of object in db More... | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? More... | |
setPermissions ($a_parent_ref) | |
set permissions of object More... | |
setParentRolePermissions ($a_parent_ref) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
count references of object More... | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public More... | |
applyDidacticTemplate ($a_tpl_id) | |
Apply template. More... | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. More... | |
cloneMetaData ($target_obj) | |
Copy meta data. More... | |
getPossibleSubObjects ($a_filter=true) | |
get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Static Public Member Functions | |
static | _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) |
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 ($a_import_id) |
static | _lookupImportId ($a_obj_id) |
static | _lookupOwnerName ($a_owner_id) |
lookup owner name for owner id More... | |
static | _getIdForImportId ($a_import_id) |
get current object id for import id (static) More... | |
static | _getAllReferences ($a_id) |
get all reference ids of object More... | |
static | _lookupTitle ($a_id) |
lookup object title More... | |
static | _lookupOwner ($a_id) |
lookup object owner More... | |
static | _getIdsForTitle ($title, $type='', $partialmatch=false) |
static | _lookupDescription ($a_id) |
lookup object description More... | |
static | _lookupLastUpdate ($a_id, $a_as_string=false) |
lookup last update More... | |
static | _getLastUpdateOfObjects ($a_objs) |
Get last update for a set of media objects. More... | |
static | _lookupObjId ($a_id) |
static | _setDeletedDate ($a_ref_id) |
only called in ilTree::saveSubTree More... | |
static | setDeletedDates ($a_ref_ids) |
Set deleted date type $ilDB. More... | |
static | _resetDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _lookupDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _writeTitle ($a_obj_id, $a_title) |
write title to db (static) More... | |
static | _writeDescription ($a_obj_id, $a_desc) |
write description to db (static) More... | |
static | _writeImportId ($a_obj_id, $a_import_id) |
write import id to db (static) More... | |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type More... | |
static | _isInTrash ($a_ref_id) |
checks wether object is in trash More... | |
static | _hasUntrashedReference ($a_obj_id) |
checks wether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId ($a_ref_id) |
lookup object id More... | |
static | _getObjectsDataForType ($a_type, $a_omit_trash=false) |
get all objects of a certain type More... | |
static | _exists ($a_id, $a_reference=false, $a_type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. More... | |
static | _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true) |
Prepare copy wizard object selection. More... | |
static | _getIcon ( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $a_obj_ids) |
Get long description data. More... | |
static | getAllOwnedRepositoryObjects ($a_user_id) |
Get all ids of objects user owns. More... | |
static | fixMissingTitles ($a_type, array &$a_obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate ($a_id) |
Lookup creation date. More... | |
static | hasAutoRating ($a_type, $a_ref_id) |
Check if auto rating is active for parent group/course. More... | |
Data Fields | |
$online | |
Data Fields inherited from ilObject | |
const | TITLE_LENGTH = 255 |
max length of object title More... | |
const | DESC_LENGTH = 128 |
$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 | |
Protected Member Functions | |
populateQuestionSkillAssignmentsXml (ilXmlWriter &$a_xml_writer, $questions) | |
Private Member Functions | |
exportXMLSettings ($xmlWriter) | |
Private Attributes | |
$showTaxonomies = null | |
$navTaxonomyId = null | |
$skillServiceEnabled | |
$import_dir | |
Static Private Attributes | |
static | $isSkillManagementGloballyActivated = null |
Additional Inherited Members | |
Protected Attributes inherited from ilObject | |
$objDefinition | |
$db | |
$log | |
$error | |
$tree | |
$app_event_handler | |
$rbacadmin | |
$rbacreview | |
Definition at line 16 of file class.ilObjQuestionPool.php.
ilObjQuestionPool::__construct | ( | $a_id = 0 , |
|
$a_call_by_reference = true |
|||
) |
Constructor public.
integer | reference_id or object_id |
boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 56 of file class.ilObjQuestionPool.php.
References setOnline().
|
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 724 of file class.ilObjQuestionPool.php.
References ilUtil\getDataDir(), and ilUtil\makeDir().
Referenced by ilObjQuestionPoolGUI\uploadQplObject().
|
static |
Returns the available question pools for the active user.
Definition at line 1255 of file class.ilObjQuestionPool.php.
References $ilDB, $ilUser, $in, ilObject\$lng, ilObject\$ref_id, $result, $row, ilObject\$title, ilUtil\_getObjectsByOperations(), _hasEqualPoints(), ilObject\_lookupObjId(), ilObject\_prepareCloneSelection(), and array.
Referenced by ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjTestGUI\createQuestionObject(), ilObjTest\getAvailableQuestionpools(), ilObjTest\getAvailableQuestions(), ilTestQuestionBrowserTableGUI\getQuestionParentObjIds(), and ilObjTest\randomSelectQuestions().
ilObjQuestionPool::_getFullPathToQpl | ( | $ref_id | ) |
Retrieves the full path to a question pool with a given reference id.
Definition at line 1229 of file class.ilObjQuestionPool.php.
References $counter, $path, ilObject\$ref_id, ilObject\$tree, array, ilStr\strLen(), and ilStr\subStr().
|
static |
get import directory of lm
Definition at line 761 of file class.ilObjQuestionPool.php.
References $_SESSION.
Referenced by assFormulaQuestionImport\fromXML(), getImportDirectory(), assQuestionImport\getQplImportArchivDirectory(), ilObjQuestionPoolGUI\importVerifiedFileObject(), and ilObjQuestionPoolGUI\uploadQplObject().
|
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 877 of file class.ilObjQuestionPool.php.
References $ilDB, $result, $row, and array.
Referenced by _updateQuestionCount().
|
static |
Definition at line 1392 of file class.ilObjQuestionPool.php.
References $ilDB, $ilLog, ilObject\$lng, $result, $row, ilObjAssessmentFolder\_getForbiddenQuestionTypes(), array, ilPlugin\getPluginObject(), IL_COMP_MODULE, ilAssQuestionTypeOrderer\ORDER_MODE_ALPHA, and ilAssQuestionTypeOrderer\ORDER_MODE_FIX.
Referenced by _getSelfAssessmentQuestionTypes(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ilQuestionBrowserTableGUI\initFilter(), ilTestQuestionBrowserTableGUI\initFilter(), ilTestTaxonomyFilterLabelTranslater\loadTypeLabels(), ilObjAssessmentFolderGUI\saveSettingsObject(), and ilObjAssessmentFolderGUI\settingsObject().
|
static |
Get all self assessment question types.
Definition at line 1475 of file class.ilObjQuestionPool.php.
References $t, _getQuestionTypes(), and array.
Referenced by ilCopySelfAssQuestionTableGUI\getQuestions(), and ilPCQuestionGUI\insert().
|
static |
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 980 of file class.ilObjQuestionPool.php.
References $ilDB, $result, $row, and array.
Referenced by _getAvailableQuestionpools().
|
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 public |
Definition at line 1120 of file class.ilObjQuestionPool.php.
References ilObject\$ref_id, ilObject\_getAllReferences(), and ilObject\_hasUntrashedReference().
Referenced by assQuestion\_isWriteable().
|
static |
Definition at line 950 of file class.ilObjQuestionPool.php.
References $ilDB, $result, $row, and array.
Referenced by ilObjQuestionPoolListGUI\getProperties(), and ilPoolSelectorGUI\isNodeVisible().
|
static |
set import directory
Definition at line 749 of file class.ilObjQuestionPool.php.
References $_SESSION.
Referenced by ilTestQuestionPoolImporter\importXmlRepresentation(), and ilObjQuestionPoolGUI\uploadQplObject().
|
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 1537 of file class.ilObjQuestionPool.php.
References $ilDB, $result, _getQuestionCount(), array, and time.
Referenced by assQuestion\delete(), duplicateQuestion(), pasteFromClipboard(), and assQuestion\saveToDb().
ilObjQuestionPool::addQuestionChangeListeners | ( | assQuestion | $question | ) |
assQuestion | $question |
Definition at line 203 of file class.ilObjQuestionPool.php.
References $ilDB, assQuestion\addQuestionChangeListener(), ilObject\getId(), and ilObjTest\getPoolQuestionChangeListeners().
Referenced by deleteQuestion().
ilObjQuestionPool::checkQuestionParent | ( | $questionId | ) |
Definition at line 819 of file class.ilObjQuestionPool.php.
References $DIC, $row, array, and ilObject\getId().
ilObjQuestionPool::cleanupClipboard | ( | $deletedQuestionId | ) |
ilObjQuestionPool::cloneObject | ( | $a_target_id, | |
$a_copy_id = 0 , |
|||
$a_omit_tree = false |
|||
) |
Creates a 1:1 copy of the object and places the copy in a given repository.
public
Definition at line 1338 of file class.ilObjQuestionPool.php.
References $ilLog, ilCopyWizardOptions\_getInstance(), array, ilObject\getId(), getOnline(), getQplQuestions(), getShowTaxonomies(), ilObject\getType(), and isSkillServiceEnabled().
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 405 of file class.ilObjQuestionPool.php.
References $counter, createQuestion(), duplicateQuestion(), and ilObject\getId().
Referenced by pasteFromClipboard().
ilObjQuestionPool::copyToClipboard | ( | $question_id | ) |
ilObjQuestionPool::create | ( | $a_upload = false | ) |
create questionpool object
Definition at line 68 of file class.ilObjQuestionPool.php.
References ilObject\createMetaData().
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 670 of file class.ilObjQuestionPool.php.
References ilUtil\getDataDir(), getExportDirectory(), ilObject\getId(), and ilUtil\makeDir().
& ilObjQuestionPool::createQuestion | ( | $question_type, | |
$question_id = -1 |
|||
) |
Definition at line 363 of file class.ilObjQuestionPool.php.
References assQuestion\_includeClass(), and assQuestion\_instanciateQuestionGUI().
Referenced by copyQuestion(), duplicateQuestion(), getDeleteableQuestionDetails(), and questionsToXML().
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
Definition at line 85 of file class.ilObjQuestionPool.php.
References $result, and saveToDb().
ilObjQuestionPool::delete | ( | ) |
delete object and all related data
public
Definition at line 144 of file class.ilObjQuestionPool.php.
References ilObject\deleteMetaData(), deleteQuestionpool(), and ilObject\getId().
ilObjQuestionPool::deleteQuestion | ( | $question_id | ) |
Deletes a question from the question pool.
integer | $question_id | The database id of the question private |
Definition at line 190 of file class.ilObjQuestionPool.php.
References assQuestion\_instanciateQuestion(), and addQuestionChangeListeners().
Referenced by deleteQuestionpool().
ilObjQuestionPool::deleteQuestionpool | ( | ) |
Definition at line 164 of file class.ilObjQuestionPool.php.
References ilUtil\delDir(), deleteQuestion(), getAllQuestions(), ilUtil\getDataDir(), and ilObject\getId().
Referenced by delete().
ilObjQuestionPool::duplicateQuestion | ( | $question_id | ) |
Duplicates a question for a questionpool.
integer | $question_id | The database id of the question public |
Definition at line 381 of file class.ilObjQuestionPool.php.
References $counter, _updateQuestionCount(), createQuestion(), and ilObject\getId().
Referenced by copyQuestion().
ilObjQuestionPool::exportFileItems | ( | $a_target_dir, | |
& | $expLog | ||
) |
export files of file itmes
Definition at line 653 of file class.ilObjQuestionPool.php.
References date.
Referenced by objectToXmlWriter().
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 634 of file class.ilObjQuestionPool.php.
References ilObjMediaObject\_exists(), and date.
Referenced by objectToXmlWriter().
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 548 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and ilObject\getType().
Referenced by objectToXmlWriter().
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 574 of file class.ilObjQuestionPool.php.
References $ilBench, $xml, array, ilPCFileList\collectFileItems(), and date.
Referenced by objectToXmlWriter().
|
private |
ilXmlWriter | $xmlWriter |
Definition at line 459 of file class.ilObjQuestionPool.php.
References getNavTaxonomyId(), getShowTaxonomies(), and isSkillServiceEnabled().
Referenced by objectToXmlWriter().
ilObjQuestionPool::fromXML | ( | $xmlFile | ) |
& ilObjQuestionPool::getAllQuestionIds | ( | ) |
Definition at line 795 of file class.ilObjQuestionPool.php.
References $ilDB, $row, array, ilObject\getId(), and isPluginActive().
& ilObjQuestionPool::getAllQuestions | ( | ) |
Retrieve an array containing all question ids of the questionpool.
Definition at line 779 of file class.ilObjQuestionPool.php.
References $ilDB, $result, $row, array, and ilObject\getId().
Referenced by deleteQuestionpool().
& 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 1165 of file class.ilObjQuestionPool.php.
References $ilDB, $ilLog, $result, $row, assQuestion\_isUsedInRandomTest(), array, and createQuestion().
ilObjQuestionPool::getDescription | ( | ) |
get description of content object
Definition at line 312 of file class.ilObjQuestionPool.php.
ilObjQuestionPool::getExportDirectory | ( | $type = "" | ) |
get export directory of questionpool
Definition at line 700 of file class.ilObjQuestionPool.php.
References ilObject\$type, ilExport\_getExportDirectory(), ilUtil\getDataDir(), ilObject\getId(), and ilObject\getType().
Referenced by createExportDirectory().
ilObjQuestionPool::getImportDirectory | ( | ) |
Definition at line 769 of file class.ilObjQuestionPool.php.
References _getImportDirectory().
ilObjQuestionPool::getImportMapping | ( | ) |
get array of (two) new created questions for import id
Definition at line 836 of file class.ilObjQuestionPool.php.
References array.
ilObjQuestionPool::getNavTaxonomyId | ( | ) |
Definition at line 940 of file class.ilObjQuestionPool.php.
References $navTaxonomyId.
Referenced by exportXMLSettings(), isNavTaxonomyActive(), and saveToDb().
ilObjQuestionPool::getOnline | ( | ) |
Definition at line 917 of file class.ilObjQuestionPool.php.
References $online.
Referenced by cloneObject(), and saveToDb().
ilObjQuestionPool::getPrintviewQuestions | ( | ) |
Calculates the data for the print view of the questionpool.
public
Definition at line 430 of file class.ilObjQuestionPool.php.
References $ilDB, $row, $rows, array, ilObject\getId(), getQuestionTypeTranslations(), and isPluginActive().
& ilObjQuestionPool::getQplQuestions | ( | ) |
Definition at line 1317 of file class.ilObjQuestionPool.php.
References $ilDB, $result, $row, array, and ilObject\getId().
Referenced by cloneObject().
& 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 1143 of file class.ilObjQuestionPool.php.
& ilObjQuestionPool::getQuestionList | ( | ) |
Definition at line 1515 of file class.ilObjQuestionPool.php.
References $ilDB, $result, $row, array, and ilObject\getId().
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 286 of file class.ilObjQuestionPool.php.
|
static |
Definition at line 1429 of file class.ilObjQuestionPool.php.
References $ilDB, $query, $result, $row, and array.
Referenced by ilTestExpressPageObjectGUI\addPageOfQuestions(), ilScoringAdjustmentGUI\allowedInAdjustment(), ilTestExpressPageObjectGUI\executeCommand(), ilObjTestGUI\executeCreateQuestionObject(), and ilTestExpressPageObjectGUI\handleToolbarCommand().
ilObjQuestionPool::getQuestionTypes | ( | $all_tags = false , |
|
$fixOrder = false |
|||
) |
Definition at line 1387 of file class.ilObjQuestionPool.php.
|
static |
Definition at line 1443 of file class.ilObjQuestionPool.php.
References $ilDB, $ilLog, ilObject\$lng, $result, $row, array, ilPlugin\getPluginObject(), and IL_COMP_MODULE.
Referenced by getPrintviewQuestions().
ilObjQuestionPool::getShowTaxonomies | ( | ) |
Definition at line 930 of file class.ilObjQuestionPool.php.
References $showTaxonomies.
Referenced by cloneObject(), exportXMLSettings(), isNavTaxonomyActive(), and saveToDb().
ilObjQuestionPool::getTaxonomyIds | ( | ) |
get ids of all taxonomies corresponding to current pool
Definition at line 1593 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and ilObjTaxonomy\getUsageOfObject().
ilObjQuestionPool::getTitle | ( | ) |
get title of glossary object
Definition at line 330 of file class.ilObjQuestionPool.php.
Referenced by updateMetaData().
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 350 of file class.ilObjQuestionPool.php.
References $ilDB, $result, $row, and array.
ilObjQuestionPool::isNavTaxonomyActive | ( | ) |
Definition at line 945 of file class.ilObjQuestionPool.php.
References getNavTaxonomyId(), and getShowTaxonomies().
ilObjQuestionPool::isPluginActive | ( | $questionType | ) |
Checks wheather or not a question plugin with a given name is active.
string | $a_pname | The plugin name public |
Definition at line 1553 of file class.ilObjQuestionPool.php.
References ilPlugin\getPluginObject(), and IL_COMP_MODULE.
Referenced by getAllQuestionIds(), and getPrintviewQuestions().
|
static |
Definition at line 1617 of file class.ilObjQuestionPool.php.
Referenced by ilObjQuestionPoolSettingsGeneralGUI\buildForm(), ilQuestionPoolSkillAdministrationGUI\isAccessDenied(), and ilObjQuestionPoolGUI\isSkillsTabRequired().
ilObjQuestionPool::isSkillServiceEnabled | ( | ) |
Definition at line 1602 of file class.ilObjQuestionPool.php.
References $skillServiceEnabled.
Referenced by cloneObject(), exportXMLSettings(), and saveToDb().
ilObjQuestionPool::loadFromDb | ( | ) |
Loads a ilObjQuestionpool object from a database.
public
Definition at line 217 of file class.ilObjQuestionPool.php.
References $ilDB, $result, $row, array, ilObject\getId(), setNavTaxonomyId(), setOnline(), setShowTaxonomies(), and setSkillServiceEnabled().
Referenced by read().
ilObjQuestionPool::modifyExportIdentifier | ( | $a_tag, | |
$a_param, | |||
$a_value | |||
) |
Definition at line 557 of file class.ilObjQuestionPool.php.
References ilUtil\insertInstIntoID().
ilObjQuestionPool::moveToClipboard | ( | $question_id | ) |
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 476 of file class.ilObjQuestionPool.php.
References $ilBench, array, date, exportFileItems(), exportXMLMediaObjects(), exportXMLMetaData(), exportXMLPageObjects(), exportXMLSettings(), populateQuestionSkillAssignmentsXml(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilObjQuestionPool::pasteFromClipboard | ( | ) |
Copies/Moves a question from the clipboard.
private
Definition at line 1013 of file class.ilObjQuestionPool.php.
References $_SESSION, $ilDB, $result, $row, $success, _updateQuestionCount(), array, copyQuestion(), ilObject\getId(), and ilUtil\makeDirParents().
|
protected |
ilXmlWriter | $a_xml_writer | |
$questions |
Definition at line 524 of file class.ilObjQuestionPool.php.
References $ilDB, and ilObject\getId().
Referenced by objectToXmlWriter().
ilObjQuestionPool::purgeQuestions | ( | ) |
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 852 of file class.ilObjQuestionPool.php.
References $key, $xml, and createQuestion().
ilObjQuestionPool::read | ( | $a_force_db = false | ) |
read object data from db into object
boolean | public |
Definition at line 131 of file class.ilObjQuestionPool.php.
References loadFromDb().
ilObjQuestionPool::saveToDb | ( | ) |
Saves a ilObjQuestionpool object to a database.
public
Definition at line 240 of file class.ilObjQuestionPool.php.
References $ilDB, $result, array, ilObject\getId(), getNavTaxonomyId(), getOnline(), getShowTaxonomies(), isSkillServiceEnabled(), and time.
Referenced by createReference().
ilObjQuestionPool::setDescription | ( | $a_description | ) |
set description of content object
Definition at line 320 of file class.ilObjQuestionPool.php.
ilObjQuestionPool::setNavTaxonomyId | ( | $navTaxonomyId | ) |
Definition at line 935 of file class.ilObjQuestionPool.php.
References $navTaxonomyId.
Referenced by loadFromDb().
ilObjQuestionPool::setOnline | ( | $a_online_status | ) |
Sets the questionpool online status.
integer | $a_online_status | Online status of the questionpool |
Definition at line 904 of file class.ilObjQuestionPool.php.
Referenced by __construct(), and loadFromDb().
ilObjQuestionPool::setShowTaxonomies | ( | $showTaxonomies | ) |
Definition at line 925 of file class.ilObjQuestionPool.php.
References $showTaxonomies.
Referenced by loadFromDb().
ilObjQuestionPool::setSkillServiceEnabled | ( | $skillServiceEnabled | ) |
boolean | $skillServiceEnabled |
Definition at line 1610 of file class.ilObjQuestionPool.php.
References $skillServiceEnabled.
Referenced by loadFromDb().
ilObjQuestionPool::setTitle | ( | $a_title | ) |
set title of glossary object
Definition at line 338 of file class.ilObjQuestionPool.php.
ilObjQuestionPool::update | ( | ) |
update object data
public
Definition at line 98 of file class.ilObjQuestionPool.php.
References League\Flysystem\Adapter\Polyfill\update(), and updateMetaData().
ilObjQuestionPool::updateMetaData | ( | ) |
Definition at line 110 of file class.ilObjQuestionPool.php.
References $ilUser, ilObject\getId(), getTitle(), and ilObject\getType().
Referenced by update().
|
private |
Definition at line 48 of file class.ilObjQuestionPool.php.
|
staticprivate |
Definition at line 1615 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().
|
private |
Definition at line 42 of file class.ilObjQuestionPool.php.
Referenced by isSkillServiceEnabled(), and setSkillServiceEnabled().