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');
        }
    }
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');
        }
    }
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' ) ; } }
Helper function to link some stored_files into the feed and link them to a particular entry

@param portfolio_format_leap2a_entry $entry feed object
@param array $files array of stored_files to link
Helper function to link some stored_files into the feed and link them to a particular entry