|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class ilObjExercise. More...
Inheritance diagram for ilObjExercise:
Collaboration diagram for ilObjExercise:Public Member Functions | |
| setId (int $a_id) | |
| setDate (int $a_hour, int $a_minutes, int $a_day, int $a_month, int $a_year) | |
| getTimestamp () | |
| setTimestamp (int $a_timestamp) | |
| setInstruction (string $a_instruction) | |
| getInstruction () | |
| setPassMode (string $a_val) | |
| getPassMode () | |
| setPassNr (int $a_val) | |
| getPassNr () | |
| setShowSubmissions (bool $a_val) | |
| getShowSubmissions () | |
| setNrMandatoryRandom (int $a_val) | |
| getNrMandatoryRandom () | |
| checkDate () | |
| hasTutorFeedbackText () | |
| hasTutorFeedbackMail () | |
| hasTutorFeedbackFile () | |
| setTutorFeedback (int $a_value) | |
| saveData () | |
| delete () | |
| read () | |
| create () | |
| update () | |
| updateUserStatus (int $a_user_id=0) | |
| Update exercise status of user. More... | |
| updateAllUsersStatus () | |
| Update status of all users. More... | |
| exportGradesExcel () | |
| Exports grades as excel. More... | |
| isCompletionBySubmissionEnabled () | |
| setCompletionBySubmission (bool $bool) | |
| processExerciseStatus (ilExAssignment $a_ass, array $a_user_ids, bool $a_has_submitted, array $a_valid_submissions=null) | |
| getCertificateVisibility () | |
| setCertificateVisibility (int $a_value) | |
| saveCertificateVisibility (int $a_value) | |
Public Member Functions inherited from ilObject | |
| 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 | _lookupFinishedUserExercises (int $a_user_id) |
| Get all finished exercises for user. More... | |
Static Public Member Functions inherited from ilObject | |
| static | _lookupObjIdByImportId (string $import_id) |
| Get (latest) object id for an import id. More... | |
| static | _lookupImportId (int $obj_id) |
| static | _lookupOwnerName (int $owner_id) |
| Lookup owner name for owner id. More... | |
| static | _getIdForImportId (string $import_id) |
| static | _getAllReferences (int $id) |
| get all reference ids for object ID More... | |
| static | _lookupTitle (int $obj_id) |
| static | lookupOfflineStatus (int $obj_id) |
| Lookup offline status using objectDataCache. More... | |
| static | _lookupOwner (int $obj_id) |
| Lookup owner user ID for object ID. More... | |
| static | _getIdsForTitle (string $title, string $type='', bool $partial_match=false) |
| static | _lookupDescription (int $obj_id) |
| static | _lookupLastUpdate (int $obj_id, bool $formatted=false) |
| static | _getLastUpdateOfObjects (array $obj_ids) |
| static | _lookupObjId (int $ref_id) |
| static | _setDeletedDate (int $ref_id, int $deleted_by) |
| static | setDeletedDates (array $ref_ids, int $user_id) |
| static | _resetDeletedDate (int $ref_id) |
| static | _lookupDeletedDate (int $ref_id) |
| static | _writeTitle (int $obj_id, string $title) |
| write title to db (static) More... | |
| static | _writeDescription (int $obj_id, string $desc) |
| write description to db (static) More... | |
| static | _writeImportId (int $obj_id, string $import_id) |
| write import id to db (static) More... | |
| static | _lookupType (int $id, bool $reference=false) |
| static | _isInTrash (int $ref_id) |
| static | _hasUntrashedReference (int $obj_id) |
| checks whether an object has at least one reference that is not in trash More... | |
| static | _lookupObjectId (int $ref_id) |
| static | _getObjectsDataForType (string $type, bool $omit_trash=false) |
| get all objects of a certain type More... | |
| static | _exists (int $id, bool $reference=false, ?string $type=null) |
| checks if an object exists in object_data More... | |
| static | _getObjectsByType (string $obj_type="", int $owner=null) |
| static | _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true) |
| Prepare copy wizard object selection. More... | |
| static | _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false) |
| Get icon for repository item. More... | |
| static | collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0) |
| Collect deletion dependencies. More... | |
| static | getDeletionDependencies (int $obj_id) |
| Get deletion dependencies. More... | |
| static | getLongDescriptions (array $obj_ids) |
| static | getAllOwnedRepositoryObjects (int $user_id) |
| static | fixMissingTitles ($type, array &$obj_title_map) |
| Try to fix missing object titles. More... | |
| static | _lookupCreationDate (int $obj_id) |
| static | _getObjectTypeIdByTitle (string $type, \ilDBInterface $ilDB=null) |
Data Fields | |
| const | TUTOR_FEEDBACK_MAIL = 1 |
| const | TUTOR_FEEDBACK_TEXT = 2 |
| const | TUTOR_FEEDBACK_FILE = 4 |
| const | PASS_MODE_NR = "nr" |
| const | PASS_MODE_ALL = "all" |
| const | PASS_MODE_RANDOM = "random" |
| ilExerciseMembers | $members_obj = null |
Data Fields inherited from ilObject | |
| const | TITLE_LENGTH = 255 |
| const | DESC_LENGTH = 128 |
| const | LONG_DESC_LENGTH = 4000 |
| const | TABLE_OBJECT_DATA = "object_data" |
| array | $objectList |
| string | $untranslatedTitle |
Protected Member Functions | |
| getTutorFeedback () | |
Protected Member Functions inherited from ilObject | |
| doMDUpdateListener (string $a_element) | |
| beforeMDUpdateListener (string $a_element) | |
| doCreateMetaData () | |
| beforeCreateMetaData () | |
| doUpdateMetaData () | |
| beforeUpdateMetaData () | |
| doDeleteMetaData () | |
| beforeDeleteMetaData () | |
| handleAutoRating () | |
| hasAutoRating () | |
Class ilObjExercise.
Definition at line 35 of file class.ilObjExercise.php.
|
static |
Get all finished exercises for user.
| int | $a_user_id |
Definition at line 777 of file class.ilObjExercise.php.
| ilObjExercise::checkDate | ( | ) |
Definition at line 186 of file class.ilObjExercise.php.
References ILIAS\Repository\int().
Here is the call graph for this function:| ilObjExercise::create | ( | ) |
Definition at line 389 of file class.ilObjExercise.php.
References $id, and ilObject\createMetaData().
Here is the call graph for this function:| ilObjExercise::delete | ( | ) |
Definition at line 319 of file class.ilObjExercise.php.
References ilObject\$app_event_handler, ilObject\$db, $ilDB, ilObject\deleteMetaData(), ilObject\getId(), ilNotification\removeForObject(), and ilNotification\TYPE_EXERCISE_SUBMISSION.
Here is the call graph for this function:| ilObjExercise::exportGradesExcel | ( | ) |
Exports grades as excel.
Definition at line 622 of file class.ilObjExercise.php.
References Vendor\Package\$d, $GLOBALS, ilLPMarks\_lookupMark(), ilObjUser\_lookupName(), ilExerciseMembers\_lookupStatus(), ilFileUtils\getASCIIFilename(), ilObject\getId(), ilExAssignment\getInstancesByExercise(), ilObject\getRefId(), ilObject\getTitle(), ILIAS\Repository\lng(), and ilArrayUtil\sortArray().
Here is the call graph for this function:| ilObjExercise::getCertificateVisibility | ( | ) |
Definition at line 799 of file class.ilObjExercise.php.
Referenced by saveData().
Here is the caller graph for this function:| ilObjExercise::getInstruction | ( | ) |
Definition at line 129 of file class.ilObjExercise.php.
References $instruction.
Referenced by saveData(), and update().
Here is the caller graph for this function:| ilObjExercise::getNrMandatoryRandom | ( | ) |
Definition at line 181 of file class.ilObjExercise.php.
References $nr_random_mand.
Referenced by saveData(), and update().
Here is the caller graph for this function:| ilObjExercise::getPassMode | ( | ) |
Definition at line 142 of file class.ilObjExercise.php.
References $pass_mode.
Referenced by saveData(), and update().
Here is the caller graph for this function:| ilObjExercise::getPassNr | ( | ) |
Definition at line 155 of file class.ilObjExercise.php.
References $pass_nr.
Referenced by saveData(), and update().
Here is the caller graph for this function:| ilObjExercise::getShowSubmissions | ( | ) |
Definition at line 168 of file class.ilObjExercise.php.
References $show_submissions.
Referenced by saveData(), and update().
Here is the caller graph for this function:| ilObjExercise::getTimestamp | ( | ) |
Definition at line 112 of file class.ilObjExercise.php.
References $timestamp.
Referenced by saveData(), and update().
Here is the caller graph for this function:
|
protected |
Definition at line 210 of file class.ilObjExercise.php.
References $tutor_feedback.
Referenced by saveData(), and update().
Here is the caller graph for this function:| ilObjExercise::hasTutorFeedbackFile | ( | ) |
Definition at line 205 of file class.ilObjExercise.php.
| ilObjExercise::hasTutorFeedbackMail | ( | ) |
Definition at line 200 of file class.ilObjExercise.php.
| ilObjExercise::hasTutorFeedbackText | ( | ) |
Definition at line 195 of file class.ilObjExercise.php.
| ilObjExercise::isCompletionBySubmissionEnabled | ( | ) |
Definition at line 724 of file class.ilObjExercise.php.
References $completion_by_submission.
Referenced by processExerciseStatus(), saveData(), and update().
Here is the caller graph for this function:| ilObjExercise::processExerciseStatus | ( | ilExAssignment | $a_ass, |
| array | $a_user_ids, | ||
| bool | $a_has_submitted, | ||
| array | $a_valid_submissions = null |
||
| ) |
| ilExcUnknownAssignmentTypeException |
Definition at line 740 of file class.ilObjExercise.php.
References ilExerciseMembers\_writeReturned(), ilObject\getId(), ilExAssignment\getMemberStatus(), and isCompletionBySubmissionEnabled().
Referenced by ilExAssTypeWikiTeam\handleNewUpload().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjExercise::read | ( | ) |
Definition at line 359 of file class.ilObjExercise.php.
References ilObject\$db, $ilDB, $res, ilObject\getId(), setCertificateVisibility(), setCompletionBySubmission(), setInstruction(), setNrMandatoryRandom(), setPassNr(), setShowSubmissions(), setTimestamp(), and setTutorFeedback().
Here is the call graph for this function:| ilObjExercise::saveCertificateVisibility | ( | int | $a_value | ) |
| int | $a_value | visibility settings (0 = always, 1 = only passed, 2 = never) |
Definition at line 815 of file class.ilObjExercise.php.
References ilObject\$db, $ilDB, and ilObject\getId().
Here is the call graph for this function:| ilObjExercise::saveData | ( | ) |
Definition at line 220 of file class.ilObjExercise.php.
References ilObject\$db, $ilDB, ilContainer\_getContainerSettings(), ilContainer\_writeContainerSetting(), CLIENT_WEB_DIR, ilExAssignment\cloneAssignmentsOfExercise(), ilObject\cloneMetaData(), getCertificateVisibility(), ilObject\getId(), ilOrgUnitGlobalSettings\getInstance(), ilExcCriteriaCatalogue\getInstancesByParentId(), getInstruction(), getNrMandatoryRandom(), getPassMode(), getPassNr(), getShowSubmissions(), getTimestamp(), getTutorFeedback(), isCompletionBySubmissionEnabled(), and ilOrgUnitObjectPositionSetting\setActive().
Here is the call graph for this function:| ilObjExercise::setCertificateVisibility | ( | int | $a_value | ) |
| int | $a_value | visibility settings (0 = always, 1 = only passed, 2 = never) |
Definition at line 807 of file class.ilObjExercise.php.
Referenced by read().
Here is the caller graph for this function:| ilObjExercise::setCompletionBySubmission | ( | bool | $bool | ) |
Definition at line 730 of file class.ilObjExercise.php.
Referenced by read().
Here is the caller graph for this function:| ilObjExercise::setDate | ( | int | $a_hour, |
| int | $a_minutes, | ||
| int | $a_day, | ||
| int | $a_month, | ||
| int | $a_year | ||
| ) |
Definition at line 97 of file class.ilObjExercise.php.
| ilObjExercise::setId | ( | int | $a_id | ) |
| ilExcUnknownAssignmentTypeException |
Definition at line 90 of file class.ilObjExercise.php.
| ilObjExercise::setInstruction | ( | string | $a_instruction | ) |
Definition at line 123 of file class.ilObjExercise.php.
Referenced by read().
Here is the caller graph for this function:| ilObjExercise::setNrMandatoryRandom | ( | int | $a_val | ) |
| int | $a_val | number of mandatory assignments in random pass mode |
Definition at line 176 of file class.ilObjExercise.php.
Referenced by read().
Here is the caller graph for this function:| ilObjExercise::setPassMode | ( | string | $a_val | ) |
| string | $a_val | (self::PASS_MODE_NR, self::PASS_MODE_ALL, self::PASS_MODE_RANDOM) |
Definition at line 137 of file class.ilObjExercise.php.
| ilObjExercise::setPassNr | ( | int | $a_val | ) |
| int | $a_val | number of assignments that must be passed to pass the exercise |
Definition at line 150 of file class.ilObjExercise.php.
Referenced by read().
Here is the caller graph for this function:| ilObjExercise::setShowSubmissions | ( | bool | $a_val | ) |
| bool | $a_val | whether submissions of learners should be shown to other learners after deadline |
Definition at line 163 of file class.ilObjExercise.php.
Referenced by read().
Here is the caller graph for this function:| ilObjExercise::setTimestamp | ( | int | $a_timestamp | ) |
Definition at line 117 of file class.ilObjExercise.php.
Referenced by read().
Here is the caller graph for this function:| ilObjExercise::setTutorFeedback | ( | int | $a_value | ) |
Definition at line 215 of file class.ilObjExercise.php.
Referenced by read().
Here is the caller graph for this function:| ilObjExercise::update | ( | ) |
| ilExcUnknownAssignmentTypeException |
Definition at line 399 of file class.ilObjExercise.php.
References Vendor\Package\$a, ilObject\$db, $GLOBALS, $ilDB, ilObject\$lng, $mandatory_manager, $user, ilDatePresentation\formatDate(), ilExAssignment\getDeadline(), ilExAssignment\getExerciseId(), ilFSStorageExercise\getFiles(), ilExAssignment\getId(), ilObject\getId(), ilObjectFactory\getInstanceByObjId(), ilExAssignment\getInstancesByExercise(), getInstruction(), ilExAssignment\getInstruction(), ilExAssignment\getMemberStatus(), getNrMandatoryRandom(), getPassMode(), getPassNr(), ilObject\getRefId(), getShowSubmissions(), getTimestamp(), ilObject\getTitle(), ilExAssignment\getTitle(), getTutorFeedback(), IL_CAL_UNIX, isCompletionBySubmissionEnabled(), ILIAS\Exercise\Assignment\Mandatory\MandatoryAssignmentsManager\isMandatoryForUser(), ilLanguage\loadLanguageModule(), ilLanguage\txt(), updateAllUsersStatus(), and ilObject\updateMetaData().
Here is the call graph for this function:| ilObjExercise::updateAllUsersStatus | ( | ) |
Update status of all users.
| ilExcUnknownAssignmentTypeException |
Definition at line 605 of file class.ilObjExercise.php.
References updateUserStatus().
Referenced by ilExAssignment\delete(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjExercise::updateUserStatus | ( | int | $a_user_id = 0 | ) |
Update exercise status of user.
| ilExcUnknownAssignmentTypeException |
Definition at line 584 of file class.ilObjExercise.php.
References $user, ilExerciseMembers\_writeStatus(), and ilObject\getId().
Referenced by ilExAssignmentMemberStatus\postUpdateStatus(), and updateAllUsersStatus().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 55 of file class.ilObjExercise.php.
|
protected |
Definition at line 58 of file class.ilObjExercise.php.
Referenced by isCompletionBySubmissionEnabled().
|
protected |
Definition at line 51 of file class.ilObjExercise.php.
|
protected |
Definition at line 46 of file class.ilObjExercise.php.
|
protected |
Definition at line 49 of file class.ilObjExercise.php.
|
protected |
Definition at line 54 of file class.ilObjExercise.php.
Referenced by getInstruction().
|
protected |
Definition at line 60 of file class.ilObjExercise.php.
Referenced by update().
| ilExerciseMembers ilObjExercise::$members_obj = null |
Definition at line 47 of file class.ilObjExercise.php.
|
protected |
Definition at line 50 of file class.ilObjExercise.php.
|
protected |
Definition at line 52 of file class.ilObjExercise.php.
|
protected |
Definition at line 57 of file class.ilObjExercise.php.
Referenced by getNrMandatoryRandom().
|
protected |
Definition at line 63 of file class.ilObjExercise.php.
Referenced by getPassMode().
|
protected |
Definition at line 61 of file class.ilObjExercise.php.
Referenced by getPassNr().
|
protected |
Definition at line 62 of file class.ilObjExercise.php.
|
protected |
Definition at line 64 of file class.ilObjExercise.php.
Referenced by getShowSubmissions().
|
protected |
Definition at line 48 of file class.ilObjExercise.php.
Referenced by getTimestamp().
|
protected |
Definition at line 56 of file class.ilObjExercise.php.
Referenced by getTutorFeedback().
|
protected |
Definition at line 45 of file class.ilObjExercise.php.
Referenced by update(), and updateUserStatus().
|
protected |
Definition at line 59 of file class.ilObjExercise.php.
|
protected |
Definition at line 53 of file class.ilObjExercise.php.
| const ilObjExercise::PASS_MODE_ALL = "all" |
Definition at line 42 of file class.ilObjExercise.php.
Referenced by ilObjExerciseGUI\getService(), and ilObjExerciseGUI\listAssignmentsObject().
| const ilObjExercise::PASS_MODE_NR = "nr" |
Definition at line 41 of file class.ilObjExercise.php.
Referenced by ilObjExerciseGUI\getService(), and ilObjExerciseGUI\listAssignmentsObject().
| const ilObjExercise::PASS_MODE_RANDOM = "random" |
Definition at line 43 of file class.ilObjExercise.php.
Referenced by ilObjExerciseGUI\getService(), ILIAS\Exercise\Assignment\Mandatory\RandomAssignmentsManager\isActivated(), ilObjExerciseGUI\listAssignmentsObject(), and ilObjExerciseGUI\updateCustom().
| const ilObjExercise::TUTOR_FEEDBACK_FILE = 4 |
Definition at line 39 of file class.ilObjExercise.php.
Referenced by ilObjExerciseGUI\getEditFormCustomValues(), and ilObjExerciseGUI\listAssignmentsObject().
| const ilObjExercise::TUTOR_FEEDBACK_MAIL = 1 |
Definition at line 37 of file class.ilObjExercise.php.
Referenced by ilObjExerciseGUI\getEditFormCustomValues(), and ilObjExerciseGUI\listAssignmentsObject().
| const ilObjExercise::TUTOR_FEEDBACK_TEXT = 2 |
Definition at line 38 of file class.ilObjExercise.php.
Referenced by ilObjExerciseGUI\getEditFormCustomValues(), and ilObjExerciseGUI\listAssignmentsObject().