PHP Class Nayjest\Grids\Components\CsvExport

Author: : Vitaliy Ofat ([email protected])
Inheritance: extends Nayjest\Grids\Components\Base\RenderableComponent
Show file Open project: nayjest/grids

Protected Properties

Property Type Description
$fileName string
$name
$output string
$render_section
$rows_limit
$template

Public Methods

Method Description
getFileName ( ) : string
getRowsLimit ( ) : integer
initialize ( Nayjest\Grids\Grid $grid ) : null | void
setFileName ( string $name )
setRowsLimit ( integer $limit )

Protected Methods

Method Description
escapeString ( string $str ) : string
renderCsv ( )
renderHeader ( resource $file )
resetPagination ( Nayjest\Grids\DataProvider $provider )
setCsvHeaders ( Illuminate\Http\Response $response )

Method Details

escapeString() protected method

protected escapeString ( string $str ) : string
$str string
return string

getFileName() public method

public getFileName ( ) : string
return string

getRowsLimit() public method

public getRowsLimit ( ) : integer
return integer

initialize() public method

public initialize ( Nayjest\Grids\Grid $grid ) : null | void
$grid Nayjest\Grids\Grid
return null | void

renderCsv() protected method

protected renderCsv ( )

renderHeader() protected method

protected renderHeader ( resource $file )
$file resource

resetPagination() protected method

protected resetPagination ( Nayjest\Grids\DataProvider $provider )
$provider Nayjest\Grids\DataProvider

setCsvHeaders() protected method

protected setCsvHeaders ( Illuminate\Http\Response $response )
$response Illuminate\Http\Response

setFileName() public method

public setFileName ( string $name )
$name string

setRowsLimit() public method

public setRowsLimit ( integer $limit )
$limit integer

Property Details

$fileName protected property

protected string $fileName
return string

$name protected property

protected $name

$output protected property

protected string $output
return string

$render_section protected property

protected $render_section

$rows_limit protected property

protected $rows_limit

$template protected property

protected $template