You are here

public function MarkdownTableExporter::__construct in Loft Data Grids 7.2

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

Constructor

Overrides FlatTextExporter::__construct

File

vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/MarkdownTableExporter.php, line 15

Class

MarkdownTableExporter
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
    ->showPageIds();
}