mirror of
https://github.com/LdesignMedia/moodle-availability_ipaddress.git
synced 2026-05-16 21:41:28 +02:00
Add docblocks
This commit is contained in:
@@ -47,7 +47,7 @@ class condition extends \core_availability\condition {
|
||||
/**
|
||||
* condition constructor.
|
||||
*
|
||||
* @param $structure
|
||||
* @param \stdClass $structure
|
||||
*/
|
||||
public function __construct($structure) {
|
||||
if (isset($structure->ipaddresses)) {
|
||||
@@ -152,7 +152,7 @@ class condition extends \core_availability\condition {
|
||||
/**
|
||||
* Check if ip-address is valid
|
||||
*
|
||||
* @param $ipaddresses
|
||||
* @param string $ipaddresses
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
|
||||
@@ -37,6 +37,8 @@ defined('MOODLE_INTERNAL') || die;
|
||||
class frontend extends \core_availability\frontend {
|
||||
|
||||
/**
|
||||
* get_javascript_strings
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function get_javascript_strings() {
|
||||
|
||||
@@ -7,7 +7,7 @@ YUI.add('moodle-availability_ipaddress-form', function (Y, NAME) {
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @copyright 2019-05-14 Mfreak.nl | LdesignMedia.nl - Luuk Verhoeven
|
||||
*/
|
||||
/*eslint no-console: "error"*/
|
||||
|
||||
/**
|
||||
* JavaScript for form editing grade conditions.
|
||||
*
|
||||
|
||||
@@ -7,7 +7,7 @@ YUI.add('moodle-availability_ipaddress-form', function (Y, NAME) {
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @copyright 2019-05-14 Mfreak.nl | LdesignMedia.nl - Luuk Verhoeven
|
||||
*/
|
||||
/*eslint no-console: "error"*/
|
||||
|
||||
/**
|
||||
* JavaScript for form editing grade conditions.
|
||||
*
|
||||
|
||||
2
yui/src/form/js/form.js
vendored
2
yui/src/form/js/form.js
vendored
@@ -5,7 +5,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @copyright 2019-05-14 Mfreak.nl | LdesignMedia.nl - Luuk Verhoeven
|
||||
*/
|
||||
/*eslint no-console: "error"*/
|
||||
|
||||
/**
|
||||
* JavaScript for form editing grade conditions.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user