public function setFileFormats(array $formats)
    {
        $this->file_formats = array();
        foreach ($formats as $mime => $writer)
            $this->addFileFormat($mime, $writer);

        return $this;
    }
public function setFileFormats(array $formats)
    {
        $this->file_formats = array();
        foreach ($formats as $mime => $writer)
            $this->addFileFormat($mime, $writer);

        return $this;
    }
public function setFileFormats ( array $ formats ) { $ this -> file_formats = array ( ) ; foreach ( $ formats as $ mime => $ writer ) $ this -> addFileFormat ( $ mime , $ writer ) ; return $ this ; }
Set the available file formats - replacing the previous list
@param array $formats Assocative array of mime-type => writer-class pairs
@return DataResponse Provides fluent interface
Set the available file formats - replacing the previous list