Correct location for getValueFromData()

This commit is contained in:
Will Rossiter 2014-04-25 09:53:45 -04:00
parent cbeb7a82e8
commit b54e7fa4c6
2 changed files with 10 additions and 10 deletions

View File

@ -46,6 +46,16 @@ class EditableFileField extends EditableFormField {
}
/**
* Return the value for the database, link to the file is stored as a
* relation so value for the field can be null.
*
* @return string
*/
public function getValueFromData() {
return null;
}
public function getSubmittedFormField() {
return new SubmittedFileField();
}

View File

@ -43,16 +43,6 @@ class SubmittedFileField extends SubmittedFormField {
return ($link = $this->getLink()) ? $link : "";
}
/**
* Return the value for the database, link to the file is stored as a
* relation so value for the field can be null.
*
* @return string
*/
public function getValueFromData() {
return null;
}
/**
* Return the link for the file attached to this submitted form field.
*