| @@ 5041-5055 (lines=15) @@ | ||
| 5038 | ); |
|
| 5039 | ||
| 5040 | $forumList = array(); |
|
| 5041 | if (!empty($items)) { |
|
| 5042 | foreach ($items as $forum) { |
|
| 5043 | $item = get_work_data_by_id( |
|
| 5044 | $forum['ref'], |
|
| 5045 | $courseId, |
|
| 5046 | $sessionId |
|
| 5047 | ); |
|
| 5048 | ||
| 5049 | $forumList[] = array( |
|
| 5050 | $item['title'], |
|
| 5051 | api_get_local_time($forum['insert_date']), |
|
| 5052 | api_get_local_time($forum['lastedit_date']) |
|
| 5053 | ); |
|
| 5054 | } |
|
| 5055 | } |
|
| 5056 | ||
| 5057 | return $forumList; |
|
| 5058 | } |
|
| @@ 5654-5669 (lines=16) @@ | ||
| 5651 | $courseInfo = api_get_course_info_by_id($courseId); |
|
| 5652 | ||
| 5653 | $forumList = array(); |
|
| 5654 | if (!empty($items)) { |
|
| 5655 | foreach ($items as $forum) { |
|
| 5656 | $forumInfo = get_forums( |
|
| 5657 | $forum['ref'], |
|
| 5658 | $courseInfo['code'], |
|
| 5659 | true, |
|
| 5660 | $sessionId |
|
| 5661 | ); |
|
| 5662 | ||
| 5663 | $forumList[] = array( |
|
| 5664 | $forumInfo['forum_title'], |
|
| 5665 | api_get_local_time($forum['insert_date']), |
|
| 5666 | api_get_local_time($forum['lastedit_date']), |
|
| 5667 | ); |
|
| 5668 | } |
|
| 5669 | } |
|
| 5670 | ||
| 5671 | return $forumList; |
|
| 5672 | } |
|