1 | <?php |
||
3 | class DMSUploadField_ItemHandler extends UploadField_ItemHandler |
||
4 | { |
||
5 | private static $allowed_actions = array( |
||
|
|||
6 | 'delete', |
||
7 | 'edit', |
||
8 | 'EditForm', |
||
9 | ); |
||
10 | |||
11 | /** |
||
12 | * Gets a DMS document by its ID |
||
13 | * |
||
14 | * @return DMSDocument |
||
15 | */ |
||
16 | public function getItem() |
||
17 | { |
||
18 | return DMSDocument::get()->byId($this->itemID); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @return Form |
||
23 | */ |
||
24 | public function EditForm() |
||
43 | } |
||
44 |