|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ILIAS\Exercise\Submission\SubmissionManager:Public Member Functions | |
| __construct (InternalRepoService $repo, protected InternalDomainService $domain, protected \ilExcSubmissionStakeholder $stakeholder, protected int $ass_id) | |
| countSubmissionsOfUser (int $user_id) | |
| getSubmissionsOfUser (int $user_id, ?array $submit_ids=null, bool $only_valid=false, ?string $min_timestamp=null, bool $print_versions=false) | |
| Note: this includes submissions of other team members, if user is in a team. More... | |
| getSubmissionsOfOwners (array $user_ids) | |
| This is only suitable for types like text or single upload, where no teams are used. More... | |
| recalculateLateSubmissions () | |
| getAllAssignmentFiles () | |
| getMaxAmountOfSubmittedFiles (int $user_id=0) | |
| getUsersWithSubmission () | |
| Get all user ids, that have submitted something. More... | |
| addLocalFile (int $user_id, string $file, string $filename="") | |
| addUpload (int $user_id, UploadResult $result, string $filename="") | |
| addZipUploads (int $user_id, UploadResult $result) | |
| deliverFile (int $user_id, string $rid, string $filetitle="") | |
| copyRidToWebDir (string $rid, string $internal_file_path) | |
| deleteSubmissions (int $user_id, array $ids) | |
| Delete submissions. More... | |
| deleteAllSubmissionsOfUser (int $user_id) | |
| copySubmissionsToDir (array $user_ids, string $directory) | |
| Should be replaced by writing into a zip directly in the future. More... | |
Protected Member Functions | |
| remainingFilesAllowed (int $user_id) | |
| getAllSubmissionIdsOfUser (int $user_id) | |
| All, include print, include all from team. More... | |
| getDirectoryNameFromUserData (int $user_id) | |
| there is still a version in ilExSubmission that needs to be replaced More... | |
Protected Attributes | |
| ilExAssignmentTypeInterface | $type |
| ILIAS Exercise Team TeamManager | $team |
| ilLogger | $log |
| SubmissionRepositoryInterface | $repo |
| ilExAssignment | $assignment |
Definition at line 28 of file SubmissionManager.php.
| ILIAS\Exercise\Submission\SubmissionManager::__construct | ( | InternalRepoService | $repo, |
| protected InternalDomainService | $domain, | ||
| protected \ilExcSubmissionStakeholder | $stakeholder, | ||
| protected int | $ass_id | ||
| ) |
Definition at line 36 of file SubmissionManager.php.
References ILIAS\Exercise\Submission\Submission\$ass_id, ILIAS\Exercise\Submission\SubmissionManager\$repo, ILIAS\Exercise\InternalDomainService\assignment(), and ILIAS\Exercise\InternalDomainService\team().
Here is the call graph for this function:| ILIAS\Exercise\Submission\SubmissionManager::addLocalFile | ( | int | $user_id, |
| string | $file, | ||
| string | $filename = "" |
||
| ) |
Definition at line 205 of file SubmissionManager.php.
References $filename.
| ILIAS\Exercise\Submission\SubmissionManager::addUpload | ( | int | $user_id, |
| UploadResult | $result, | ||
| string | $filename = "" |
||
| ) |
Definition at line 254 of file SubmissionManager.php.
References $filename, and ILIAS\FileUpload\DTO\UploadResult\getName().
Here is the call graph for this function:| ILIAS\Exercise\Submission\SubmissionManager::addZipUploads | ( | int | $user_id, |
| UploadResult | $result | ||
| ) |
Definition at line 318 of file SubmissionManager.php.
| ILIAS\Exercise\Submission\SubmissionManager::copyRidToWebDir | ( | string | $rid, |
| string | $internal_file_path | ||
| ) |
Definition at line 375 of file SubmissionManager.php.
| ILIAS\Exercise\Submission\SubmissionManager::copySubmissionsToDir | ( | array | $user_ids, |
| string | $directory | ||
| ) |
Should be replaced by writing into a zip directly in the future.
Definition at line 481 of file SubmissionManager.php.
References ilObjUser\_lookupName().
Here is the call graph for this function:| ILIAS\Exercise\Submission\SubmissionManager::countSubmissionsOfUser | ( | int | $user_id | ) |
Definition at line 49 of file SubmissionManager.php.
References ILIAS\Exercise\Submission\SubmissionManager\getSubmissionsOfUser().
Here is the call graph for this function:| ILIAS\Exercise\Submission\SubmissionManager::deleteAllSubmissionsOfUser | ( | int | $user_id | ) |
Definition at line 470 of file SubmissionManager.php.
References $user_id.
| ILIAS\Exercise\Submission\SubmissionManager::deleteSubmissions | ( | int | $user_id, |
| array | $ids | ||
| ) |
Delete submissions.
Definition at line 425 of file SubmissionManager.php.
References $id, $user_id, and ilExAssignmentTeam\TEAM_LOG_REMOVE_FILE.
| ILIAS\Exercise\Submission\SubmissionManager::deliverFile | ( | int | $user_id, |
| string | $rid, | ||
| string | $filetitle = "" |
||
| ) |
Definition at line 362 of file SubmissionManager.php.
| ILIAS\Exercise\Submission\SubmissionManager::getAllAssignmentFiles | ( | ) |
ilExcUnknownAssignmentTypeException
Definition at line 170 of file SubmissionManager.php.
|
protected |
All, include print, include all from team.
Definition at line 458 of file SubmissionManager.php.
References $user_id.
|
protected |
there is still a version in ilExSubmission that needs to be replaced
Definition at line 637 of file SubmissionManager.php.
References $user_id, and ilObjUser\_lookupName().
Here is the call graph for this function:| ILIAS\Exercise\Submission\SubmissionManager::getMaxAmountOfSubmittedFiles | ( | int | $user_id = 0 | ) |
Definition at line 183 of file SubmissionManager.php.
| ILIAS\Exercise\Submission\SubmissionManager::getSubmissionsOfOwners | ( | array | $user_ids | ) |
This is only suitable for types like text or single upload, where no teams are used.
Definition at line 110 of file SubmissionManager.php.
References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, and ilExAssignment\TYPE_WIKI_TEAM.
Here is the call graph for this function:| ILIAS\Exercise\Submission\SubmissionManager::getSubmissionsOfUser | ( | int | $user_id, |
| ?array | $submit_ids = null, |
||
| bool | $only_valid = false, |
||
| ?string | $min_timestamp = null, |
||
| bool | $print_versions = false |
||
| ) |
Note: this includes submissions of other team members, if user is in a team.
Definition at line 60 of file SubmissionManager.php.
References ILIAS\Exercise\Submission\Submission\$team_id, ILIAS\Exercise\Submission\Submission\$user_id, and ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from().
Referenced by ILIAS\Exercise\Submission\SubmissionManager\countSubmissionsOfUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Exercise\Submission\SubmissionManager::getUsersWithSubmission | ( | ) |
Get all user ids, that have submitted something.
Definition at line 198 of file SubmissionManager.php.
| ILIAS\Exercise\Submission\SubmissionManager::recalculateLateSubmissions | ( | ) |
Definition at line 126 of file SubmissionManager.php.
References ILIAS\Exercise\Submission\Submission\$id, ILIAS\Exercise\Submission\Submission\$late, IL_CAL_DATETIME, and IL_CAL_UNIX.
|
protected |
Definition at line 303 of file SubmissionManager.php.
References $user_id.
|
protected |
Definition at line 34 of file SubmissionManager.php.
|
protected |
Definition at line 32 of file SubmissionManager.php.
|
protected |
Definition at line 33 of file SubmissionManager.php.
Referenced by ILIAS\Exercise\Submission\SubmissionManager\__construct().
|
protected |
Definition at line 31 of file SubmissionManager.php.
|
protected |
Definition at line 30 of file SubmissionManager.php.