@@ 5674-5689 (lines=16) @@ | ||
5671 | $courseInfo = api_get_course_info_by_id($courseId); |
|
5672 | ||
5673 | $forumList = array(); |
|
5674 | if (!empty($items)) { |
|
5675 | foreach ($items as $forum) { |
|
5676 | $forumInfo = get_forums( |
|
5677 | $forum['ref'], |
|
5678 | $courseInfo['code'], |
|
5679 | true, |
|
5680 | $sessionId |
|
5681 | ); |
|
5682 | ||
5683 | $forumList[] = array( |
|
5684 | $forumInfo['forum_title'], |
|
5685 | api_get_local_time($forum['insert_date']), |
|
5686 | api_get_local_time($forum['lastedit_date']), |
|
5687 | ); |
|
5688 | } |
|
5689 | } |
|
5690 | ||
5691 | return $forumList; |
|
5692 | } |
@@ 5106-5120 (lines=15) @@ | ||
5103 | ); |
|
5104 | ||
5105 | $forumList = array(); |
|
5106 | if (!empty($items)) { |
|
5107 | foreach ($items as $forum) { |
|
5108 | $item = get_work_data_by_id( |
|
5109 | $forum['ref'], |
|
5110 | $courseId, |
|
5111 | $sessionId |
|
5112 | ); |
|
5113 | ||
5114 | $forumList[] = array( |
|
5115 | $item['title'], |
|
5116 | api_get_local_time($forum['insert_date']), |
|
5117 | api_get_local_time($forum['lastedit_date']) |
|
5118 | ); |
|
5119 | } |
|
5120 | } |
|
5121 | ||
5122 | return $forumList; |
|
5123 | } |