| @@ 5503-5518 (lines=16) @@ | ||
| 5500 | $courseInfo = api_get_course_info_by_id($courseId); |
|
| 5501 | ||
| 5502 | $forumList = array(); |
|
| 5503 | if (!empty($items)) { |
|
| 5504 | foreach ($items as $forum) { |
|
| 5505 | $forumInfo = get_forums( |
|
| 5506 | $forum['ref'], |
|
| 5507 | $courseInfo['code'], |
|
| 5508 | true, |
|
| 5509 | $sessionId |
|
| 5510 | ); |
|
| 5511 | ||
| 5512 | $forumList[] = array( |
|
| 5513 | $forumInfo['forum_title'], |
|
| 5514 | api_get_local_time($forum['insert_date']), |
|
| 5515 | api_get_local_time($forum['lastedit_date']), |
|
| 5516 | ); |
|
| 5517 | } |
|
| 5518 | } |
|
| 5519 | ||
| 5520 | return $forumList; |
|
| 5521 | } |
|
| @@ 5290-5304 (lines=15) @@ | ||
| 5287 | ); |
|
| 5288 | ||
| 5289 | $forumList = array(); |
|
| 5290 | if (!empty($items)) { |
|
| 5291 | foreach ($items as $forum) { |
|
| 5292 | $item = get_work_data_by_id( |
|
| 5293 | $forum['ref'], |
|
| 5294 | $courseId, |
|
| 5295 | $sessionId |
|
| 5296 | ); |
|
| 5297 | ||
| 5298 | $forumList[] = array( |
|
| 5299 | $item['title'], |
|
| 5300 | api_get_local_time($forum['insert_date']), |
|
| 5301 | api_get_local_time($forum['lastedit_date']) |
|
| 5302 | ); |
|
| 5303 | } |
|
| 5304 | } |
|
| 5305 | ||
| 5306 | return $forumList; |
|
| 5307 | } |
|