ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilObjExercise. More...
Public Member Functions | |
ilObjExercise ($a_id=0, $a_call_by_reference=true) | |
Constructor public. | |
setDate ($a_hour, $a_minutes, $a_day, $a_month, $a_year) | |
getTimestamp () | |
setTimestamp ($a_timestamp) | |
setInstruction ($a_instruction) | |
getInstruction () | |
setPassMode ($a_val) | |
Set pass mode (all | nr) | |
getPassMode () | |
Get pass mode (all | nr) | |
setPassNr ($a_val) | |
Set number of assignments that must be passed to pass the exercise. | |
getPassNr () | |
Get number of assignments that must be passed to pass the exercise. | |
setShowSubmissions ($a_val) | |
Set whether submissions of learners should be shown to other learners after deadline. | |
getShowSubmissions () | |
Get whether submissions of learners should be shown to other learners after deadline. | |
checkDate () | |
deliverFile ($a_http_post_files, $a_ass_id, $user_id, $unzip=false) | |
Save submitted file of user. | |
addUploadedFile ($a_http_post_files, $unzipUploadedFile=false) | |
Upload assigment files. | |
deleteFiles ($a_files) | |
saveData () | |
cloneObject ($a_target_id, $a_copy_id=0) | |
Clone exercise (no member data) | |
deleteDeliveredFiles ($a_exc_id, $a_ass_id, $file_id_array, $user_id) | |
Deletes already delivered files. | |
deliverReturnedFiles ($user_id) | |
Delivers the returned files of an user. | |
delete () | |
delete course and all related data | |
notify ($a_event, $a_ref_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. | |
read () | |
update () | |
update object in db | |
sendAssignment ($a_exc_id, $a_ass_id, $a_members) | |
send exercise per mail to members | |
_lookupStatusTime ($exc_id, $member_id) | |
Get time when exercise has been set to solved. | |
__formatBody ($a_ass_id) | |
__formatSubject ($a_ass_title="") | |
__formatRecipients ($a_members) | |
processUploadedFile ($fileTmp, $storageMethod, $persistentErrorMessage, $a_ass_id) | |
processes errorhandling etc for uploaded archive | |
determinStatusOfUser ($a_user_id=0) | |
Determine status of user. | |
updateUserStatus ($a_user_id=0) | |
Update exercise status of user. | |
updateAllUsersStatus () | |
Update status of all users. | |
exportGradesExcel () | |
Exports grades as excel. | |
sendFeedbackFileNotification ($a_feedback_file, $a_user_id, $a_ass_id, $a_is_text_feedback=false) | |
Send feedback file notification to user. | |
isCompletionBySubmissionEnabled () | |
Checks whether completion by submission is enabled or not. | |
setCompletionBySubmission ($bool) | |
Enabled/Disable completion by submission. | |
handleSubmission ($ass_id) | |
This method is called after an user submitted one or more files. | |
addResourceObject ($a_wsp_id, $a_ass_id, $user_id, $a_text=null) | |
Add personal resource to assigment. | |
deleteResourceObject ($a_ass_id, $user_id, $a_returned_id) | |
Remove personal resource to assigment. | |
updateTextSubmission ($a_exc_id, $a_ass_id, $a_user_id, $a_text) | |
Handle text assignment submissions. | |
deleteAllDeliveredFilesOfUser ($a_user_id) | |
Delete all delivered files of user. | |
getCertificateVisibility () | |
Returns the visibility settings of the certificate. | |
setCertificateVisibility ($a_value) | |
Sets the visibility settings of the certificate. | |
saveCertificateVisibility ($a_value) | |
Saves the visibility settings of the certificate. | |
hasUserCertificate ($a_user_id) | |
Check if given user has certificate to show/download. | |
hasAddToDesktop () | |
Add to desktop after hand-in. | |
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 | |
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 | |
_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 | |
_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 | |
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. | |
createReference () | |
creates reference for object | |
countReferences () | |
count references of object | |
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 | |
applyDidacticTemplate ($a_tpl_id) | |
Apply template. | |
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 passed, each object may decide how it reacts. | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
cloneObject ($a_target_id, $a_copy_id=0, $a_omit_tree=false) | |
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. | |
_lookupCreationDate ($a_id) | |
Lookup creation date. |
Static Public Member Functions | |
static | _fixFilename ($a_filename) |
This function fixes filenames. | |
static | _fixFilenameArray ($a_array) |
Iterates an associative array and fixes all fields with the key "filename" using the _fixFilename() method. | |
static | _lookupFinishedUserExercises ($a_user_id) |
Get all exercises for user. | |
static | lookupExerciseIdForReturnedId ($a_returned_id) |
static | findUserFiles ($a_user_id, $a_filetitle) |
Check if given file was assigned. | |
Static Public Member Functions inherited from ilObject | |
static | _lookupObjIdByImportId ($a_import_id) |
static | _getAllReferences ($a_id) |
get all reference ids of object | |
static | _lookupTitle ($a_id) |
lookup object title | |
static | _getIdsForTitle ($title, $type= '', $partialmatch=false) |
static | _lookupDescription ($a_id) |
lookup object description | |
static | _lookupObjId ($a_id) |
static | setDeletedDates ($a_ref_ids) |
Set deleted date type $ilDB. | |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type | |
static | _lookupObjectId ($a_ref_id) |
lookup object id | |
static | _exists ($a_id, $a_reference=false, $a_type=null) |
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, $show_path=true) |
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. | |
static | getLongDescriptions (array $a_obj_ids) |
Get long description data. | |
static | getAllOwnedRepositoryObjects ($a_user_id) |
Get all ids of objects user owns. | |
static | hasAutoRating ($a_type, $a_ref_id) |
Check if auto rating is active for parent group/course. |
Data Fields | |
$file_obj | |
$members_obj | |
$files | |
$timestamp | |
$hour | |
$minutes | |
$day | |
$month | |
$year | |
$instruction | |
$certificate_visibility | |
Data Fields inherited from ilObject | |
const | TITLE_LENGTH = 255 |
max length of object title | |
const | DESC_LENGTH = 128 |
$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 |
Protected Attributes | |
$completion_by_submission = false |
Class ilObjExercise.
Definition at line 19 of file class.ilObjExercise.php.
ilObjExercise::__formatBody | ( | $a_ass_id | ) |
Definition at line 532 of file class.ilObjExercise.php.
References ilObject\$lng, ilFormat\formatDate(), and ilObject\getType().
Referenced by sendAssignment().
ilObjExercise::__formatRecipients | ( | $a_members | ) |
Definition at line 574 of file class.ilObjExercise.php.
References ilObjectFactory\getInstanceByObjId().
Referenced by sendAssignment().
ilObjExercise::__formatSubject | ( | $a_ass_title = "" | ) |
Definition at line 562 of file class.ilObjExercise.php.
References ilObject\getTitle().
Referenced by sendAssignment().
|
static |
This function fixes filenames.
Prior to ILIAS 3.10.0 filenames have been stored with full path in exc_returned.filename, e.g. /opt/ilias/my_client/exercise/547/157/20070813113926_README.doc
Problems occur, if the server is moved from one location to another. We do the following: The filename will be parsed and if it contains the string "/exercise/" we truncate everything before "/exercise/" and replace it with the current CLIENT_DATA_DIR.
Definition at line 650 of file class.ilObjExercise.php.
Referenced by _fixFilenameArray().
|
static |
Iterates an associative array and fixes all fields with the key "filename" using the _fixFilename() method.
Definition at line 664 of file class.ilObjExercise.php.
References _fixFilename().
|
static |
Get all exercises for user.
<type> | $a_user_id |
Definition at line 1033 of file class.ilObjExercise.php.
Referenced by ilExerciseVerificationTableGUI\getItems().
ilObjExercise::_lookupStatusTime | ( | $exc_id, | |
$member_id | |||
) |
Get time when exercise has been set to solved.
Definition at line 514 of file class.ilObjExercise.php.
References $ilDB, ilObject\$lng, and ilUtil\getMySQLTimestamp().
ilObjExercise::addResourceObject | ( | $a_wsp_id, | |
$a_ass_id, | |||
$user_id, | |||
$a_text = null |
|||
) |
Add personal resource to assigment.
int | $a_wsp_id | |
int | $a_ass_id | |
int | $user_id | |
string | $a_text |
Definition at line 1058 of file class.ilObjExercise.php.
References $ilDB, $query, ilExerciseMembers\_writeReturned(), ilObject\getId(), ilUtil\now(), and ilExAssignment\updateStatusReturnedForUser().
Referenced by updateTextSubmission().
ilObjExercise::addUploadedFile | ( | $a_http_post_files, | |
$unzipUploadedFile = false |
|||
) |
Upload assigment files.
Definition at line 217 of file class.ilObjExercise.php.
References ilObject\$lng, and processUploadedFile().
ilObjExercise::checkDate | ( | ) |
Definition at line 151 of file class.ilObjExercise.php.
ilObjExercise::cloneObject | ( | $a_target_id, | |
$a_copy_id = 0 |
|||
) |
Clone exercise (no member data)
public
int | target ref_id |
int | copy id |
Definition at line 270 of file class.ilObjExercise.php.
References $ilDB, ilExAssignment\cloneAssignmentsOfExercise(), ilObject\getId(), getInstruction(), getPassMode(), getPassNr(), getShowSubmissions(), getTimestamp(), and isCompletionBySubmissionEnabled().
ilObjExercise::delete | ( | ) |
delete course and all related data
public
Reimplemented from ilObject.
Definition at line 343 of file class.ilObjExercise.php.
References $ilDB, ilObject\getId(), ilNotification\removeForObject(), and ilNotification\TYPE_EXERCISE_SUBMISSION.
ilObjExercise::deleteAllDeliveredFilesOfUser | ( | $a_user_id | ) |
Delete all delivered files of user.
int | $a_user_id | user id |
Definition at line 1169 of file class.ilObjExercise.php.
References ilObject\getId().
ilObjExercise::deleteDeliveredFiles | ( | $a_exc_id, | |
$a_ass_id, | |||
$file_id_array, | |||
$user_id | |||
) |
Deletes already delivered files.
array | $file_id_array | An array containing database ids of the delivered files |
numeric | $user_id | The database id of the user public |
Definition at line 306 of file class.ilObjExercise.php.
References ilExAssignment\getDeliveredFiles(), ilExAssignment\getTeamMembersByAssignmentId(), and ilExAssignment\updateStatusReturnedForUser().
Referenced by updateTextSubmission().
ilObjExercise::deleteFiles | ( | $a_files | ) |
Definition at line 234 of file class.ilObjExercise.php.
ilObjExercise::deleteResourceObject | ( | $a_ass_id, | |
$user_id, | |||
$a_returned_id | |||
) |
Remove personal resource to assigment.
int | $a_ass_id | |
int | $user_id | |
int | $a_returned_id |
Definition at line 1093 of file class.ilObjExercise.php.
References $ilDB.
ilObjExercise::deliverFile | ( | $a_http_post_files, | |
$a_ass_id, | |||
$user_id, | |||
$unzip = false |
|||
) |
Save submitted file of user.
Definition at line 164 of file class.ilObjExercise.php.
References $ilDB, $query, ilExerciseMembers\_writeReturned(), ilObject\getId(), ilExAssignment\getTeamIdByAssignment(), ilExAssignment\getTeamMembersByAssignmentId(), ilUtil\now(), ilExAssignment\TEAM_LOG_ADD_FILE, ilExAssignment\updateStatusReturnedForUser(), and ilExAssignment\writeTeamLog().
Referenced by exportGradesExcel().
ilObjExercise::deliverReturnedFiles | ( | $user_id | ) |
Delivers the returned files of an user.
numeric | $user_id | The database id of the user public |
Definition at line 332 of file class.ilObjExercise.php.
ilObjExercise::determinStatusOfUser | ( | $a_user_id = 0 | ) |
Determine status of user.
Definition at line 683 of file class.ilObjExercise.php.
References $ilUser, $ret, ilExAssignment\getAssignmentDataOfExercise(), ilObject\getId(), getPassMode(), getPassNr(), and ilExAssignment\lookupStatusOfUser().
Referenced by updateUserStatus().
ilObjExercise::exportGradesExcel | ( | ) |
Exports grades as excel.
Definition at line 807 of file class.ilObjExercise.php.
References $d, ilExcelUtils\_convert_text(), ilLPMarks\_lookupMark(), ilObjUser\_lookupName(), ilExerciseMembers\_lookupStatus(), deliverFile(), ilUtil\getASCIIFilename(), ilExAssignment\getAssignmentDataOfExercise(), ilObject\getId(), ilObject\getTitle(), ilUtil\ilTempnam(), ilExAssignment\lookupMarkOfUser(), ilExAssignment\lookupStatusOfUser(), and ilUtil\sortArray().
|
static |
Check if given file was assigned.
int | $a_user_id | |
string | $a_filetitle |
Definition at line 1181 of file class.ilObjExercise.php.
References $ilDB, $res, and $row.
Referenced by ilObjBlogGUI\render(), and ilObjPortfolioBaseGUI\view().
ilObjExercise::getCertificateVisibility | ( | ) |
Returns the visibility settings of the certificate.
Definition at line 1203 of file class.ilObjExercise.php.
Referenced by hasUserCertificate(), and saveData().
ilObjExercise::getInstruction | ( | ) |
Definition at line 80 of file class.ilObjExercise.php.
References $instruction.
Referenced by cloneObject(), saveData(), and update().
ilObjExercise::getPassMode | ( | ) |
Get pass mode (all | nr)
Definition at line 100 of file class.ilObjExercise.php.
Referenced by cloneObject(), determinStatusOfUser(), saveData(), and update().
ilObjExercise::getPassNr | ( | ) |
Get number of assignments that must be passed to pass the exercise.
Definition at line 120 of file class.ilObjExercise.php.
Referenced by cloneObject(), determinStatusOfUser(), saveData(), and update().
ilObjExercise::getShowSubmissions | ( | ) |
Get whether submissions of learners should be shown to other learners after deadline.
Definition at line 140 of file class.ilObjExercise.php.
Referenced by cloneObject(), saveData(), and update().
ilObjExercise::getTimestamp | ( | ) |
Definition at line 68 of file class.ilObjExercise.php.
References $timestamp.
Referenced by cloneObject(), saveData(), and update().
ilObjExercise::handleSubmission | ( | $ass_id | ) |
This method is called after an user submitted one or more files.
It should handle the setting "Completion by Submission" and, if enabled, set the status of the current user to either 'passed' or 'notgraded'.
integer | public |
Definition at line 989 of file class.ilObjExercise.php.
References $ilDB, $ilUser, $res, ilExAssignment\getTeamMembersByAssignmentId(), isCompletionBySubmissionEnabled(), and ilExAssignment\updateStatusOfUser().
ilObjExercise::hasAddToDesktop | ( | ) |
ilObjExercise::hasUserCertificate | ( | $a_user_id | ) |
Check if given user has certificate to show/download.
int | $a_user_id |
Definition at line 1241 of file class.ilObjExercise.php.
References ilExerciseMembers\_lookupStatus(), getCertificateVisibility(), ilObject\getId(), ilCertificate\isActive(), and ilCertificate\isObjectActive().
ilObjExercise::ilObjExercise | ( | $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 50 of file class.ilObjExercise.php.
References ilObject\ilObject(), and setPassMode().
ilObjExercise::isCompletionBySubmissionEnabled | ( | ) |
Checks whether completion by submission is enabled or not.
Definition at line 958 of file class.ilObjExercise.php.
References $completion_by_submission.
Referenced by cloneObject(), handleSubmission(), saveData(), and update().
|
static |
Definition at line 1153 of file class.ilObjExercise.php.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
ilObjExercise::notify | ( | $a_event, | |
$a_ref_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.
public
string | event |
integer | reference id of object where the event occured |
array | passes optional paramters if required |
Definition at line 382 of file class.ilObjExercise.php.
ilObjExercise::processUploadedFile | ( | $fileTmp, | |
$storageMethod, | |||
$persistentErrorMessage, | |||
$a_ass_id | |||
) |
processes errorhandling etc for uploaded archive
string | $tmpFile | path and filename to uploaded file |
string | $storageMethod | deliverFile or storeUploadedFile |
boolean | $persistentErrorMessage | Defines whether sendInfo will be persistent or not |
Definition at line 593 of file class.ilObjExercise.php.
References $filename, $ilUser, ilObject\$lng, ilExerciseMembers\_writeReturned(), ilUtil\delDir(), ilObject\getId(), ilUtil\ilTempnam(), ilUtil\makeDir(), ilFileUtils\processZipFile(), ilFileUtils\recursive_dirscan(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilFileUtils\utf8_encode().
Referenced by addUploadedFile().
ilObjExercise::read | ( | ) |
Definition at line 389 of file class.ilObjExercise.php.
References $ilDB, $query, $res, $row, ilObject\getId(), setCertificateVisibility(), setCompletionBySubmission(), setInstruction(), setPassNr(), setShowSubmissions(), and setTimestamp().
ilObjExercise::saveCertificateVisibility | ( | $a_value | ) |
Saves the visibility settings of the certificate.
integer | $a_value | The value for the visibility settings (0 = always, 1 = only passed, 2 = never) private |
Definition at line 1225 of file class.ilObjExercise.php.
References $ilDB, and ilObject\getId().
ilObjExercise::saveData | ( | ) |
Definition at line 239 of file class.ilObjExercise.php.
References $ilDB, getCertificateVisibility(), ilObject\getId(), getInstruction(), getPassMode(), getPassNr(), getShowSubmissions(), getTimestamp(), and isCompletionBySubmissionEnabled().
ilObjExercise::sendAssignment | ( | $a_exc_id, | |
$a_ass_id, | |||
$a_members | |||
) |
send exercise per mail to members
Definition at line 464 of file class.ilObjExercise.php.
References $_SESSION, $file, $files, __formatBody(), __formatRecipients(), __formatSubject(), ilExAssignment\lookupTitle(), and ilExAssignment\updateStatusSentForUser().
ilObjExercise::sendFeedbackFileNotification | ( | $a_feedback_file, | |
$a_user_id, | |||
$a_ass_id, | |||
$a_is_text_feedback = false |
|||
) |
Send feedback file notification to user.
Definition at line 924 of file class.ilObjExercise.php.
References ilObject\$type, ilObject\getId(), ilObject\getRefId(), ilExerciseMailNotification\TYPE_FEEDBACK_FILE_ADDED, and ilExerciseMailNotification\TYPE_FEEDBACK_TEXT_ADDED.
ilObjExercise::setCertificateVisibility | ( | $a_value | ) |
Sets the visibility settings of the certificate.
integer | $a_value | The value for the visibility settings (0 = always, 1 = only passed, 2 = never) public |
Definition at line 1214 of file class.ilObjExercise.php.
Referenced by read().
ilObjExercise::setCompletionBySubmission | ( | $bool | ) |
Enabled/Disable completion by submission.
boolean |
Definition at line 972 of file class.ilObjExercise.php.
Referenced by read().
ilObjExercise::setDate | ( | $a_hour, | |
$a_minutes, | |||
$a_day, | |||
$a_month, | |||
$a_year | |||
) |
Definition at line 58 of file class.ilObjExercise.php.
ilObjExercise::setInstruction | ( | $a_instruction | ) |
Definition at line 76 of file class.ilObjExercise.php.
Referenced by read().
ilObjExercise::setPassMode | ( | $a_val | ) |
Set pass mode (all | nr)
string | pass mode |
Definition at line 90 of file class.ilObjExercise.php.
Referenced by ilObjExercise().
ilObjExercise::setPassNr | ( | $a_val | ) |
Set number of assignments that must be passed to pass the exercise.
integer | pass nr |
Definition at line 110 of file class.ilObjExercise.php.
Referenced by read().
ilObjExercise::setShowSubmissions | ( | $a_val | ) |
Set whether submissions of learners should be shown to other learners after deadline.
boolean | show submissions |
Definition at line 130 of file class.ilObjExercise.php.
Referenced by read().
ilObjExercise::setTimestamp | ( | $a_timestamp | ) |
Definition at line 72 of file class.ilObjExercise.php.
Referenced by read().
ilObjExercise::update | ( | ) |
update object in db
public
Reimplemented from ilObject.
Definition at line 421 of file class.ilObjExercise.php.
References $ilDB, ilObject\getId(), getInstruction(), getPassMode(), getPassNr(), getShowSubmissions(), getTimestamp(), isCompletionBySubmissionEnabled(), and updateAllUsersStatus().
ilObjExercise::updateAllUsersStatus | ( | ) |
Update status of all users.
Definition at line 790 of file class.ilObjExercise.php.
References updateUserStatus().
Referenced by update().
ilObjExercise::updateTextSubmission | ( | $a_exc_id, | |
$a_ass_id, | |||
$a_user_id, | |||
$a_text | |||
) |
Handle text assignment submissions.
int | $a_exc_id | |
int | $a_ass_id | |
int | $a_user_id | |
string | $a_text |
Definition at line 1113 of file class.ilObjExercise.php.
References $files, ilObject\$id, $ilDB, addResourceObject(), deleteDeliveredFiles(), ilExAssignment\getDeliveredFiles(), and ilUtil\now().
ilObjExercise::updateUserStatus | ( | $a_user_id = 0 | ) |
Update exercise status of user.
Definition at line 771 of file class.ilObjExercise.php.
References $ilUser, ilExerciseMembers\_writeStatus(), determinStatusOfUser(), and ilObject\getId().
Referenced by updateAllUsersStatus(), and ilExAssignment\updateStatusOfUser().
ilObjExercise::$certificate_visibility |
Definition at line 32 of file class.ilObjExercise.php.
|
protected |
Definition at line 42 of file class.ilObjExercise.php.
Referenced by isCompletionBySubmissionEnabled().
ilObjExercise::$day |
Definition at line 28 of file class.ilObjExercise.php.
ilObjExercise::$file_obj |
Definition at line 21 of file class.ilObjExercise.php.
ilObjExercise::$files |
Definition at line 23 of file class.ilObjExercise.php.
Referenced by sendAssignment(), and updateTextSubmission().
ilObjExercise::$hour |
Definition at line 26 of file class.ilObjExercise.php.
ilObjExercise::$instruction |
Definition at line 31 of file class.ilObjExercise.php.
Referenced by getInstruction().
ilObjExercise::$members_obj |
Definition at line 22 of file class.ilObjExercise.php.
ilObjExercise::$minutes |
Definition at line 27 of file class.ilObjExercise.php.
ilObjExercise::$month |
Definition at line 29 of file class.ilObjExercise.php.
ilObjExercise::$timestamp |
Definition at line 25 of file class.ilObjExercise.php.
Referenced by getTimestamp().
ilObjExercise::$year |
Definition at line 30 of file class.ilObjExercise.php.