PHP Класс FOF30\View\DataView\Csv

Наследование: extends Html, implements FOF30\View\DataView\DataViewInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$csvFields array The columns to include in the CSV output. If it's empty it will be ignored.
$csvFilename string The filename of the downloaded CSV file.
$csvHeader boolean Should I produce a CSV header row.

Открытые методы

Метод Описание
__construct ( Container $container, array $config = [] ) Public constructor. Instantiates a F0FViewCsv object.
display ( string $tpl = null ) : boolean Overrides the default method to execute and display a template script.

Описание методов

__construct() публичный Метод

Public constructor. Instantiates a F0FViewCsv object.
public __construct ( Container $container, array $config = [] )
$container FOF30\Container\Container The container we belong to
$config array The configuration overrides for the view

display() публичный Метод

Instead of loadTemplate is uses loadAnyTemplate.
public display ( string $tpl = null ) : boolean
$tpl string The name of the template file to parse
Результат boolean True on success

Описание свойств

$csvFields защищенное свойство

The columns to include in the CSV output. If it's empty it will be ignored.
protected array $csvFields
Результат array

$csvFilename защищенное свойство

The filename of the downloaded CSV file.
protected string $csvFilename
Результат string

$csvHeader защищенное свойство

Should I produce a CSV header row.
protected bool $csvHeader
Результат boolean