-
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
1 parent
10ccc24
commit 206b5ee
Showing
2 changed files
with
14 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,15 @@ | |
/** | ||
* Class definition for the Quick Course List Block | ||
* | ||
* @uses block_base | ||
* @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 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 | ||
*/ | ||
class block_quickcourselist extends block_base { | ||
|
||
|
@@ -55,6 +63,8 @@ private static function get_sql_like_fields(): string { | |
} | ||
|
||
/** | ||
* Initialise the block | ||
* | ||
* @return void | ||
*/ | ||
public function init() { | ||
|
@@ -271,6 +281,8 @@ public static function get_courses( | |
} | ||
|
||
/** | ||
* get_coursecategory | ||
* | ||
* @param int $categoryid | ||
* | ||
* @return string | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
|
||
/** | ||
* Server-side script for generating response to AJAX search request | ||
* TODO should be rewritten to use Moodle's external API | ||
* | ||
* @package block_quickcourselist | ||
* @author Mark Johnson <[email protected]> v2.0 | ||
|
@@ -31,6 +30,7 @@ | |
require_once('../../config.php'); | ||
defined('MOODLE_INTERNAL') || die; | ||
|
||
// 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'); | ||
|