public function EasyRdf_Format::setExtensions

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

Parameters

mixed $extensions One or more file extensions:

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php, line 407

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();
  }
}