-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @package block_quickcourselist | ||
* @author Mark Johnson <[email protected]> v2.0 | ||
* @author Onno Schuit v2.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 3.10.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 4.2.0 commissioned by Lesterhuis Training en Consultancy | ||
* @author Gemma Lesterhuis v3.10.2 commissioned by Lesterhuis Training en Consultancy | ||
* @copyright 2010 Tauntons College, UK v2.0 and Lesterhuis Training en Consultancy v2.1 and further | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later till v2.1, for other versions Freeware | ||
|
@@ -34,11 +34,11 @@ | |
* | ||
* @author Mark Johnson <[email protected]> v2.0 | ||
* @author Onno Schuit v2.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 3.10.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 4.2.0 commissioned by Lesterhuis Training en Consultancy | ||
* @author Gemma Lesterhuis v3.10.2 commissioned by Lesterhuis Training en Consultancy | ||
* @copyright 2010 Tauntons College, UK v2.0 and Lesterhuis Training en Consultancy v2.1 and further | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later till v2.1, for other versions Freeware | ||
* https://ltnc.nl/ltc-plugin-freeware-licentie | ||
* https://ltnc.nl/ltc-plugin-freeware-licentie | ||
*/ | ||
class block_quickcourselist extends block_base { | ||
|
||
|
@@ -67,7 +67,7 @@ private static function get_sql_like_fields(): string { | |
* | ||
* @return void | ||
*/ | ||
public function init() { | ||
public function init(): void { | ||
$this->content_type = BLOCK_TYPE_TEXT; | ||
$this->globalconf = get_config('block_quickcourselist'); | ||
|
||
|
@@ -104,7 +104,6 @@ public function has_config(): bool { | |
/** | ||
* Displays the form for searching courses, and the results if a search as been submitted | ||
* | ||
* @access public | ||
* @return object | ||
*/ | ||
public function get_content() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,13 @@ | |
* @package block_quickcourselist | ||
* @author Mark Johnson <[email protected]> v2.0 | ||
* @author Onno Schuit v2.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 3.10.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 4.2.0 commissioned by Lesterhuis Training en Consultancy | ||
* @author Gemma Lesterhuis v3.10.2 commissioned by Lesterhuis Training en Consultancy | ||
* @copyright 2010 Tauntons College, UK v2.0 and Lesterhuis Training en Consultancy v2.1 and further | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later till v2.1, for other versions Freeware | ||
* https://ltnc.nl/ltc-plugin-freeware-licentie | ||
*/ | ||
|
||
defined('MOODLE_INTERNAL') || die; | ||
|
||
$capabilities = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,13 @@ | |
/** | ||
* Defines lang strings for Quick Course List | ||
* | ||
* @package blocks | ||
* @package block_quickcourselist | ||
* @subpackage quickcourselist | ||
* @author Alexander Kiy <[email protected]> | ||
* @copyright 2013 University of Potsdam, GER | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
defined('MOODLE_INTERNAL') || die; | ||
|
||
$string['blockname'] = 'Kurssuche'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,13 @@ | |
* @package block_quickcourselist | ||
* @author Mark Johnson <[email protected]> v2.0 | ||
* @author Onno Schuit v2.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 3.10.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 4.2.0 commissioned by Lesterhuis Training en Consultancy | ||
* @author Gemma Lesterhuis v3.10.2 commissioned by Lesterhuis Training en Consultancy | ||
* @copyright 2010 Tauntons College, UK v2.0 and Lesterhuis Training en Consultancy v2.1 and further | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later till v2.1, for other versions Freeware | ||
* https://ltnc.nl/ltc-plugin-freeware-licentie | ||
*/ | ||
|
||
defined('MOODLE_INTERNAL') || die; | ||
|
||
$string['blockname'] = 'Quick Course List'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @package block_quickcourselist | ||
* @author Mark Johnson <[email protected]> v2.0 | ||
* @author Onno Schuit v2.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 3.10.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 4.2 commissioned by Lesterhuis Training en Consultancy | ||
* @author Gemma Lesterhuis v3.10.2 commissioned by Lesterhuis Training en Consultancy | ||
* @copyright 2010 Tauntons College, UK v2.0 and Lesterhuis Training en Consultancy v2.1 and further | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later till v2.1, for other versions Freeware | ||
|
@@ -30,7 +30,8 @@ | |
require_once('../../config.php'); | ||
defined('MOODLE_INTERNAL') || die; | ||
|
||
// TODO should be rewritten to use Moodle's external API | ||
// TODO should be rewritten to use Moodle's external API. | ||
|
||
require_login(); | ||
require_once($CFG->dirroot . '/blocks/moodleblock.class.php'); | ||
require_once($CFG->dirroot . '/blocks/quickcourselist/block_quickcourselist.php'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @package block_quickcourselist | ||
* @author Mark Johnson <[email protected]> v2.0 | ||
* @author Onno Schuit v2.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 3.10.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 4.2.0 commissioned by Lesterhuis Training en Consultancy | ||
* @author Gemma Lesterhuis v3.10.2 commissioned by Lesterhuis Training en Consultancy | ||
* @copyright 2010 Tauntons College, UK v2.0 and Lesterhuis Training en Consultancy v2.1 and further | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later till v2.1, for other versions Freeware | ||
|
@@ -29,10 +29,16 @@ | |
|
||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
global $ADMIN; | ||
|
||
if ($ADMIN->fulltree) { | ||
|
||
$settings->add( | ||
new admin_setting_heading('block_quickcourselist/displaymode', get_string('displaymode', 'block_quickcourselist'), '') | ||
new admin_setting_heading( | ||
'block_quickcourselist/displaymode', | ||
get_string('displaymode', 'block_quickcourselist'), | ||
'' | ||
) | ||
); | ||
|
||
// Possible display modes. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,17 +20,18 @@ | |
* @package block_quickcourselist | ||
* @author Mark Johnson <[email protected]> v2.0 | ||
* @author Onno Schuit v2.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 3.10.1 commissioned by Lesterhuis Training en Consultancy | ||
* @author Luuk Verhoeven v3.8 to 4.2.0 commissioned by Lesterhuis Training en Consultancy | ||
* @author Gemma Lesterhuis v3.10.2 commissioned by Lesterhuis Training en Consultancy | ||
* @copyright 2010 Tauntons College, UK v2.0 and Lesterhuis Training en Consultancy v2.1 and further | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later till v2.1, for other versions Freeware | ||
* https://ltnc.nl/ltc-plugin-freeware-licentie | ||
*/ | ||
|
||
defined('MOODLE_INTERNAL') || die; | ||
|
||
$plugin->version = 2023111600; | ||
$plugin->version = 2024030500; | ||
$plugin->requires = 2014051200; | ||
$plugin->component = 'block_quickcourselist'; | ||
$plugin->maturity = MATURITY_STABLE; | ||
$plugin->release = '4.1.2'; | ||
$plugin->supported = [39, 401]; | ||
$plugin->release = '4.2.0'; | ||
$plugin->supported = [39, 402]; |