Initial commit: 교육 프로젝트 배포
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// 학습완료/학습중/미진행 상태를 legal_learning_data.php에서 가져와서 표시하는 헬퍼
|
||||
require_once __DIR__ . '/../../bbs/legal_learning_data.php';
|
||||
|
||||
// content_id => 상태 매핑
|
||||
$lessonStatusMap = [];
|
||||
foreach ($chapters as $chapter) {
|
||||
foreach ($chapter['lessons'] as $lesson) {
|
||||
$lessonStatusMap[$lesson['content_id']] = [
|
||||
'status' => $lesson['status'],
|
||||
'completed' => $lesson['completed'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user