"File" ); /** * Return the Value of this Field * * @return String */ function getFormattedValue() { $link = $this->getLink(); return (!empty($link)) ? ''. _t('SubmittedFileField.DOWNLOADFILE', 'Download File') .'' : ''; } /** * Return the Link object for this field * * @return String */ function getLink() { if ($this->UploadedFile()){ // Test if there is a filename, not only a filepath to the assets folder return ($this->UploadedFile()->getFilename() != ASSETS_DIR.'/') ? $this->UploadedFile()->URL : ''; } return ''; } }