Console.php
1 month ago
Csv.php
2 weeks ago
Html.php
1 month ago
Json.php
1 month ago
Rss.php
2 weeks ago
Tsv.php
1 month ago
Xml.php
1 month ago
Tsv.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Matomo - free/libre analytics platform |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 8 | */ |
| 9 | namespace Piwik\DataTable\Renderer; |
| 10 | |
| 11 | /** |
| 12 | * TSV export |
| 13 | * |
| 14 | * Excel doesn't import CSV properly, it expects TAB separated values by default. |
| 15 | * TSV is therefore the 'CSV' that is Excel compatible |
| 16 | * |
| 17 | */ |
| 18 | class Tsv extends \Piwik\DataTable\Renderer\Csv |
| 19 | { |
| 20 | public function __construct() |
| 21 | { |
| 22 | parent::__construct(); |
| 23 | $this->setSeparator("\t"); |
| 24 | } |
| 25 | /** |
| 26 | * Computes the dataTable output and returns the string/binary |
| 27 | */ |
| 28 | public function render() : string |
| 29 | { |
| 30 | return parent::render(); |
| 31 | } |
| 32 | } |
| 33 |