Commit e4c40151 authored by Lückemeyer's avatar Lückemeyer
Browse files

fixed paths & documentation, bumped version

1 merge request!1Coding style and recommendations
Showing with 27 additions and 24 deletions
+27 -24
No preview for this file type
...@@ -48,8 +48,8 @@ class DtaBackendUtils { ...@@ -48,8 +48,8 @@ class DtaBackendUtils {
/** /**
* Sends the configuration textfile uploaded by prof to the backend. * Sends the configuration textfile uploaded by prof to the backend.
* *
* @param $assignment assignment this test-config belongs to * @param assignment $assignment assignment this test-config belongs to
* @param $file uploaded test-config * @param file $file uploaded test-config
* @return bool true if no error occurred * @return bool true if no error occurred
*/ */
public static function sendtestconfigtobackend($assignment, $file): bool { public static function sendtestconfigtobackend($assignment, $file): bool {
...@@ -78,8 +78,8 @@ class DtaBackendUtils { ...@@ -78,8 +78,8 @@ class DtaBackendUtils {
/** /**
* Sends sumbission config or archive to backend to be tested. * Sends sumbission config or archive to backend to be tested.
* *
* @param $assignment assignment this submission is done for * @param assignment $assignment assignment this submission is done for
* @param $file submission config file or archive with submission * @param file $file submission config file or archive with submission
* @return string json string with testresults or null on error * @return string json string with testresults or null on error
*/ */
public static function sendsubmissiontobackend($assignment, $file): ?string { public static function sendsubmissiontobackend($assignment, $file): ?string {
......
...@@ -88,9 +88,9 @@ class DbUtils { ...@@ -88,9 +88,9 @@ class DbUtils {
* save given result summary and single results to database * save given result summary and single results to database
* under given assignment and submission id * under given assignment and submission id
* *
* @param $assignmentid assigment this is submission is linked to * @param int $assignmentid assigment this is submission is linked to
* @param $submissionid submission of this result * @param int $submissionid submission of this result
* @param $summary instance to persist * @param DtaResultSummary $summary instance to persist
*/ */
public static function storeresultsummarytodatabase( public static function storeresultsummarytodatabase(
int $assignmentid, int $assignmentid,
......
...@@ -14,13 +14,6 @@ ...@@ -14,13 +14,6 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* provider for data privacy
*
* @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams
*/
namespace assignsubmission_dta\privacy; namespace assignsubmission_dta\privacy;
use core_privacy\local\metadata\collection; use core_privacy\local\metadata\collection;
...@@ -28,6 +21,13 @@ use core_privacy\local\request\writer; ...@@ -28,6 +21,13 @@ use core_privacy\local\request\writer;
use core_privacy\local\request\contextlist; use core_privacy\local\request\contextlist;
use mod_assign\privacy\assign_plugin_request_data; use mod_assign\privacy\assign_plugin_request_data;
/**
* provider for data privacy
*
* @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams
*/
class provider implements \core_privacy\local\metadata\provider, class provider implements \core_privacy\local\metadata\provider,
\mod_assign\privacy\assignsubmission_provider, \mod_assign\privacy\assignsubmission_provider,
\mod_assign\privacy\assignsubmission_user_provider { \mod_assign\privacy\assignsubmission_user_provider {
...@@ -37,6 +37,10 @@ class provider implements \core_privacy\local\metadata\provider, ...@@ -37,6 +37,10 @@ class provider implements \core_privacy\local\metadata\provider,
*/ */
const ASSIGNSUBMISSION_DTA_FILEAREA_SUBMISSION = "submissions_dta"; const ASSIGNSUBMISSION_DTA_FILEAREA_SUBMISSION = "submissions_dta";
/**
* This is the metadata information for the assignsubmission_dta plugin.
* @param collection $collection the collection of metadata filled by the plugin
*/
public static function get_metadata(collection $collection): collection { public static function get_metadata(collection $collection): collection {
$collection->add_subsystem_link( $collection->add_subsystem_link(
'core_files', 'core_files',
......
...@@ -31,8 +31,8 @@ class view_submission_utils { ...@@ -31,8 +31,8 @@ class view_submission_utils {
/** /**
* generates a short summary html * generates a short summary html
* *
* @param $assignmentid assignment * @param int $assignmentid id of the assignment to show
* @param $submissionid submission to create a report for * @param int $submissionid id of the submission for which to create a report
* @return string html * @return string html
*/ */
public static function generatesummaryhtml( public static function generatesummaryhtml(
...@@ -87,8 +87,8 @@ class view_submission_utils { ...@@ -87,8 +87,8 @@ class view_submission_utils {
/** /**
* generates detailed view html * generates detailed view html
* *
* @param $assignmentid assignment * @param int $assignmentid id of the assignment to show
* @param $submissionid submission to create a report for * @param int $submissionid id of the submission for which to create a report
*/ */
public static function generatedetailhtml( public static function generatedetailhtml(
int $assignmentid, int $assignmentid,
......
...@@ -92,8 +92,8 @@ class DtaResult { ...@@ -92,8 +92,8 @@ class DtaResult {
/** /**
* Returns the name of a state with the given number of display. * Returns the name of a state with the given number of display.
* @param $state number of the state * @param int $state number of the state
* @return name of state as defined * @return string name of state as defined
*/ */
public static function getstatename(int $state): string { public static function getstatename(int $state): string {
if ($state == 1) { if ($state == 1) {
...@@ -188,7 +188,6 @@ class DtaResultSummary { ...@@ -188,7 +188,6 @@ class DtaResultSummary {
return $ret; return $ret;
} }
/** /**
* Returns the number of detail results attached to the summary. * Returns the number of detail results attached to the summary.
* @return int count of occurences * @return int count of occurences
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->version = 2000000; $plugin->version = 3000000;
$plugin->requires = 2019111800; // Moodle 3.8. $plugin->requires = 2020061525; // Moodle 3.9 LTS
$plugin->component = 'assignsubmission_dta'; $plugin->component = 'assignsubmission_dta';
$plugin->maturity = MATURITY_STABLE; $plugin->maturity = MATURITY_STABLE;
$plugin->release = "2.0.0"; $plugin->release = "3.0.0";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment