| @@ 5501-5516 (lines=16) @@ | ||
| 5498 | $courseInfo = api_get_course_info_by_id($courseId); |
|
| 5499 | ||
| 5500 | $forumList = array(); |
|
| 5501 | if (!empty($items)) { |
|
| 5502 | foreach ($items as $forum) { |
|
| 5503 | $forumInfo = get_forums( |
|
| 5504 | $forum['ref'], |
|
| 5505 | $courseInfo['code'], |
|
| 5506 | true, |
|
| 5507 | $sessionId |
|
| 5508 | ); |
|
| 5509 | ||
| 5510 | $forumList[] = array( |
|
| 5511 | $forumInfo['forum_title'], |
|
| 5512 | api_get_local_time($forum['insert_date']), |
|
| 5513 | api_get_local_time($forum['lastedit_date']), |
|
| 5514 | ); |
|
| 5515 | } |
|
| 5516 | } |
|
| 5517 | ||
| 5518 | return $forumList; |
|
| 5519 | } |
|
| @@ 5056-5070 (lines=15) @@ | ||
| 5053 | ); |
|
| 5054 | ||
| 5055 | $forumList = array(); |
|
| 5056 | if (!empty($items)) { |
|
| 5057 | foreach ($items as $forum) { |
|
| 5058 | $item = get_work_data_by_id( |
|
| 5059 | $forum['ref'], |
|
| 5060 | $courseId, |
|
| 5061 | $sessionId |
|
| 5062 | ); |
|
| 5063 | ||
| 5064 | $forumList[] = array( |
|
| 5065 | $item['title'], |
|
| 5066 | api_get_local_time($forum['insert_date']), |
|
| 5067 | api_get_local_time($forum['lastedit_date']) |
|
| 5068 | ); |
|
| 5069 | } |
|
| 5070 | } |
|
| 5071 | ||
| 5072 | return $forumList; |
|
| 5073 | } |
|