ILIAS
eassessment Revision 61809
|
Class ilObjAssessmentFolder. More...
Public Member Functions | |
ilObjAssessmentFolder ($a_id=0, $a_call_by_reference=true) | |
Constructor public. | |
update () | |
update object data | |
delete () | |
delete object and all related data | |
initDefaultRoles () | |
init default roles settings | |
notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
notifys an object about an event occured Based on the event happend, each object may decide how it reacts. | |
_enableAssessmentLogging ($a_enable) | |
enable assessment logging | |
_setLogLanguage ($a_language) | |
set the log language | |
_enabledAssessmentLogging () | |
check wether assessment logging is enabled or not | |
_getForbiddenQuestionTypes () | |
Returns the forbidden questiontypes for ILIAS. | |
_setForbiddenQuestionTypes ($a_types) | |
Sets the forbidden questiontypes for ILIAS. | |
_getLogLanguage () | |
retrieve the log language for assessment logging | |
_getManualScoring () | |
Retrieve the manual scoring settings. | |
_getManualScoringTypes () | |
Retrieve the manual scoring settings as type strings. | |
_setManualScoring ($type_ids) | |
Set the manual scoring settings. | |
_addLog ($user_id, $object_id, $logtext, $question_id="", $original_id="", $test_only=FALSE, $test_ref_id=NULL) | |
Add an assessment log entry. | |
& | getLog ($ts_from, $ts_to, $test_id, $test_only=FALSE) |
Retrieve assessment log datasets from the database. | |
& | _getLog ($ts_from, $ts_to, $test_id, $test_only=FALSE) |
Retrieve assessment log datasets from the database. | |
getNrOfLogEntries ($test_obj_id) | |
Returns the number of log entries for a given test id. | |
getFullPath ($ref_id) | |
Returns the full path output of an object. | |
deleteLogEntries ($a_array) | |
Deletes the log entries for a given array of test object IDs. | |
Public Member Functions inherited from ilObject | |
ilObject ($a_id=0, $a_reference=true) | |
Constructor public. | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) | |
read ($a_force_db=false) | |
read object data from db into object | |
getId () | |
get object id public | |
setId ($a_id) | |
set object id public | |
setRefId ($a_id) | |
set reference id public | |
getRefId () | |
get reference id public | |
getType () | |
get object type public | |
setType ($a_type) | |
set object type public | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions | |
getTitle () | |
get object title public | |
getUntranslatedTitle () | |
get untranslated object title public | |
setTitle ($a_title) | |
set object title | |
getDescription () | |
get object description | |
setDescription ($a_desc) | |
set object description | |
getLongDescription () | |
get object long description (stored in object_description) | |
getImportId () | |
get import id | |
setImportId ($a_import_id) | |
set import id | |
_lookupObjIdByImportId ($a_import_id) | |
getOwner () | |
get object owner | |
getOwnerName () | |
_lookupOwnerName ($a_owner_id) | |
lookup owner name for owner id | |
setOwner ($a_owner) | |
set object owner | |
getCreateDate () | |
get create date public | |
getLastUpdateDate () | |
get last update date public | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) | |
create () | |
create | |
MDUpdateListener ($a_element) | |
Meta data update listener. | |
createMetaData () | |
create meta data entry | |
updateMetaData () | |
update meta data entry | |
deleteMetaData () | |
delete meta data entry | |
updateOwner () | |
update owner of object in db | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) | |
_lookupOwner ($a_id) | |
lookup object owner | |
_lookupDescription ($a_id) | |
lookup object description | |
_lookupLastUpdate ($a_id, $a_as_string=false) | |
lookup last update | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. | |
_setDeletedDate ($a_ref_id) | |
only called in ilTree::saveSubTree | |
_resetDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_lookupDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_writeTitle ($a_obj_id, $a_title) | |
write title to db (static) | |
_writeDescription ($a_obj_id, $a_desc) | |
write description to db (static) | |
_writeImportId ($a_obj_id, $a_import_id) | |
write import id to db (static) | |
_isInTrash ($a_ref_id) | |
checks wether object is in trash | |
_hasUntrashedReference ($a_obj_id) | |
checks wether an object has at least one reference that is not in trash | |
_lookupObjectId ($a_ref_id) | |
lookup object id | |
_getObjectsDataForType ($a_type, $a_omit_trash=false) | |
get all objects of a certain type | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? | |
setPermissions ($a_parent_ref) | |
set permissions of object | |
createReference () | |
creates reference for object | |
countReferences () | |
count references of object | |
createRoleFolder () | |
creates a local role folder | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
cloneObject ($a_target_id, $a_copy_id=0) | |
Clone object permissions, put in tree ... | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. | |
cloneMetaData ($target_obj) | |
Copy meta data. |
Data Fields | |
$setting | |
Data Fields inherited from ilObject | |
const | TITLE_LENGTH = 128 |
max length of object title | |
$ilias | |
$lng | |
$id | |
$ref_id | |
$type | |
$title | |
$untranslatedTitle | |
$desc | |
$long_desc | |
$owner | |
$create_date | |
$last_update | |
$import_id | |
$register = false | |
$referenced | |
$objectList | |
$max_title | |
$max_desc | |
$add_dots | |
$obj_data_record | |
object_data record |
Additional Inherited Members | |
Static Public Member Functions inherited from ilObject | |
static | _getAllReferences ($a_id) |
get all reference ids of object | |
static | _lookupTitle ($a_id) |
lookup object title | |
static | _getIdsForTitle ($title, $type= '', $partialmatch=false) |
static | _lookupObjId ($a_id) |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type | |
_exists ($a_id, $a_reference=false) | |
checks if an object exists in object_data | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. | |
static | _prepareCloneSelection ($a_ref_ids, $new_type) |
Prepare copy wizard object selection. | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. |
Class ilObjAssessmentFolder.
Definition at line 35 of file class.ilObjAssessmentFolder.php.
ilObjAssessmentFolder::_addLog | ( | $user_id, | |
$object_id, | |||
$logtext, | |||
$question_id = "" , |
|||
$original_id = "" , |
|||
$test_only = FALSE , |
|||
$test_ref_id = NULL |
|||
) |
Add an assessment log entry.
integer | $user_id | The user id of the acting user |
integer | $object_id | The database id of the modified test object |
string | $logtext | The textual description for the log entry |
integer | $question_id | The database id of a modified question (optional) |
integer | $original_id | The database id of the original of a modified question (optional) |
Definition at line 321 of file class.ilObjAssessmentFolder.php.
References $ilDB.
Referenced by assQuestion\_logAction(), deleteLogEntries(), ASS_MarkSchema\logAction(), assQuestion\logAction(), ilObjTest\logAction(), and ilTestNewScoring\saveQuestionAndUserResults().
ilObjAssessmentFolder::_enableAssessmentLogging | ( | $a_enable | ) |
ilObjAssessmentFolder::_enabledAssessmentLogging | ( | ) |
check wether assessment logging is enabled or not
Definition at line 202 of file class.ilObjAssessmentFolder.php.
References $setting.
Referenced by assQuestion\_setReachedPoints(), ilObjTest\addExtraTime(), assQuestion\calculateResultsFromSolution(), ilObjTest\checkMaximumAllowedUsers(), ilObjTest\insertQuestion(), assOrderingHorizontal\moveRight(), ilObjTest\questionMoveDown(), ilObjTest\questionMoveUp(), ilObjTest\removeAllTestEditings(), ilObjTest\removeQuestion(), ilObjTest\removeSelectedTestResults(), ilObjTest\removeTestResultsForUser(), ilObjTest\saveManualFeedback(), ilObjTest\saveQuestionsToDb(), ilObjTest\saveRandomQuestionCount(), ilObjTest\saveRandomQuestionpools(), ASS_MarkSchema\saveToDb(), ilObjTest\saveToDb(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assNumeric\saveWorkingData(), assTextQuestion\saveWorkingData(), assFileUpload\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextSubset\saveWorkingData(), assMultipleChoice\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assClozeTest\saveWorkingData(), and assErrorText\toggleSelection().
ilObjAssessmentFolder::_getForbiddenQuestionTypes | ( | ) |
Returns the forbidden questiontypes for ILIAS.
Definition at line 212 of file class.ilObjAssessmentFolder.php.
References $setting.
Referenced by ilObjQuestionPool\_getQuestionTypes().
& ilObjAssessmentFolder::_getLog | ( | $ts_from, | |
$ts_to, | |||
$test_id, | |||
$test_only = FALSE |
|||
) |
Retrieve assessment log datasets from the database.
string | $ts_from | Timestamp of the starting date/time period |
string | $ts_to | Timestamp of the ending date/time period |
integer | $test_id | Database id of the ILIAS test object |
Definition at line 410 of file class.ilObjAssessmentFolder.php.
References $ilDB, $log, $row, ilObject\$type, and ilObject\_lookupType().
Referenced by ilObjTestGUI\historyObject().
ilObjAssessmentFolder::_getLogLanguage | ( | ) |
retrieve the log language for assessment logging
Definition at line 247 of file class.ilObjAssessmentFolder.php.
References $lang, and $setting.
Referenced by assQuestion\_setReachedPoints(), ilObjTest\addExtraTime(), assQuestion\calculateResultsFromSolution(), ilObjTest\checkMaximumAllowedUsers(), ilObjTest\insertQuestion(), assOrderingHorizontal\moveRight(), ilObjTest\questionMoveDown(), ilObjTest\questionMoveUp(), ilObjTest\removeAllTestEditings(), ilObjTest\removeQuestion(), ilObjTest\removeSelectedTestResults(), ilObjTest\removeTestResultsForUser(), ilObjTest\saveManualFeedback(), ilObjTest\saveQuestionsToDb(), ilObjTest\saveRandomQuestionCount(), ilObjTest\saveRandomQuestionpools(), ASS_MarkSchema\saveToDb(), ilObjTest\saveToDb(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assNumeric\saveWorkingData(), assTextQuestion\saveWorkingData(), assFileUpload\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextSubset\saveWorkingData(), assMultipleChoice\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assClozeTest\saveWorkingData(), and assErrorText\toggleSelection().
ilObjAssessmentFolder::_getManualScoring | ( | ) |
Retrieve the manual scoring settings.
Definition at line 262 of file class.ilObjAssessmentFolder.php.
References $setting.
Referenced by ilTestServiceGUI\getPassListOfAnswersWithScoring(), ilObjTestGUI\getTabs(), ilObjTest\getTestParticipantsForManualScoring(), ilTestScoringGUI\manscoring(), and ilTestScoringGUI\scoringParticipants().
ilObjAssessmentFolder::_getManualScoringTypes | ( | ) |
Retrieve the manual scoring settings as type strings.
Definition at line 273 of file class.ilObjAssessmentFolder.php.
References $ilDB, $row, and $setting.
Referenced by assQuestion\_needsManualScoring().
ilObjAssessmentFolder::_setForbiddenQuestionTypes | ( | $a_types | ) |
Sets the forbidden questiontypes for ILIAS.
array | $a_types | An array containing the database ID's of the forbidden question types |
Definition at line 233 of file class.ilObjAssessmentFolder.php.
References $setting.
ilObjAssessmentFolder::_setLogLanguage | ( | $a_language | ) |
ilObjAssessmentFolder::_setManualScoring | ( | $type_ids | ) |
Set the manual scoring settings.
array | $type_ids | An array containing the database ids of the question types which could be scored manually |
Definition at line 298 of file class.ilObjAssessmentFolder.php.
References $setting.
ilObjAssessmentFolder::delete | ( | ) |
delete object and all related data
public
Reimplemented from ilObject.
Definition at line 78 of file class.ilObjAssessmentFolder.php.
ilObjAssessmentFolder::deleteLogEntries | ( | $a_array | ) |
Deletes the log entries for a given array of test object IDs.
array | $a_array | An array containing the object IDs of the tests |
Definition at line 524 of file class.ilObjAssessmentFolder.php.
References $ilDB, and _addLog().
ilObjAssessmentFolder::getFullPath | ( | $ref_id | ) |
Returns the full path output of an object.
integer | $ref_id | The reference id of the object |
Definition at line 499 of file class.ilObjAssessmentFolder.php.
References $data, ilObject\$id, $path, ilObject\$ref_id, and ilUtil\prepareFormOutput().
& ilObjAssessmentFolder::getLog | ( | $ts_from, | |
$ts_to, | |||
$test_id, | |||
$test_only = FALSE |
|||
) |
Retrieve assessment log datasets from the database.
string | $ts_from | Timestamp of the starting date/time period |
string | $ts_to | Timestamp of the ending date/time period |
integer | $test_id | Database id of the ILIAS test object |
Definition at line 353 of file class.ilObjAssessmentFolder.php.
References $ilDB, $log, and $row.
ilObjAssessmentFolder::getNrOfLogEntries | ( | $test_obj_id | ) |
Returns the number of log entries for a given test id.
integer | $test_obj_id | Database id of the ILIAS test object |
Definition at line 475 of file class.ilObjAssessmentFolder.php.
ilObjAssessmentFolder::ilObjAssessmentFolder | ( | $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 45 of file class.ilObjAssessmentFolder.php.
References ilObject\ilObject().
ilObjAssessmentFolder::initDefaultRoles | ( | ) |
init default roles settings
If your module does not require any default roles, delete this method (For an example how this method is used, look at ilObjForum)
public
Reimplemented from ilObject.
Definition at line 100 of file class.ilObjAssessmentFolder.php.
ilObjAssessmentFolder::notify | ( | $a_event, | |
$a_ref_id, | |||
$a_parent_non_rbac_id, | |||
$a_node_id, | |||
$a_params = 0 |
|||
) |
notifys an object about an event occured Based on the event happend, each object may decide how it reacts.
If you are not required to handle any events related to your module, just delete this method. (For an example how this method is used, look at ilObjGroup)
public
string | event |
integer | reference id of object where the event occured |
array | passes optional parameters if required |
Reimplemented from ilObject.
Definition at line 119 of file class.ilObjAssessmentFolder.php.
References $_GET, and ilObject\getType().
ilObjAssessmentFolder::update | ( | ) |
update object data
public
Reimplemented from ilObject.
Definition at line 59 of file class.ilObjAssessmentFolder.php.
ilObjAssessmentFolder::$setting |
Definition at line 37 of file class.ilObjAssessmentFolder.php.
Referenced by _enableAssessmentLogging(), _enabledAssessmentLogging(), _getForbiddenQuestionTypes(), _getLogLanguage(), _getManualScoring(), _getManualScoringTypes(), _setForbiddenQuestionTypes(), _setLogLanguage(), and _setManualScoring().