Skip to content
Snippets Groups Projects
Commit 99f1931f authored by Alexander Bias's avatar Alexander Bias
Browse files

Make codechecker happier

parent 011fa146
Branches
No related tags found
No related merge requests found
......@@ -24,32 +24,67 @@
defined('MOODLE_INTERNAL') || die();
/**
* Class block_course_overview_campus
*
* @package block_course_overview_campus
* @copyright 2013 Alexander Bias, Ulm University <alexander.bias@uni-ulm.de>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class block_course_overview_campus extends block_base {
/**
* init function
* @return void
*/
public function init() {
$this->title = get_string('pluginname', 'block_course_overview_campus');
}
/**
* specialization function
* @return void
*/
public function specialization() {
$this->title = format_string(get_config('block_course_overview_campus', 'blocktitle'));
}
/**
* applicable_formats function
* @return array
*/
public function applicable_formats() {
return array('my-index' => true, 'my' => true, 'site-index' => true);
}
/**
* has_config function
* @return bool
*/
public function has_config() {
return true;
}
/**
* instance_allow_multiple function
* @return bool
*/
public function instance_allow_multiple() {
return false;
}
/**
* instance_can_be_hidden function
* @return bool
*/
public function instance_can_be_hidden() {
return false;
}
/**
* get_content function
* @return string
*/
public function get_content() {
global $coc_config, $USER, $CFG, $DB, $PAGE, $OUTPUT;
......
......@@ -177,6 +177,7 @@ function block_course_overview_campus_course_hidden_by_anyfilter($course) {
* Get course news for courses (copied from /blocks/course_overview/locallib.php)
*
* @param array $courses courses for which course news need to be shown
* @param array $skip modules which should be skipped
* @return array html overview
*/
function block_course_overview_campus_get_overviews($courses, $skip) {
......@@ -210,7 +211,6 @@ function block_course_overview_campus_get_overviews($courses, $skip) {
/**
* Check if the configured term dates make sense
*
* @param object $coc_config The config object
* @return bool
*/
function block_course_overview_campus_check_term_config() {
......@@ -443,7 +443,7 @@ function block_course_overview_campus_remember_notshowncourses_for_local_boostco
* Unfortunately, at page load local_boostcoc can only change the nav drawer _before_ this function can store its data, thus the
* fallback when javascript is off has a lag.
*
* @param array $courses
* @param int $hiddencoursescounter
*/
function block_course_overview_campus_remember_activefilters_for_local_boostcoc($hiddencoursescounter) {
// Do only if local_boostcoc is installed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment