mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
25 lines
459 B
PHP
Executable File
25 lines
459 B
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* Allows a user to add a field that can be used to upload a file.
|
|
*
|
|
* @package userforms
|
|
*/
|
|
|
|
class EditableFileField extends EditableFormField {
|
|
|
|
public static $singular_name = 'File Upload Field';
|
|
|
|
public static $plural_names = 'File Fields';
|
|
|
|
public function getFormField() {
|
|
$field = new FileField($this->Name, $this->Title);
|
|
|
|
return $field;
|
|
}
|
|
|
|
|
|
public function getSubmittedFormField() {
|
|
return new SubmittedFileField();
|
|
}
|
|
} |