Console.php
1 year ago
Csv.php
1 year ago
Html.php
1 year ago
Json.php
1 year ago
Rss.php
1 year ago
Tsv.php
2 years ago
Xml.php
1 year ago
Tsv.php
38 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 | /** |
| 21 | * Constructor |
| 22 | */ |
| 23 | public function __construct() |
| 24 | { |
| 25 | parent::__construct(); |
| 26 | $this->setSeparator("\t"); |
| 27 | } |
| 28 | /** |
| 29 | * Computes the dataTable output and returns the string/binary |
| 30 | * |
| 31 | * @return string |
| 32 | */ |
| 33 | public function render() |
| 34 | { |
| 35 | return parent::render(); |
| 36 | } |
| 37 | } |
| 38 |