public function getFormattedValue()
    {
        $name = $this->getFileName();
        $link = $this->getLink();
        $title = _t(__CLASS__.'.DOWNLOADFILE', 'Download File');

        if ($link) {
            return DBField::create_field('HTMLText', sprintf(
                '%s - <a href="%s" target="_blank">%s</a>',
                $name,
                $link,
                $title
            ));
        }

        return false;
    }
public function getFormattedValue()
    {
        $name = $this->getFileName();
        $link = $this->getLink();
        $title = _t(__CLASS__.'.DOWNLOADFILE', 'Download File');

        if ($link) {
            return DBField::create_field('HTMLText', sprintf(
                '%s - <a href="%s" target="_blank">%s</a>',
                $name,
                $link,
                $title
            ));
        }

        return false;
    }
public function getFormattedValue ( ) { $ name = $ this -> getFileName ( ) ; $ link = $ this -> getLink ( ) ; $ title = _t ( __CLASS__ . '.DOWNLOADFILE' , 'Download File' ) ; if ( $ link ) { return DBField :: create_field ( 'HTMLText' , sprintf ( '%s - <a href="%s" target="_blank">%s</a>' , $ name , $ link , $ title ) ) ; } return false ; }
Return the value of this field for inclusion into things such as
reports.

@return string
Return the value of this field for inclusion into things such as reports .