public function link_files($entry, $files) {
        foreach ($files as $file) {
            $fileentry = new portfolio_format_leap2a_file($file->get_filename(), $file);
            $this->add_entry($fileentry);
            $entry->add_link($fileentry, 'related');
            $fileentry->add_link($entry, 'related');
        }
    }