protected function genericHandle($dataFormatterClass, $ext, GridField $gridField, $request = null)
    {
        $items = $this->getItems($gridField);

        $this->setHeader($gridField, $ext);


        $formater = new $dataFormatterClass();
        $formater->setUseLabelsAsHeaders($this->useLabelsAsHeaders);

        $fileData = $formater->convertDataObjectSet($items);

        return $fileData;
    }
protected function genericHandle($dataFormatterClass, $ext, GridField $gridField, $request = null)
    {
        $items = $this->getItems($gridField);

        $this->setHeader($gridField, $ext);


        $formater = new $dataFormatterClass();
        $formater->setUseLabelsAsHeaders($this->useLabelsAsHeaders);

        $fileData = $formater->convertDataObjectSet($items);

        return $fileData;
    }
protected function genericHandle ( $ dataFormatterClass , $ ext , GridField $ gridField , $ request = null ) { $ items = $ this -> getItems ( $ gridField ) ; $ this -> setHeader ( $ gridField , $ ext ) ; $ formater = new $ dataFormatterClass ( ) ; $ formater -> setUseLabelsAsHeaders ( $ this -> useLabelsAsHeaders ) ; $ fileData = $ formater -> convertDataObjectSet ( $ items ) ; return $ fileData ; }
Generic Handle request that will return a Spread Sheet in the requested format
@param  string    $dataFormatterClass
@param  string    $ext
@param  GridField $gridField
@param  SS_HTTPRequest    $request
@return string
Generic Handle request that will return a Spread Sheet in the requested format