ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_id=0, bool $a_call_by_reference=true) | |
_enableAssessmentLogging (bool $a_enable) | |
_setLogLanguage (string $a_language) | |
_setForbiddenQuestionTypes (array $typeIds) | |
Sets the forbidden questiontypes for ILIAS. More... | |
_setManualScoring (array $type_ids) | |
Set the manual scoring settings. More... | |
getNrOfLogEntries (int $test_obj_id) | |
Returns the number of log entries for a given test id. More... | |
deleteLogEntries (array $a_array) | |
Deletes the log entries for a given array of test object IDs. More... | |
getAssessmentProcessLockMode () | |
setAssessmentProcessLockMode (string $lockMode) | |
getSkillTriggeringNumAnswersBarrier () | |
setSkillTriggeringNumAnswersBarrier (int $skillTriggeringNumAnswersBarrier) | |
setExportEssayQuestionsWithHtml (bool $value) | |
getExportEssayQuestionsWithHtml () | |
fetchScoringAdjustableTypes (array $allQuestionTypes) | |
![]() | |
__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 | getSkillTriggerAnswerNumberBarrier () |
static | _enabledAssessmentLogging () |
static | _getForbiddenQuestionTypes () |
Returns the forbidden questiontypes for ILIAS. More... | |
static | _getLogLanguage () |
static | _mananuallyScoreableQuestionTypesExists () |
Returns the fact wether manually scoreable question types exist or not. More... | |
static | _getManualScoring () |
Retrieve the manual scoring settings. More... | |
static | _getManualScoringTypes () |
Retrieve the manual scoring settings as type strings. More... | |
static | getScoringAdjustableQuestions () |
static | setScoringAdjustableQuestions (array $type_ids) |
static | getScoringAdjustmentEnabled () |
static | setScoringAdjustmentEnabled (bool $active) |
static | _addLog ( $user_id, $object_id, $logtext, $question_id=0, $original_id=0, $test_only=false, $test_ref_id=0) |
Add an assessment log entry. More... | |
static | getLog (int $ts_from, int $ts_to, int $test_id, bool $test_only=false) |
Retrieve assessment log datasets from the database. More... | |
static | _getLog (int $ts_from, int $ts_to, int $test_id, bool $test_only=false) |
Retrieve assessment log datasets from the database. More... | |
static | isAdditionalQuestionContentEditingModePageObjectEnabled () |
Returns the fact wether content editing with ilias page editor is enabled for questions or not. More... | |
static | getValidAssessmentProcessLockModes () |
![]() | |
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 | |
const | ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_DISABLED = 0 |
const | ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_ENABLED = 1 |
const | ASS_PROC_LOCK_MODE_NONE = 'none' |
const | ASS_PROC_LOCK_MODE_FILE = 'file' |
const | ASS_PROC_LOCK_MODE_DB = 'db' |
const | DEFAULT_SKL_TRIG_NUM_ANSWERS_BARRIER = 1 |
ilSetting | $setting |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
Private Member Functions | |
questionSupportsScoringAdjustment (assQuestionGUI $question_object) | |
Private Attributes | |
const | SETTINGS_KEY_SKL_TRIG_NUM_ANSWERS_BARRIER = 'ass_skl_trig_num_answ_barrier' |
Additional Inherited Members | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
![]() | |
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 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilObjAssessmentFolder
Definition at line 27 of file class.ilObjAssessmentFolder.php.
ilObjAssessmentFolder::__construct | ( | int | $a_id = 0 , |
bool | $a_call_by_reference = true |
||
) |
Definition at line 41 of file class.ilObjAssessmentFolder.php.
References ILIAS\GlobalScreen\Provider\__construct().
|
static |
Add an assessment log entry.
int | $user_id | The user id of the acting user |
int | $object_id | The database id of the modified test object |
string | $logtext | The textual description for the log entry |
int | $question_id | The database id of a modified question (optional) |
int | $original_id | The database id of the original of a modified question (optional) |
bool | $test_only | |
int | $test_ref_id |
Definition at line 230 of file class.ilObjAssessmentFolder.php.
References $DIC, $ilDB, $ilUser, and ILIAS\Repository\int().
Referenced by assQuestion\logAction(), ilObjTest\logAction(), ilTestPasswordChecker\logWrongEnteredPassword(), ASS_MarkSchema\setMarkSteps(), and ilTestPassFinishTasks\updateLearningProgressAfterPassFinishedIsWritten().
ilObjAssessmentFolder::_enableAssessmentLogging | ( | bool | $a_enable | ) |
Definition at line 58 of file class.ilObjAssessmentFolder.php.
References ilSetting\set().
|
static |
Definition at line 72 of file class.ilObjAssessmentFolder.php.
References ilSetting\get().
Referenced by assQuestion\_setReachedPoints(), ilObjTest\addExtraTime(), ilTestOutputGUI\adoptUserSolutionsFromPreviousPass(), assQuestion\calculateResultsFromSolution(), ilObjTest\checkMaximumAllowedUsers(), ilObjTest\createQuestionGUI(), ilTestPlayerAbstractGUI\getQuestionInstance(), ilObjTest\insertQuestion(), assQuestion\instantiateQuestionGUI(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), assQuestion\log(), ilTestPasswordChecker\logWrongEnteredPassword(), ilObjTest\questionMoveDown(), ilObjTest\questionMoveUp(), ilTestEvaluationGUI\redirectToPassDeletionContext(), ilObjTest\removeQuestion(), ilObjTest\removeTestResultsByActiveIds(), ilObjTest\saveManualFeedback(), ilSoapTestAdministration\saveQuestion(), ilObjTest\saveQuestionsToDb(), ASS_MarkSchema\saveToDb(), ilObjTest\saveToDb(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assTextSubset\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assClozeTest\saveWorkingData(), and ilObjAssessmentFolderGUI\showLogSettingsObject().
|
static |
Returns the forbidden questiontypes for ILIAS.
Definition at line 83 of file class.ilObjAssessmentFolder.php.
References ilSetting\get().
Referenced by ilObjQuestionPool\_getQuestionTypes(), and ilObjAssessmentFolderGUI\settingsObject().
|
static |
Retrieve assessment log datasets from the database.
int | $ts_from | Timestamp of the starting date/time period |
int | $ts_to | Timestamp of the ending date/time period |
integer | $test_id | Database id of the ILIAS test object |
Definition at line 336 of file class.ilObjAssessmentFolder.php.
References $DIC, $ilDB, $index, ILIAS\LTI\ToolProvider\$key, ilObject\$log, ilObject\$type, ilObject\_lookupType(), and CLIENT_ID.
Referenced by ilObjTestGUI\historyObject().
|
static |
Definition at line 114 of file class.ilObjAssessmentFolder.php.
References $lang, and ilSetting\get().
Referenced by assQuestion\_setReachedPoints(), ilObjTest\addExtraTime(), assQuestion\calculateResultsFromSolution(), ilObjTest\checkMaximumAllowedUsers(), ilTestPasswordChecker\getWrongEnteredPasswordLogMsg(), ilObjTest\insertQuestion(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), assQuestion\log(), ilObjTest\logManualFeedback(), assErrorText\logUserAction(), ilObjTest\questionMoveDown(), ilObjTest\questionMoveUp(), ilTestEvaluationGUI\redirectToPassDeletionContext(), ilObjTest\removeQuestion(), ilObjTest\removeTestResultsByActiveIds(), ilObjTest\saveQuestionsToDb(), ASS_MarkSchema\saveToDb(), ilObjTest\saveToDb(), assOrderingHorizontal\saveWorkingData(), assTextSubset\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assClozeTest\saveWorkingData(), and ilObjAssessmentFolderGUI\showLogSettingsObject().
|
static |
Retrieve the manual scoring settings.
Definition at line 139 of file class.ilObjAssessmentFolder.php.
References ilSetting\get().
Referenced by ilTestService\getManScoringQuestionGuiList(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), ilObjTest\getTestParticipantsForManualScoring(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilObjAssessmentFolderGUI\settingsObject(), and ilTestTabsManager\setupTabsGuiConfig().
|
static |
Retrieve the manual scoring settings as type strings.
Definition at line 151 of file class.ilObjAssessmentFolder.php.
References $DIC, $ilDB, and ilSetting\get().
Referenced by assQuestion\_needsManualScoring().
|
static |
Returns the fact wether manually scoreable question types exist or not.
Definition at line 130 of file class.ilObjAssessmentFolder.php.
Referenced by ilTestScoringGUI\executeCommand().
ilObjAssessmentFolder::_setForbiddenQuestionTypes | ( | array | $typeIds | ) |
Sets the forbidden questiontypes for ILIAS.
int[] | $typeIds An array containing the database ID's of the forbidden question types |
Definition at line 102 of file class.ilObjAssessmentFolder.php.
References ilSetting\set().
ilObjAssessmentFolder::_setLogLanguage | ( | string | $a_language | ) |
Definition at line 65 of file class.ilObjAssessmentFolder.php.
References ilSetting\set().
ilObjAssessmentFolder::_setManualScoring | ( | array | $type_ids | ) |
Set the manual scoring settings.
int[] | $type_ids An array containing the database ids of the question types which could be scored manually |
Definition at line 173 of file class.ilObjAssessmentFolder.php.
References ilSetting\delete(), and ilSetting\set().
ilObjAssessmentFolder::deleteLogEntries | ( | array | $a_array | ) |
Deletes the log entries for a given array of test object IDs.
int[] | $a_array An array containing the object IDs of the tests |
Definition at line 412 of file class.ilObjAssessmentFolder.php.
References $DIC, $ilDB, $ilUser, and ILIAS\Repository\lng().
ilObjAssessmentFolder::fetchScoringAdjustableTypes | ( | array | $allQuestionTypes | ) |
array<string,array{question_type_id | int, type_tag: string, plugin: int, plugin_name: string|null}> $allQuestionTypes |
ilTestQuestionPoolInvalidArgumentException |
Definition at line 494 of file class.ilObjAssessmentFolder.php.
References ilObject\$type, assQuestionGUI\_getQuestionGUI(), and questionSupportsScoringAdjustment().
ilObjAssessmentFolder::getAssessmentProcessLockMode | ( | ) |
Definition at line 444 of file class.ilObjAssessmentFolder.php.
ilObjAssessmentFolder::getExportEssayQuestionsWithHtml | ( | ) |
Definition at line 484 of file class.ilObjAssessmentFolder.php.
|
static |
Retrieve assessment log datasets from the database.
int | $ts_from | Timestamp of the starting date/time period |
int | $ts_to | Timestamp of the ending date/time period |
int | $test_id | Database id of the ILIAS test object |
Definition at line 284 of file class.ilObjAssessmentFolder.php.
References $DIC, $ilDB, $index, ILIAS\LTI\ToolProvider\$key, and ilObject\$log.
Referenced by ilObjAssessmentFolderGUI\exportLogObject(), and ilObjAssessmentFolderGUI\getLogDataOutputForm().
ilObjAssessmentFolder::getNrOfLogEntries | ( | int | $test_obj_id | ) |
Returns the number of log entries for a given test id.
int | $test_obj_id | Database id of the ILIAS test object |
Definition at line 390 of file class.ilObjAssessmentFolder.php.
|
static |
Definition at line 186 of file class.ilObjAssessmentFolder.php.
References ilSetting\get().
|
static |
Definition at line 208 of file class.ilObjAssessmentFolder.php.
References ilSetting\get().
|
static |
Definition at line 48 of file class.ilObjAssessmentFolder.php.
Referenced by ilTestInfoScreenToolbarGUI\getSkillAssignBarrierInfo(), and ilAssQuestionSkillAssignmentList\hasSkillsAssignedLowerThanBarrier().
ilObjAssessmentFolder::getSkillTriggeringNumAnswersBarrier | ( | ) |
Definition at line 466 of file class.ilObjAssessmentFolder.php.
|
static |
Definition at line 457 of file class.ilObjAssessmentFolder.php.
Referenced by ilObjAssessmentFolderGUI\saveSettingsObject().
|
static |
Returns the fact wether content editing with ilias page editor is enabled for questions or not.
Definition at line 431 of file class.ilObjAssessmentFolder.php.
References $DIC, and $ilSetting.
Referenced by ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilObjQuestionPoolGUI\createQuestionFormObject(), ilObjQuestionPoolGUI\createQuestionForTestObject(), ilObjQuestionPoolGUI\createQuestionObject(), ilObjTestGUI\createQuestionObject(), ilPCQuestionGUI\edit(), ilTestExpressPageObjectGUI\handleToolbarCommand(), and ilPCQuestionGUI\insert().
|
private |
Definition at line 509 of file class.ilObjAssessmentFolder.php.
Referenced by fetchScoringAdjustableTypes().
ilObjAssessmentFolder::setAssessmentProcessLockMode | ( | string | $lockMode | ) |
Definition at line 449 of file class.ilObjAssessmentFolder.php.
ilObjAssessmentFolder::setExportEssayQuestionsWithHtml | ( | bool | $value | ) |
Definition at line 479 of file class.ilObjAssessmentFolder.php.
|
static |
int[] | $type_ids |
Definition at line 198 of file class.ilObjAssessmentFolder.php.
References ilSetting\delete(), and ilSetting\set().
|
static |
Definition at line 214 of file class.ilObjAssessmentFolder.php.
References ilSetting\set().
ilObjAssessmentFolder::setSkillTriggeringNumAnswersBarrier | ( | int | $skillTriggeringNumAnswersBarrier | ) |
Definition at line 474 of file class.ilObjAssessmentFolder.php.
ilSetting ilObjAssessmentFolder::$setting |
Definition at line 39 of file class.ilObjAssessmentFolder.php.
const ilObjAssessmentFolder::ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_DISABLED = 0 |
Definition at line 29 of file class.ilObjAssessmentFolder.php.
Referenced by ilObjAdvancedEditingGUI\initPageEditorForm().
const ilObjAssessmentFolder::ADDITIONAL_QUESTION_CONTENT_EDITING_MODE_PAGE_OBJECT_ENABLED = 1 |
Definition at line 30 of file class.ilObjAssessmentFolder.php.
const ilObjAssessmentFolder::ASS_PROC_LOCK_MODE_DB = 'db' |
Definition at line 34 of file class.ilObjAssessmentFolder.php.
Referenced by ilTestProcessLockerFactory\getLocker(), ilAssQuestionProcessLockerFactory\getLocker(), and ilObjAssessmentFolderGUI\settingsObject().
const ilObjAssessmentFolder::ASS_PROC_LOCK_MODE_FILE = 'file' |
Definition at line 33 of file class.ilObjAssessmentFolder.php.
Referenced by ilTestProcessLockerFactory\getLocker(), ilAssQuestionProcessLockerFactory\getLocker(), and ilObjAssessmentFolderGUI\settingsObject().
const ilObjAssessmentFolder::ASS_PROC_LOCK_MODE_NONE = 'none' |
Definition at line 32 of file class.ilObjAssessmentFolder.php.
Referenced by ilTestProcessLockerFactory\getLocker(), ilAssQuestionProcessLockerFactory\getLocker(), ilTestProcessLockerFactory\getLockModeSettingValue(), ilAssQuestionProcessLockerFactory\getLockModeSettingValue(), ilObjAssessmentFolderGUI\saveSettingsObject(), and ilObjAssessmentFolderGUI\settingsObject().
const ilObjAssessmentFolder::DEFAULT_SKL_TRIG_NUM_ANSWERS_BARRIER = 1 |
Definition at line 37 of file class.ilObjAssessmentFolder.php.
Referenced by ilTestPlayerAbstractGUI\handleSkillTriggering(), and ilTestSkillEvaluationGUI\init().
|
private |
Definition at line 36 of file class.ilObjAssessmentFolder.php.