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
e1c80995
Commit
e1c80995
authored
Nov 13, 2023
by
Lückemeyer
Browse files
adjusted comments and lines
parent
2bb60caf
Pipeline
#8896
passed with stage
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dta.zip
View file @
e1c80995
No preview for this file type
dta/models/DtaResult.php
View file @
e1c80995
...
...
@@ -14,6 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* entity classes for DTA submission plugin result summary and test results
*
* @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
/**
...
...
@@ -85,6 +92,7 @@ class DtaResult {
/**
* Returns the name of a state with the given number of display.
* @param $state number of the state
* @return name of state as defined
*/
public
static
function
getstatename
(
int
$state
):
string
{
...
...
dta/utils/backend.php
View file @
e1c80995
...
...
@@ -21,14 +21,14 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams
*/
/**
* backend webservice contact utility class
*
* @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams
*/
*/
class
DtaBackendUtils
{
/**
...
...
dta/utils/database.php
View file @
e1c80995
...
...
@@ -20,7 +20,7 @@
* @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams
*/
*/
class
DbUtils
{
/**
...
...
dta/utils/view.php
View file @
e1c80995
...
...
@@ -74,7 +74,7 @@ class view_submission_utils {
$comp
=
$overallcompetencies
[
$index
];
// If the competency was actually assessed by the assignment and tests, add a summary entry.
if
(
$shown
!=
"0"
)
{
$tmp
.
=
get_string
(
"comp"
.
$index
,
self
::
COMPONENT_NAME
)
.
$tmp
.
=
get_string
(
"comp"
.
$index
,
self
::
COMPONENT_NAME
)
.
" "
.
100
*
floatval
(
$shown
)
/
floatval
(
$comp
)
.
"% "
.
"<br />"
;
}
}
...
...
@@ -237,7 +237,7 @@ class view_submission_utils {
$comp
=
$overallcompetencies
[
$index
];
$shown
=
$showncompetencies
[
$index
];
// If the competency was actually assessed by the assignment and tests, add a row in the table.
if
(
$comp
!=
"0"
)
{
if
(
$comp
!=
"0"
)
{
// New copy of base attributes array.
$resultrowattributes
=
$tablerowattributes
;
$tmp
=
""
;
...
...
@@ -299,7 +299,7 @@ class view_submission_utils {
"td"
,
get_string
(
"unit_name"
,
self
::
COMPONENT_NAME
),
$attributes
);
$tmp
.
=
html_writer
::
tag
(
"td"
,
$r
->
classname
,
...
...
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