@@ 5029-5043 (lines=15) @@ | ||
5026 | ); |
|
5027 | ||
5028 | $forumList = array(); |
|
5029 | if (!empty($items)) { |
|
5030 | foreach ($items as $forum) { |
|
5031 | $item = get_work_data_by_id( |
|
5032 | $forum['ref'], |
|
5033 | $courseId, |
|
5034 | $sessionId |
|
5035 | ); |
|
5036 | ||
5037 | $forumList[] = array( |
|
5038 | $item['title'], |
|
5039 | api_get_local_time($forum['insert_date']), |
|
5040 | api_get_local_time($forum['lastedit_date']) |
|
5041 | ); |
|
5042 | } |
|
5043 | } |
|
5044 | ||
5045 | return $forumList; |
|
5046 | } |
@@ 5492-5507 (lines=16) @@ | ||
5489 | $courseInfo = api_get_course_info_by_id($courseId); |
|
5490 | ||
5491 | $forumList = array(); |
|
5492 | if (!empty($items)) { |
|
5493 | foreach ($items as $forum) { |
|
5494 | $forumInfo = get_forums( |
|
5495 | $forum['ref'], |
|
5496 | $courseInfo['code'], |
|
5497 | true, |
|
5498 | $sessionId |
|
5499 | ); |
|
5500 | ||
5501 | $forumList[] = array( |
|
5502 | $forumInfo['forum_title'], |
|
5503 | api_get_local_time($forum['insert_date']), |
|
5504 | api_get_local_time($forum['lastedit_date']), |
|
5505 | ); |
|
5506 | } |
|
5507 | } |
|
5508 | ||
5509 | return $forumList; |
|
5510 | } |