Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 7096be11 authored by Francois Gannaz's avatar Francois Gannaz
Browse files

add phpdoc headers to files

parent b49c18fb
......@@ -2,6 +2,8 @@
/**
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3
* @package mod_labnbook
* @copyright 2019 Université Grenoble Alpes
*/
namespace mod_labnbook\fetch;
......
......@@ -2,6 +2,8 @@
/**
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3
* @package mod_labnbook
* @copyright 2019 Université Grenoble Alpes
*/
namespace mod_labnbook\fetch;
......
......@@ -2,6 +2,8 @@
/**
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3
* @package mod_labnbook
* @copyright 2019 Université Grenoble Alpes
*/
namespace mod_labnbook\fetch;
......
......@@ -2,6 +2,8 @@
/**
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3
* @package mod_labnbook
* @copyright 2019 Université Grenoble Alpes
*/
namespace mod_labnbook\fetch;
......
......@@ -2,6 +2,8 @@
/**
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3
* @package mod_labnbook
* @copyright 2019 Université Grenoble Alpes
*/
namespace mod_labnbook\fetch;
......
......@@ -165,6 +165,9 @@ EOJS
}
}
/**
* Hook called once the form data has been loaded into the elements.
*/
function definition_after_data() {
parent::definition_after_data();
if ($this->_form->getElementValue('update')) {
......@@ -173,6 +176,13 @@ EOJS
}
}
/**
* Stop loading the form if the current user has no LabnBook account.
*
* @global \Stdclass $COURSE
* @return null
* @throws \moodle_exception
*/
function requireLabnbookAuthentication() {
global $COURSE;
if (fetch\user::isAuthenticated()) {
......
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