Commit 966396e
Phase 8 follow-up: delegate completion check through persistent layer
- Add response_record::user_has_complete_response() using record_exists_select()
- Add questionnaire::user_has_submitted() delegating to response_record
- Add questionnaire::completionsubmit() accessor
- Add manager::response_exists() instance method delegating to response_record
- Rewrite custom_completion::get_state() to use questionnaire::from_cm() and
user_has_submitted() — removes raw DB calls and lib.php require_once
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 12ff84f commit 966396e
File tree
4 files changed
+52
-17
lines changed- classes
- completion
- local
- db
- response
4 files changed
+52
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
48 | | - | |
49 | 46 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 47 | + | |
| 48 | + | |
62 | 49 | | |
63 | 50 | | |
64 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
85 | 99 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
564 | 577 | | |
565 | 578 | | |
566 | 579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
351 | 360 | | |
352 | 361 | | |
353 | 362 | | |
| |||
538 | 547 | | |
539 | 548 | | |
540 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
541 | 560 | | |
542 | 561 | | |
543 | 562 | | |
| |||
1794 | 1813 | | |
1795 | 1814 | | |
1796 | 1815 | | |
1797 | | - | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
1798 | 1819 | | |
1799 | 1820 | | |
1800 | 1821 | | |
| |||
0 commit comments