| @@ 5505-5520 (lines=16) @@ | ||
| 5502 | $courseInfo = api_get_course_info_by_id($courseId); |
|
| 5503 | ||
| 5504 | $forumList = array(); |
|
| 5505 | if (!empty($items)) { |
|
| 5506 | foreach ($items as $forum) { |
|
| 5507 | $forumInfo = get_forums( |
|
| 5508 | $forum['ref'], |
|
| 5509 | $courseInfo['code'], |
|
| 5510 | true, |
|
| 5511 | $sessionId |
|
| 5512 | ); |
|
| 5513 | ||
| 5514 | $forumList[] = array( |
|
| 5515 | $forumInfo['forum_title'], |
|
| 5516 | api_get_local_time($forum['insert_date']), |
|
| 5517 | api_get_local_time($forum['lastedit_date']), |
|
| 5518 | ); |
|
| 5519 | } |
|
| 5520 | } |
|
| 5521 | ||
| 5522 | return $forumList; |
|
| 5523 | } |
|
| @@ 5078-5092 (lines=15) @@ | ||
| 5075 | ); |
|
| 5076 | ||
| 5077 | $forumList = array(); |
|
| 5078 | if (!empty($items)) { |
|
| 5079 | foreach ($items as $forum) { |
|
| 5080 | $item = get_work_data_by_id( |
|
| 5081 | $forum['ref'], |
|
| 5082 | $courseId, |
|
| 5083 | $sessionId |
|
| 5084 | ); |
|
| 5085 | ||
| 5086 | $forumList[] = array( |
|
| 5087 | $item['title'], |
|
| 5088 | api_get_local_time($forum['insert_date']), |
|
| 5089 | api_get_local_time($forum['lastedit_date']) |
|
| 5090 | ); |
|
| 5091 | } |
|
| 5092 | } |
|
| 5093 | ||
| 5094 | return $forumList; |
|
| 5095 | } |
|