This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
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
- Author
- Jesús López lopez.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
-
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
Definition at line 23 of file class.ilFSWebStorageExercise.php.
◆ __construct()
ilFSWebStorageExercise::__construct |
( |
int |
$a_container_id = 0 , |
|
|
int |
$a_ass_id = 0 |
|
) |
| |
◆ deleteUserSubmissionDirectory()
ilFSWebStorageExercise::deleteUserSubmissionDirectory |
( |
int |
$user_id | ) |
|
◆ getAssignmentFilePath()
ilFSWebStorageExercise::getAssignmentFilePath |
( |
string |
$a_file | ) |
|
◆ getFiles()
ilFSWebStorageExercise::getFiles |
( |
| ) |
|
Get assignment files.
- Exceptions
-
Definition at line 86 of file class.ilFSWebStorageExercise.php.
References ilFileSystemAbstractionStorage\$path, CLIENT_ID, ilFileSystemAbstractionStorage\getPath(), ILIAS_WEB_DIR, and ilArrayUtil\sortArray().
89 $files_order = $ass->getInstructionFilesOrder();
99 while ($file = readdir($dp)) {
100 if (!is_dir(
$path .
'/' . $file)) {
103 'size' => filesize(
$path .
'/' . $file),
104 'ctime' => filectime(
$path .
'/' . $file),
105 'fullpath' =>
$path .
'/' . $file,
106 'order' => $files_order[$file][
"order_nr"] ?? 0
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
◆ getPathPostfix()
ilFSWebStorageExercise::getPathPostfix |
( |
| ) |
|
|
protected |
◆ getPathPrefix()
ilFSWebStorageExercise::getPathPrefix |
( |
| ) |
|
|
protected |
◆ init()
ilFSWebStorageExercise::init |
( |
| ) |
|
|
protected |
Definition at line 39 of file class.ilFSWebStorageExercise.php.
References $ass_id.
42 if ($this->ass_id > 0) {
43 $this->submissions_path = $this->path .
"/subm_" .
$this->ass_id;
45 $this->log->debug(
"parent init() with ass_id =" . $this->ass_id);
49 $this->log->debug(
"no parent init() without ass_id");
◆ uploadAssignmentFiles()
ilFSWebStorageExercise::uploadAssignmentFiles |
( |
array |
$a_files | ) |
|
◆ $ass_id
int ilFSWebStorageExercise::$ass_id |
|
protected |
◆ $log
◆ $submissions_path
string ilFSWebStorageExercise::$submissions_path |
|
protected |
The documentation for this class was generated from the following file: