You are here

public function FlatTextExporter::__construct in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/FlatTextExporter.php \AKlump\LoftDataGrids\FlatTextExporter::__construct()

Constructor

Overrides CSVExporter::__construct

1 call to FlatTextExporter::__construct()
MarkdownTableExporter::__construct in vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/MarkdownTableExporter.php
Constructor
1 method overrides FlatTextExporter::__construct()
MarkdownTableExporter::__construct in vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/MarkdownTableExporter.php
Constructor

File

vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/FlatTextExporter.php, line 14

Class

FlatTextExporter
Class FlatTextExporter

Namespace

AKlump\LoftDataGrids

Code

public function __construct(ExportDataInterface $data = NULL, $filename = '') {
  parent::__construct($data, $filename);
  $this->format = new \stdClass();
  $this->format->cr = "\n";
  $this->format->hline = "-";
  $this->format->vline = "|";
  $this->format->bol = $this->format->vline;
  $this->format->eol = $this->format->vline . $this->format->cr;
  $this->format->left = ' ';
  $this->format->right = ' ';
  $this->format->sep = $this->format->vline;
  $this->format->escape = '';
  $this->format->html = TRUE;
  $this
    ->hidePageIds();
}