Skip to content

Commit

Permalink
codecleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaroWalter committed Jun 13, 2024
1 parent 0467c63 commit ba18936
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions classes/moodleoverflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ public static function get_events(): array {
return $moodleoverflowevents;
}

/**
* Builds the sql statement to get all moodleoverflow posts from the database.
*
* @param $courses
* @param $timestart
* @return array
*/
private static function get_moodleoverflowposts_from_db($courses, $timestart): array {
global $DB;
// Prepare params for sql statement.
Expand Down Expand Up @@ -138,6 +145,13 @@ private static function get_moodleoverflowposts_from_db($courses, $timestart): a
return $DB->get_records_sql($sql, $params);
}

/**
* Build the sql statement to get all other events related to moodleoverflow from the database.
* @param $courses
* @param $timestart
* @param $timeend
* @return array
*/
private static function get_other_events_from_db($courses, $timestart, $timeend): array {
global $DB;
// Prepare params for sql statement.
Expand Down
4 changes: 2 additions & 2 deletions lang/en/townsquareexpansion_moodleoverflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Townsquaresubplugin for mod_moodleoverflow';
$string['plugintitle'] = 'Moodleoverflow support for townsquare block';
$string['pluginname_help'] = 'This subplugin allows the townsquare block to show posts and events from moodleoverflow.';
$string['pluginnameadding'] = "Adding a Moodleoverflow support subplugin";
$string['pluginnameediting'] = "Editing a Moodleoverflow support subplugin";
$string['pluginnamesummary'] = "This subplugin allows the townsquare block to show posts and events from moodleoverflow.";
$string['pluginname_help'] = 'This subplugin allows the townsquare block to show posts and events from moodleoverflow.';
$string['plugintitle'] = 'Moodleoverflow support for townsquare block';

0 comments on commit ba18936

Please sign in to comment.