| @@ 5561-5576 (lines=16) @@ | ||
| 5558 | $courseInfo = api_get_course_info_by_id($courseId); |
|
| 5559 | ||
| 5560 | $forumList = array(); |
|
| 5561 | if (!empty($items)) { |
|
| 5562 | foreach ($items as $forum) { |
|
| 5563 | $forumInfo = get_forums( |
|
| 5564 | $forum['ref'], |
|
| 5565 | $courseInfo['code'], |
|
| 5566 | true, |
|
| 5567 | $sessionId |
|
| 5568 | ); |
|
| 5569 | ||
| 5570 | $forumList[] = array( |
|
| 5571 | $forumInfo['forum_title'], |
|
| 5572 | api_get_local_time($forum['insert_date']), |
|
| 5573 | api_get_local_time($forum['lastedit_date']), |
|
| 5574 | ); |
|
| 5575 | } |
|
| 5576 | } |
|
| 5577 | ||
| 5578 | return $forumList; |
|
| 5579 | } |
|
| @@ 5406-5421 (lines=16) @@ | ||
| 5403 | ); |
|
| 5404 | ||
| 5405 | $list = array(); |
|
| 5406 | if (!empty($items)) { |
|
| 5407 | foreach ($items as $work) { |
|
| 5408 | $item = get_work_data_by_id( |
|
| 5409 | $work['ref'], |
|
| 5410 | $courseId, |
|
| 5411 | $sessionId |
|
| 5412 | ); |
|
| 5413 | if (!empty($item)) { |
|
| 5414 | $list[] = array( |
|
| 5415 | $item['title'], |
|
| 5416 | api_get_local_time($work['insert_date']), |
|
| 5417 | api_get_local_time($work['lastedit_date']) |
|
| 5418 | ); |
|
| 5419 | } |
|
| 5420 | } |
|
| 5421 | } |
|
| 5422 | ||
| 5423 | return $list; |
|
| 5424 | } |
|