Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFTSoftwareProject
MoodleDTA
Commits
047da14d
Commit
047da14d
authored
Nov 01, 2023
by
Lückemeyer
Browse files
fixed short array notation
parent
ee0c7e20
Pipeline
#8844
passed with stage
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dta.zip
View file @
047da14d
No preview for this file type
dta/lib.php
View file @
047da14d
...
...
@@ -49,9 +49,7 @@ function assignsubmission_dta_pluginfile(
require_login
(
$course
,
false
,
$cm
);
$itemid
=
(
int
)
array_shift
(
$args
);
$record
=
$DB
->
get_record
(
'assign_submission'
,
[
'id'
=>
$itemid
,
],
[
'id'
=>
$itemid
],
'userid, assignment, groupid'
,
MUST_EXIST
);
$userid
=
$record
->
userid
;
...
...
dta/locallib.php
View file @
047da14d
...
...
@@ -100,9 +100,7 @@ class assign_submission_dta extends assign_submission_plugin {
self
::
COMPONENT_NAME
,
self
::
ASSIGNSUBMISSION_DTA_FILEAREA_TEST
,
0
,
[
'subdirs'
=>
0
,
]
[
'subdirs'
=>
0
]
);
$defaultvalues
[
self
::
ASSIGNSUBMISSION_DTA_DRAFT_FILEAREA_TEST
]
=
$draftitemid
;
...
...
dta/utils/backend.php
View file @
047da14d
...
...
@@ -78,10 +78,10 @@ class DtaBackendUtils {
$url
=
$backendaddress
.
"/v1/task"
;
// Prepare params.
$params
=
array
(
$params
=
[
"taskFile"
=>
$file
,
"assignmentId"
=>
$assignment
->
get_instance
()
->
id
)
;
"assignmentId"
=>
$assignment
->
get_instance
()
->
id
,
]
;
return
self
::
post
(
$url
,
$params
);
}
...
...
dta/utils/database.php
View file @
047da14d
...
...
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
defined
(
'MOODLE_INTERNAL'
)
||
die
();
class
DbUtils
{
// Summary database table name.
...
...
@@ -38,7 +40,7 @@ class DbUtils {
$summaryrecord
=
$DB
->
get_record
(
self
::
TABLE_SUMMARY
,
[
"assignment_id"
=>
$assignmentid
,
"submission_id"
=>
$submissionid
,
}
);
]
);
$resultsarray
=
$DB
->
get_records
(
self
::
TABLE_RESULT
,
[
"assignment_id"
=>
$assignmentid
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment