Commit 8642b1b7 authored by Lückemeyer's avatar Lückemeyer
Browse files
parents 8e9e343e e69d8ecd
Pipeline #9007 passed with stage
No preview for this file type
...@@ -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;
...@@ -44,7 +37,11 @@ class provider implements \core_privacy\local\metadata\provider, ...@@ -44,7 +37,11 @@ class provider implements \core_privacy\local\metadata\provider,
*/ */
const ASSIGNSUBMISSION_DTA_FILEAREA_SUBMISSION = "submissions_dta"; const ASSIGNSUBMISSION_DTA_FILEAREA_SUBMISSION = "submissions_dta";
public static function get_metadata(collection $collection): collection { /**
* This is the metadata information for the assignsubmission_dta plugin.
* @param stdClass $collection the collection of metadata filled by the plugin
*/
public static function get_metadata(stdClass $collection): collection {
$collection->add_subsystem_link( $collection->add_subsystem_link(
'core_files', 'core_files',
[], [],
......
...@@ -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
......
...@@ -14,6 +14,14 @@ ...@@ -14,6 +14,14 @@
// 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/>.
/**
* persistence layer 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
*/
/** /**
* persistence layer utility class * persistence layer utility class
* *
......
Markdown is supported
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