<oml:file> <oml:did><?php echo $r->did; ?> </oml:did> <oml:file_id><?php echo $r->file_id; ?> </oml:file_id> <oml:name><?php echo $r->field; ?> </oml:name> <oml:url><?php $f = $this->File->getById($r->file_id); echo fileRecordToUrl($f); ?> </oml:url> </oml:file> <?php } ?> <?php } if (array_key_exists('evaluations', $source->outputData)) { ?> <?php foreach ($source->outputData['evaluations'] as $e) { ?> <oml:evaluation> <oml:name><?php
private function _extendImplementation($implementation) { $implementation->creator = getcsv($implementation->creator); $implementation->contributor = getcsv($implementation->contributor); $implementation->parameterSetting = $this->Input->getWhere('implementation_id = "' . $implementation->id . '"'); $implementation->bibliographicalReference = $this->Bibliographical_reference->getWhere('implementation_id = "' . $implementation->id . '"'); $implementation->components = $this->getComponents($implementation); $implementation->tag = $this->Implementation_tag->getColumnWhere('tag', 'id = ' . $implementation->id); foreach (array('binary', 'source') as $type) { if ($implementation->{$type . '_file_id'} != false) { $file = $this->File->getById($implementation->{$type . '_file_id'}); if ($file != false) { $implementation->{$type . 'Url'} = fileRecordToUrl($file); $implementation->{$type . 'Format'} = $file->extension; $implementation->{$type . 'Md5'} = $file->md5_hash; } } } return $implementation; }