ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Public Member Functions | |
__construct (int $a_id=0, bool $a_call_by_reference=true) | |
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 (int $question_id) | |
loadFromDb () | |
saveToDb () | |
getQuestiontype ($question_id) | |
isInUse (int $question_id) | |
createQuestion (string $question_type, int $question_id=-1) | |
duplicateQuestion (int $question_id) | |
copyQuestion (int $question_id, int $questionpool_to) | |
appendCounterToQuestionTitleIfNecessary (string $title) | |
getPrintviewQuestions () | |
objectToXmlWriter (ilXmlWriter &$a_xml_writer, $a_inst, $a_target_dir, &$expLog, $questions) | |
export pages of test to xml (see ilias_co.dtd) More... | |
exportTitleAndDescription (ilXmlWriter &$a_xml_writer) | |
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... | |
& | getAllQuestions () |
Retrieve an array containing all question ids of the questionpool. More... | |
& | getAllQuestionIds () |
checkQuestionParent (int $question_id) | |
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... | |
pasteFromClipboard () | |
Copies/Moves a question from the clipboard. More... | |
copyToClipboard ($question_id) | |
Copies a question to the clipboard. More... | |
moveToClipboard (int $question_id) | |
Moves a question to the clipboard. More... | |
cleanupClipboard (int $deleted_question_id) | |
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... | |
getQplQuestions () | |
cloneObject (int $target_id, int $copy_id=0, bool $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 () | |
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 (bool $skill_service_enabled) | |
fromXML (?string $xml_file) | |
![]() | |
getObjectProperties () | |
flushObjectProperties () | |
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 $description) | |
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 | _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 (bool $use_object_id=false, bool $equal_points=false, bool $could_be_offline=false, bool $showPath=false, bool $with_questioncount=false, string $permission='read', int $usr_id=0) |
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) |
static | _updateQuestionCount (int $object_id) |
static | isSkillManagementGloballyActivated () |
![]() | |
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 | getIconForType (string $type) |
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) |
Protected Member Functions | |
populateQuestionSkillAssignmentsXml (ilXmlWriter &$a_xml_writer, $questions) | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
Static Protected Member Functions | |
static | _getQuestionCount (int $pool_id) |
Private Member Functions | |
exportXMLSettings ($xmlWriter) | |
Private Attributes | |
ilComponentRepository | $component_repository |
ilBenchmark | $benchmark |
array | $mob_ids |
array | $file_ids |
bool | $skill_service_enabled |
GeneralQuestionPropertiesRepository | $questionrepository |
Static Private Attributes | |
static | $isSkillManagementGloballyActivated = null |
Additional Inherited Members | |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
![]() | |
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 |
LOMServices | $lom_services |
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 = "" |
string | $desc = "" |
string | $long_desc = "" |
int | $owner = 0 |
string | $create_date = "" |
string | $last_update = "" |
string | $import_id = "" |
bool | $register = false |
Definition at line 33 of file class.ilObjQuestionPool.php.
ilObjQuestionPool::__construct | ( | int | $a_id = 0 , |
bool | $a_call_by_reference = true |
||
) |
Definition at line 43 of file class.ilObjQuestionPool.php.
References $DIC, and ILIAS\GlobalScreen\Provider\__construct().
|
static |
Returns the available question pools for the active user.
Definition at line 924 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, ilObject\$lng, ilObject\$ref_id, ilObject\$title, ilUtil\_getObjectsByOperations(), _hasEqualPoints(), ilObject\_lookupObjId(), ilObject\_prepareCloneSelection(), and ilLanguage\txt().
Referenced by ilObjTestGUI\buildInputPoolSelection(), ilObjTest\getAvailableQuestionpools(), ilObjTest\getAvailableQuestions(), and ilTestQuestionBrowserTableGUI\getQuestionParentObjIds().
|
staticprotected |
Definition at line 644 of file class.ilObjQuestionPool.php.
Referenced by _updateQuestionCount().
|
static |
Definition at line 1056 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, ilObject\$lng, ilLanguage\loadLanguageModule(), ilAssQuestionTypeOrderer\ORDER_MODE_ALPHA, ilAssQuestionTypeOrderer\ORDER_MODE_FIX, and ilLanguage\txt().
Referenced by _getSelfAssessmentQuestionTypes(), ilTestRandomQuestionSetPoolDefinitionFormGUI\build(), ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getFilter(), ilTestRandomQuestionSetSourcePoolDefinition\getTypeFilterAsTypeTags(), ilQuestionBrowserTableGUI\initFilter(), ilTestQuestionFilterLabelTranslator\loadTypeLabels(), ILIAS\Test\Questions\Presentation\QuestionsBrowserFilter\resolveQuestionTypeFilterOptions(), ilTestRandomQuestionSetSourcePoolDefinition\setTypeFilterFromTypeTags(), and ILIAS\Test\Settings\GlobalSettings\GlobalTestSettings\toForm().
|
static |
Definition at line 1132 of file class.ilObjQuestionPool.php.
References _getQuestionTypes().
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 663 of file class.ilObjQuestionPool.php.
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 806 of file class.ilObjQuestionPool.php.
References $DIC, ilObject\$ref_id, ilObject\_getAllReferences(), and ilObject\_hasUntrashedReference().
Referenced by assQuestion\isWriteable().
|
static |
Definition at line 1172 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and _getQuestionCount().
Referenced by assQuestion\delete(), duplicateQuestion(), pasteFromClipboard(), and assQuestion\saveToDb().
ilObjQuestionPool::appendCounterToQuestionTitleIfNecessary | ( | string | $title | ) |
Definition at line 275 of file class.ilObjQuestionPool.php.
References ilObject\$title, and ilObject\getId().
Referenced by copyQuestion(), ilObjTestGUI\copyQuestionToPool(), and duplicateQuestion().
ilObjQuestionPool::checkQuestionParent | ( | int | $question_id | ) |
Definition at line 594 of file class.ilObjQuestionPool.php.
ilObjQuestionPool::cleanupClipboard | ( | int | $deleted_question_id | ) |
Definition at line 779 of file class.ilObjQuestionPool.php.
References ilSession\clear(), ilSession\get(), null, and ilSession\set().
ilObjQuestionPool::cloneObject | ( | int | $target_id, |
int | $copy_id = 0 , |
||
bool | $omit_tree = false |
||
) |
Creates a 1:1 copy of the object and places the copy in a given repository.
public
Definition at line 1018 of file class.ilObjQuestionPool.php.
References ilObject\cloneMetaData(), ilObject\getId(), getQplQuestions(), ilObject\getType(), and isSkillServiceEnabled().
ilObjQuestionPool::copyQuestion | ( | int | $question_id, |
int | $questionpool_to | ||
) |
Definition at line 259 of file class.ilObjQuestionPool.php.
References appendCounterToQuestionTitleIfNecessary(), createQuestion(), duplicateQuestion(), and ilObject\getId().
Referenced by pasteFromClipboard().
ilObjQuestionPool::copyToClipboard | ( | $question_id | ) |
Copies a question to the clipboard.
integer | $question_id | Object id of the question private |
Definition at line 753 of file class.ilObjQuestionPool.php.
References ilSession\get(), null, and ilSession\set().
ilObjQuestionPool::create | ( | $a_upload = false | ) |
create questionpool object
Definition at line 62 of file class.ilObjQuestionPool.php.
References $id, and 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 504 of file class.ilObjQuestionPool.php.
References ilFileUtils\getDataDir(), getExportDirectory(), ilObject\getId(), and ilFileUtils\makeDir().
ilObjQuestionPool::createQuestion | ( | string | $question_type, |
int | $question_id = -1 |
||
) |
Definition at line 238 of file class.ilObjQuestionPool.php.
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 80 of file class.ilObjQuestionPool.php.
References saveToDb().
ilObjQuestionPool::delete | ( | ) |
delete object and all related data
public
Definition at line 122 of file class.ilObjQuestionPool.php.
References ilObject\deleteMetaData(), deleteQuestionpool(), and ilObject\getId().
ilObjQuestionPool::deleteQuestion | ( | int | $question_id | ) |
Definition at line 158 of file class.ilObjQuestionPool.php.
References assQuestion\instantiateQuestion().
Referenced by deleteQuestionpool().
ilObjQuestionPool::deleteQuestionpool | ( | ) |
Definition at line 141 of file class.ilObjQuestionPool.php.
References ilFileUtils\delDir(), deleteQuestion(), getAllQuestions(), ilFileUtils\getDataDir(), and ilObject\getId().
Referenced by delete().
ilObjQuestionPool::duplicateQuestion | ( | int | $question_id | ) |
Definition at line 248 of file class.ilObjQuestionPool.php.
References _updateQuestionCount(), appendCounterToQuestionTitleIfNecessary(), and createQuestion().
Referenced by copyQuestion().
ilObjQuestionPool::exportFileItems | ( | $target_dir, | |
& | $expLog | ||
) |
export files of file itmes
Definition at line 481 of file class.ilObjQuestionPool.php.
References IL_INST_ID, and ilFileUtils\makeDir().
Referenced by objectToXmlWriter().
ilObjQuestionPool::exportTitleAndDescription | ( | ilXmlWriter & | $a_xml_writer | ) |
Definition at line 391 of file class.ilObjQuestionPool.php.
References ilObject\getDescription(), ilObject\getTitle(), null, and ilXmlWriter\xmlElement().
Referenced by objectToXmlWriter().
ilObjQuestionPool::exportXMLMediaObjects | ( | & | $a_xml_writer, |
$a_inst, | |||
$a_target_dir, | |||
& | $expLog | ||
) |
Definition at line 457 of file class.ilObjQuestionPool.php.
References ilObjMediaObject\_exists(), ilFileUtils\createDirectory(), and IL_INST_ID.
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 412 of file class.ilObjQuestionPool.php.
References $benchmark, ilPCFileList\collectFileItems(), and ilBenchmark\start().
Referenced by objectToXmlWriter().
|
private |
ilXmlWriter | $xmlWriter |
Definition at line 316 of file class.ilObjQuestionPool.php.
References isSkillServiceEnabled(), and null.
Referenced by objectToXmlWriter().
ilObjQuestionPool::fromXML | ( | ?string | $xml_file | ) |
Definition at line 1251 of file class.ilObjQuestionPool.php.
& ilObjQuestionPool::getAllQuestionIds | ( | ) |
Definition at line 572 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and isPluginActive().
& ilObjQuestionPool::getAllQuestions | ( | ) |
Retrieve an array containing all question ids of the questionpool.
Definition at line 558 of file class.ilObjQuestionPool.php.
References 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 859 of file class.ilObjQuestionPool.php.
References createQuestion().
ilObjQuestionPool::getExportDirectory | ( | $type = '' | ) |
get export directory of questionpool
Definition at line 536 of file class.ilObjQuestionPool.php.
References ilObject\$type, ilExport\_getExportDirectory(), ilFileUtils\getDataDir(), ilObject\getId(), and ilObject\getType().
Referenced by createExportDirectory().
ilObjQuestionPool::getImportMapping | ( | ) |
get array of (two) new created questions for import id
Definition at line 611 of file class.ilObjQuestionPool.php.
ilObjQuestionPool::getPrintviewQuestions | ( | ) |
Definition at line 289 of file class.ilObjQuestionPool.php.
References ilObject\getId(), getQuestionTypeTranslations(), and isPluginActive().
ilObjQuestionPool::getQplQuestions | ( | ) |
Definition at line 999 of file class.ilObjQuestionPool.php.
References 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 829 of file class.ilObjQuestionPool.php.
ilObjQuestionPool::getQuestionList | ( | ) |
Definition at line 1158 of file class.ilObjQuestionPool.php.
References ilObject\getId().
ilObjQuestionPool::getQuestiontype | ( | $question_id | ) |
Definition at line 208 of file class.ilObjQuestionPool.php.
|
static |
Definition at line 1088 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, and null.
Referenced by ilObjQuestionPoolGUI\cleanupAfterImport(), and ilObjTestGUI\createQuestionPool().
ilObjQuestionPool::getQuestionTypes | ( | $all_tags = false , |
|
$fixOrder = false , |
|||
$withDeprecatedTypes = true |
|||
) |
Definition at line 1051 of file class.ilObjQuestionPool.php.
|
static |
Definition at line 1104 of file class.ilObjQuestionPool.php.
References $DIC, $ilDB, ilObject\$lng, ilLanguage\loadLanguageModule(), and ilLanguage\txt().
Referenced by getPrintviewQuestions().
ilObjQuestionPool::getTaxonomyIds | ( | ) |
get ids of all taxonomies corresponding to current pool
Definition at line 1223 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and ilObjTaxonomy\getUsageOfObject().
ilObjQuestionPool::isInUse | ( | int | $question_id | ) |
Definition at line 227 of file class.ilObjQuestionPool.php.
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 1189 of file class.ilObjQuestionPool.php.
References ilComponentInfo\TYPE_MODULES.
Referenced by getAllQuestionIds(), and getPrintviewQuestions().
|
static |
Definition at line 1240 of file class.ilObjQuestionPool.php.
References null.
Referenced by ilObjQuestionPoolSettingsGeneralGUI\buildForm(), ilQuestionPoolSkillAdministrationGUI\isAccessDenied(), and ilObjQuestionPoolGUI\isSkillsTabRequired().
ilObjQuestionPool::isSkillServiceEnabled | ( | ) |
Definition at line 1228 of file class.ilObjQuestionPool.php.
References $skill_service_enabled.
Referenced by cloneObject(), exportXMLSettings(), and saveToDb().
ilObjQuestionPool::loadFromDb | ( | ) |
Definition at line 164 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and setSkillServiceEnabled().
Referenced by read().
ilObjQuestionPool::modifyExportIdentifier | ( | $a_tag, | |
$a_param, | |||
$a_value | |||
) |
Definition at line 397 of file class.ilObjQuestionPool.php.
References ilUtil\insertInstIntoID().
ilObjQuestionPool::moveToClipboard | ( | int | $question_id | ) |
Moves a question to the clipboard.
integer | $question_id | Object id of the question private |
Definition at line 769 of file class.ilObjQuestionPool.php.
References ilSession\get(), null, and ilSession\set().
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 329 of file class.ilObjQuestionPool.php.
References $benchmark, exportFileItems(), exportTitleAndDescription(), exportXMLMediaObjects(), exportXMLPageObjects(), exportXMLSettings(), populateQuestionSkillAssignmentsXml(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilObjQuestionPool::pasteFromClipboard | ( | ) |
Copies/Moves a question from the clipboard.
private
Definition at line 697 of file class.ilObjQuestionPool.php.
References _updateQuestionCount(), ilSession\clear(), CLIENT_WEB_DIR, copyQuestion(), ilSession\get(), ilObject\getId(), ilFileUtils\makeDirParents(), and null.
|
protected |
ilXmlWriter | $a_xml_writer | |
$questions |
Definition at line 377 of file class.ilObjQuestionPool.php.
References ilObject\getId().
Referenced by objectToXmlWriter().
ilObjQuestionPool::purgeQuestions | ( | ) |
Definition at line 1211 of file class.ilObjQuestionPool.php.
References ILIAS\Repository\user().
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 623 of file class.ilObjQuestionPool.php.
References createQuestion().
ilObjQuestionPool::read | ( | $a_force_db = false | ) |
read object data from db into object
boolean | public |
Definition at line 110 of file class.ilObjQuestionPool.php.
References loadFromDb().
ilObjQuestionPool::saveToDb | ( | ) |
Definition at line 177 of file class.ilObjQuestionPool.php.
References ilObject\getId(), and isSkillServiceEnabled().
Referenced by createReference().
ilObjQuestionPool::setSkillServiceEnabled | ( | bool | $skill_service_enabled | ) |
Definition at line 1233 of file class.ilObjQuestionPool.php.
References $skill_service_enabled.
Referenced by loadFromDb().
ilObjQuestionPool::update | ( | ) |
update object data
public
Definition at line 93 of file class.ilObjQuestionPool.php.
References ilObject\updateMetaData().
|
private |
Definition at line 36 of file class.ilObjQuestionPool.php.
Referenced by exportXMLPageObjects(), and objectToXmlWriter().
|
private |
Definition at line 35 of file class.ilObjQuestionPool.php.
|
private |
Definition at line 39 of file class.ilObjQuestionPool.php.
|
staticprivate |
Definition at line 1238 of file class.ilObjQuestionPool.php.
|
private |
Definition at line 38 of file class.ilObjQuestionPool.php.
|
private |
Definition at line 41 of file class.ilObjQuestionPool.php.
|
private |
Definition at line 40 of file class.ilObjQuestionPool.php.
Referenced by isSkillServiceEnabled(), and setSkillServiceEnabled().