Ver código fonte

Minor adding docs

Julio Montoya 11 anos atrás
pai
commit
bdaf478306

+ 9 - 0
main/inc/lib/course.lib.php

@@ -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)
     {
 

+ 9 - 0
main/inc/lib/database.lib.php

@@ -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;
 

+ 9 - 10
main/inc/lib/page.lib.php

@@ -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)) {

+ 1 - 1
src/ChamiloLMS/Component/Auth/LoginListener.php

@@ -25,4 +25,4 @@ class LoginListener
         $session = $event->getRequest()->getSession();
         //$session->remove('partThatShouldNotCarryOver');
     }
-}
+}