@@ -2892,6 +2892,15 @@ class CourseManager
return $html;
}
+ /**
+ * @param int $user_id
+ * @param $filter
+ * @param bool $load_dirs
+ * @param int $getCount
+ * @param int $start
+ * @param null $maxPerPage
+ * @return null|string
+ */
static function displayCourses($user_id, $filter, $load_dirs, $getCount, $start = null, $maxPerPage = null)
{
@@ -43,6 +43,15 @@ class Database
* @param array $dbs
*/
public function __construct($db, $dbs)
+ {
+ self::setDatabase($db, $dbs);
+ }
+
+ * @param $db
+ * @param $dbs
+ public function setDatabase($db, $dbs)
self::$db = $db;
@@ -948,16 +948,15 @@ class PageController
/**
- * The most important function here, prints the session and course list (user_portal.php)
- *
- * @param int User id
- * @param string filter
- * @param int page
- * @return string HTML list of sessions and courses
- * @assert () === false
- */
-
+ * The most important function here, prints the session and course list (user_portal.php)
+ *
+ * @param int User id
+ * @param string filter
+ * @param int page
+ * @return string HTML list of sessions and courses
+ * @assert () === false
public function returnCourses($user_id, $filter, $page)
if (empty($user_id)) {
@@ -25,4 +25,4 @@ class LoginListener
$session = $event->getRequest()->getSession();
//$session->remove('partThatShouldNotCarryOver');
-}
+}