1 | <?php |
||
12 | class UpdateCommentForm extends FormModel |
||
13 | { |
||
14 | /** |
||
15 | * Constructor injects with DI container and the id to update. |
||
16 | * |
||
17 | * @param Anax\DI\DIInterface $di a service container |
||
18 | * @param integer $id to update |
||
19 | */ |
||
20 | public function __construct(DIInterface $di, $id) |
||
47 | |||
48 | |||
49 | /** |
||
50 | * Get details on item to load form with. |
||
51 | * |
||
52 | * @param integer $id get details on item with id. |
||
53 | * |
||
54 | * @return $comment |
||
|
|||
55 | */ |
||
56 | public function getItemDetails($id) |
||
63 | |||
64 | |||
65 | |||
66 | /** |
||
67 | * Callback for submit-button which should return true if it could |
||
68 | * carry out its work and false if something failed. |
||
69 | * |
||
70 | * @return boolean true if okey, false if something went wrong. |
||
71 | */ |
||
72 | public function callbackSubmit() |
||
88 | } |
||
89 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.