2008-09-29 03:18:23 +00:00
|
|
|
<?php
|
2012-04-14 18:36:50 +12:00
|
|
|
|
2008-09-29 03:18:23 +00:00
|
|
|
/**
|
2012-04-14 18:36:50 +12:00
|
|
|
* Allows a user to add a field that can be used to upload a file.
|
2009-04-17 02:26:40 +00:00
|
|
|
*
|
|
|
|
* @package userforms
|
2008-09-29 03:18:23 +00:00
|
|
|
*/
|
2009-12-07 02:04:20 +00:00
|
|
|
|
2008-09-29 03:18:23 +00:00
|
|
|
class EditableFileField extends EditableFormField {
|
|
|
|
|
2009-05-06 03:34:40 +00:00
|
|
|
static $singular_name = 'File Upload Field';
|
|
|
|
static $plural_names = 'File Fields';
|
2008-09-29 03:18:23 +00:00
|
|
|
|
2009-04-27 04:32:47 +00:00
|
|
|
public function getFormField() {
|
2012-04-14 18:36:50 +12:00
|
|
|
$field = new FileField($this->Name, $this->Title);
|
|
|
|
|
|
|
|
return $field;
|
2008-09-29 03:18:23 +00:00
|
|
|
}
|
2009-04-28 02:03:13 +00:00
|
|
|
|
2012-04-14 18:36:50 +12:00
|
|
|
|
2010-02-14 07:53:16 +00:00
|
|
|
public function getSubmittedFormField() {
|
|
|
|
return new SubmittedFileField();
|
2012-04-14 18:36:50 +12:00
|
|
|
}
|
2009-12-07 02:04:20 +00:00
|
|
|
}
|