Minor - Add PHPDoc and format code - refs BT#9087

1.10.x
Angel Fernando Quiroz Campos 11 years ago
parent 8b83929ec1
commit 6d76ad0003
  1. 9
      main/inc/lib/sessionmanager.lib.php

@ -5361,6 +5361,15 @@ class SessionManager
return '00:00:00';
}
/**
* Calc the expended time (hh::mm:ss) by a user in a course
* @param int $userId The user id
* @param string $courseCode The course id
* @param int $sessionId Optional. The session id
* @param string $from Optional. From date
* @param string $until Optional. Until date
* @return string The time
*/
public static function getUserTimeInCourse($userId, $courseCode, $sessionId = 0, $from = '', $until = '')
{
$userId = intval($userId);

Loading…
Cancel
Save