protected function TripalEntityCollection::isFormatterCompatible

3.x TripalEntityCollection.inc protected TripalEntityCollection::isFormatterCompatible($formatter)

Indicates if the given formatter is compatible with the data collection.

Parameters

$formatter: The class name of the formatter to check.

Return value

boolean TRUE if the formatter is compatible, FALSE otherwise.

3 calls to TripalEntityCollection::isFormatterCompatible()
TripalEntityCollection::getOutfile in tripal/includes/TripalEntityCollection.inc
Retrieves the output filename for the desired formatter.
TripalEntityCollection::getOutfilePath in tripal/includes/TripalEntityCollection.inc
Retrieves the path for the downloadable file.
TripalEntityCollection::write in tripal/includes/TripalEntityCollection.inc
Writes the collection to a file using a given formatter.

File

tripal/includes/TripalEntityCollection.inc, line 430

Class

TripalEntityCollection

Code

protected function isFormatterCompatible($formatter) {
  foreach ($this->formatters as $class_name => $label) {
    if ($class_name == $formatter) {
      return TRUE;
    }
  }
  return FALSE;
}