1 | <?php |
||
12 | class DeleteForm extends FormModel |
||
13 | { |
||
14 | /** |
||
15 | * Constructor injects with DI container. |
||
16 | * |
||
17 | * @param Anax\DI\DIInterface $di a service container |
||
18 | */ |
||
19 | public function __construct(DIInterface $di, $id) |
||
43 | |||
44 | |||
45 | |||
46 | /** |
||
47 | * Get all items as array suitable for display in select option dropdown. |
||
48 | * |
||
49 | * @return array with key value of all items. |
||
50 | */ |
||
51 | protected function getItem($id) |
||
67 | |||
68 | |||
69 | |||
70 | /** |
||
71 | * Callback for submit-button which should return true if it could |
||
72 | * carry out its work and false if something failed. |
||
73 | * |
||
74 | * @return boolean true if okey, false if something went wrong. |
||
75 | */ |
||
76 | public function callbackSubmit() |
||
84 | } |
||
85 |