public function saveToFile($filePath,$format = 'csvforexcel')
    {
        $this->format(Format::get($format));
        $this->run();

        $this->data->saveToFile($filePath);

        return true;
    }
public function saveToFile($filePath,$format = 'csvforexcel')
    {
        $this->format(Format::get($format));
        $this->run();

        $this->data->saveToFile($filePath);

        return true;
    }
public function saveToFile ( $ filePath , $ format = 'csvforexcel' ) { $ this -> format ( Format :: get ( $ format ) ) ; $ this -> run ( ) ; $ this -> data -> saveToFile ( $ filePath ) ; return true ; }
Save the report in a file.
@param $filePath
@param string $format
@return bool
Save the report in a file .