code wiki / _hdl_build / nx_cms_lms.nx
nx_cms_lms.nx
buildroot/runtime/_hdl_build/nx_cms_lms.nx
about
nx_cms_lms.nx -- CMS LMS / MEMBERSHIP (sovereign courses, sequential progress, certificates). The
LearnDash/MemberPress class, made Nishi-native: enrollment gates ALL lesson access, lessons unlock
SEQUENTIALLY (drip -- lesson k is reachable only once the prior lessons are complete), progress
cannot skip ahead or double-count, and a certificate is earned only by an enrolled learner who has
completed every lesson. Pure deterministic integer logic -- no LearnDash license/cloud, the progress
ledger lives on-box (privacy-native, the exceed angle). license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_cms_lms_gate.nx
structs
| none |
consts
| none |
functions
| 10 | func lms_can_access(enrolled: i64) -> i64 { if enrolled == 1 { return 1 } return 0 } called by 1: main |
| 15 | func lms_lesson_unlocked(enrolled: i64, lesson_idx: i64, completed_count: i64) -> i64 called by 1: main |
| 23 | func lms_complete_lesson(completed_count: i64, lesson_idx: i64, total: i64) -> i64 called by 1: main |
| 30 | func lms_course_complete(completed_count: i64, total: i64) -> i64 |
| 36 | func lms_cert_eligible(enrolled: i64, completed_count: i64, total: i64) -> i64 |