Skip to content

Commit

Permalink
Rename getExpendedTimeInCourses() to getTimeSpentInCourses() - #minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed May 27, 2015
1 parent ee1fe88 commit c7031b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions main/admin/teacher_time_report.php
Expand Up @@ -54,7 +54,7 @@
$teachers = CourseManager::get_teacher_list_from_course_code($selectedCourse);

foreach ($teachers as $teacher) {
$totalTime = UserManager::getExpendedTimeInCourses(
$totalTime = UserManager::getTimeSpentInCourses(
$teacher['user_id'],
$course['real_id'],
0,
Expand Down Expand Up @@ -87,7 +87,7 @@

if ($coaches) {
foreach ($coaches as $coach) {
$totalTime = UserManager::getExpendedTimeInCourses(
$totalTime = UserManager::getTimeSpentInCourses(
$coach['user_id'],
$course['real_id'],
$session['id'],
Expand Down Expand Up @@ -142,7 +142,7 @@

if ($coaches) {
foreach ($coaches as $coach) {
$totalTime = UserManager::getExpendedTimeInCourses(
$totalTime = UserManager::getTimeSpentInCourses(
$coach['user_id'],
$course['id'],
$selectedSession,
Expand Down Expand Up @@ -189,7 +189,7 @@
foreach ($courses as $course) {
$courseInfo = api_get_course_info_by_id($course['real_id']);

$totalTime = UserManager::getExpendedTimeInCourses(
$totalTime = UserManager::getTimeSpentInCourses(
$selectedTeacher,
$course['real_id'],
0,
Expand Down Expand Up @@ -221,7 +221,7 @@

$courseInfo = api_get_course_info_by_id($course['c_id']);

$totalTime = UserManager::getExpendedTimeInCourses(
$totalTime = UserManager::getTimeSpentInCourses(
$selectedTeacher,
$course['c_id'],
$session['id'],
Expand Down
2 changes: 1 addition & 1 deletion main/inc/lib/usermanager.lib.php
Expand Up @@ -4889,7 +4889,7 @@ public static function getUsersByOfficialCode($officialCode)
* @param string $until Optional. Until date
* @return int The time
*/
public static function getExpendedTimeInCourses($userId, $courseId, $sessionId = 0, $from = '', $until = '')
public static function getTimeSpentInCourses($userId, $courseId, $sessionId = 0, $from = '', $until = '')
{
$userId = intval($userId);
$sessionId = intval($sessionId);
Expand Down

0 comments on commit c7031b7

Please sign in to comment.