abstract protected function TripalFieldDownloader::formatEntity

3.x TripalFieldDownloader.inc abstract protected TripalFieldDownloader::formatEntity($entity)

Formats the entity and the specified fields for output.

This function should be implemented by a child class. It should iterate over the fields for the entity and return the appropriate format. It may return multiple lines of output if necessary.

Parameters

$entity: The entity object. The fields that should be formatted are already loaded.

Return value

An array of strings (one per line of output.

2 calls to TripalFieldDownloader::formatEntity()
TripalFieldDownloader::write in tripal/includes/TripalFieldDownloaders/TripalFieldDownloader.inc
Creates the downloadable file.
TripalFieldDownloader::writeEntity in tripal/includes/TripalFieldDownloaders/TripalFieldDownloader.inc
Write a single entity to the file.
5 methods override TripalFieldDownloader::formatEntity()
TripalCSVDownloader::formatEntity in tripal/includes/TripalFieldDownloaders/TripalCSVDownloader.inc
TripalGFF3Downloader::formatEntity in tripal/includes/TripalFieldDownloaders/TripalGFF3Downloader.inc
TripalNucFASTADownloader::formatEntity in tripal/includes/TripalFieldDownloaders/TripalNucFASTADownloader.inc
TripalProteinFASTADownloader::formatEntity in tripal/includes/TripalFieldDownloaders/TripalProteinFASTADownloader.inc
TripalTabDownloader::formatEntity in tripal/includes/TripalFieldDownloaders/TripalTabDownloader.inc

File

tripal/includes/TripalFieldDownloaders/TripalFieldDownloader.inc, line 497

Class

TripalFieldDownloader

Code

abstract protected function formatEntity($entity);