You are here

public function EasyRdf_Format::setMimeTypes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php \EasyRdf_Format::setMimeTypes()

Set the MIME Types for a format object

Parameters

array $mimeTypes One or more mime types:

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php, line 374

Class

EasyRdf_Format
Class the represents an RDF file format.

Code

public function setMimeTypes($mimeTypes) {
  if ($mimeTypes) {
    if (!is_array($mimeTypes)) {
      $mimeTypes = array(
        $mimeTypes,
      );
    }
    $this->mimeTypes = $mimeTypes;
  }
  else {
    $this->mimeTypes = array();
  }
}