You are here

public function EasyRdf_Format::setExtensions in Zircon Profile 8.0

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

Set the file format extensions (filename suffix) for a format object

Parameters

mixed $extensions One or more file extensions:

File

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

Class

EasyRdf_Format
Class the represents an RDF file format.

Code

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