Conditions | 3 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function Form() |
||
31 | { |
||
32 | $controller = UserDefinedFormController::create($this); |
||
33 | $current = Controller::curr(); |
||
34 | $controller->setRequest($current->getRequest()); |
||
35 | |||
36 | if ($current && $current->getAction() == 'finished') { |
||
37 | return $controller->renderWith(UserDefinedFormController::class .'_ReceivedFormSubmission'); |
||
38 | } |
||
39 | |||
40 | $form = $controller->Form(); |
||
41 | $form->setFormAction( |
||
42 | Controller::join_links( |
||
43 | $current->Link(), |
||
44 | 'element', |
||
45 | $this->owner->ID, |
||
46 | 'Form' |
||
47 | ) |
||
48 | ); |
||
49 | |||
50 | return $form; |
||
51 | } |
||
72 |