public function export()
    {
        $delimiter   = $this->getParameter('field_delimiter', ',');
        $enclosure   = $this->getParameter('field_encloser', '"');
        $sortBy      = $this->getParameter('sortby', '');
        $sortOrder   = $this->getParameter('sortorder', '');

        $exportParameters = [];

        if ($this->hasRequestParameter('filtercolumns')) {
            $parameters = $this->getRequestParameter('filtercolumns');

            if (is_array($parameters)) {
                $exportParameters = $parameters;
            }
        }

        $csvExporter = new LogEntryCsvStdOutExporter(
            new LogEntryRepository($exportParameters, $sortBy, $sortOrder),
            $delimiter,
            $enclosure
        );

        setcookie('fileDownload', 'true', 0, '/');
        $csvExporter->export();
    }
public function export()
    {
        $delimiter   = $this->getParameter('field_delimiter', ',');
        $enclosure   = $this->getParameter('field_encloser', '"');
        $sortBy      = $this->getParameter('sortby', '');
        $sortOrder   = $this->getParameter('sortorder', '');

        $exportParameters = [];

        if ($this->hasRequestParameter('filtercolumns')) {
            $parameters = $this->getRequestParameter('filtercolumns');

            if (is_array($parameters)) {
                $exportParameters = $parameters;
            }
        }

        $csvExporter = new LogEntryCsvStdOutExporter(
            new LogEntryRepository($exportParameters, $sortBy, $sortOrder),
            $delimiter,
            $enclosure
        );

        setcookie('fileDownload', 'true', 0, '/');
        $csvExporter->export();
    }
public function export ( ) { $ delimiter = $ this -> getParameter ( 'field_delimiter' , ',' ) ; $ enclosure = $ this -> getParameter ( 'field_encloser' , '"' ) ; $ sortBy = $ this -> getParameter ( 'sortby' , '' ) ; $ sortOrder = $ this -> getParameter ( 'sortorder' , '' ) ; $ exportParameters = [ ] ; if ( $ this -> hasRequestParameter ( 'filtercolumns' ) ) { $ parameters = $ this -> getRequestParameter ( 'filtercolumns' ) ; if ( is_array ( $ parameters ) ) { $ exportParameters = $ parameters ; } } $ csvExporter = new LogEntryCsvStdOutExporter ( new LogEntryRepository ( $ exportParameters , $ sortBy , $ sortOrder ) , $ delimiter , $ enclosure ) ; setcookie ( 'fileDownload' , 'true' , 0 , '/' ) ; $ csvExporter -> export ( ) ; }
Export log entries from database to csv file
dates should be in UTC

@throws \Exception
Export log entries from database to csv file dates should be in UTC