| @@ 759-765 (lines=7) @@ | ||
| 756 | * |
|
| 757 | * @return Form |
|
| 758 | */ |
|
| 759 | public function FileEditForm() |
|
| 760 | { |
|
| 761 | // Get ID either from posted back value, or url parameter |
|
| 762 | $request = $this->getRequest(); |
|
| 763 | $id = $request->param('ID') ?: $request->postVar('ID'); |
|
| 764 | return $this->getFileEditForm($id); |
|
| 765 | } |
|
| 766 | ||
| 767 | /** |
|
| 768 | * The form is used to generate a form schema, |
|
| @@ 786-792 (lines=7) @@ | ||
| 783 | * |
|
| 784 | * @return Form |
|
| 785 | */ |
|
| 786 | public function FileInsertForm() |
|
| 787 | { |
|
| 788 | // Get ID either from posted back value, or url parameter |
|
| 789 | $request = $this->getRequest(); |
|
| 790 | $id = $request->param('ID') ?: $request->postVar('ID'); |
|
| 791 | return $this->getFileInsertForm($id); |
|
| 792 | } |
|
| 793 | ||
| 794 | /** |
|
| 795 | * Abstract method for generating a form for a file |
|
| @@ 836-842 (lines=7) @@ | ||
| 833 | return $form; |
|
| 834 | } |
|
| 835 | ||
| 836 | public function FileSelectForm() |
|
| 837 | { |
|
| 838 | // Get ID either from posted back value, or url parameter |
|
| 839 | $request = $this->getRequest(); |
|
| 840 | $id = $request->param('ID') ?: $request->postVar('ID'); |
|
| 841 | return $this->getFileSelectForm($id); |
|
| 842 | } |
|
| 843 | ||
| 844 | public function getFileSelectForm($id) { |
|
| 845 | return $this->getAbstractFileForm($id, 'FileSelectForm', [ 'Type' => AssetFormFactory::TYPE_SELECT ]); |
|