PHP Class Fireguard\Report\Exporters\ImageExporter

Inheritance: extends AbstractPhantomExporter, implements Fireguard\Report\Contracts\ExporterContract
Mostra file Open project: fireguard/report Class Usage Examples

Protected Properties

Property Type Description
$format ['BMP', 'JPG', 'JPEG', 'PNG']
$orientation ['landscape', 'portrait']
$validFormats

Public Methods

Method Description
configure ( array $config = [] ) : Fireguard\Report\Contracts\ExporterContract
generate ( Fireguard\Report\Contracts\ReportContract $report ) : string
getMimeType ( ) : string
setFormat ( string $format ) : AbstractPhantomExporter

Protected Methods

Method Description
generateHtmlWithAllReportContent ( Fireguard\Report\Contracts\ReportContract $report )

Method Details

configure() public method

public configure ( array $config = [] ) : Fireguard\Report\Contracts\ExporterContract
$config array
return Fireguard\Report\Contracts\ExporterContract

generate() public method

public generate ( Fireguard\Report\Contracts\ReportContract $report ) : string
$report Fireguard\Report\Contracts\ReportContract
return string

generateHtmlWithAllReportContent() protected method

protected generateHtmlWithAllReportContent ( Fireguard\Report\Contracts\ReportContract $report )
$report Fireguard\Report\Contracts\ReportContract

getMimeType() public method

public getMimeType ( ) : string
return string

setFormat() public method

public setFormat ( string $format ) : AbstractPhantomExporter
$format string
return AbstractPhantomExporter

Property Details

$format protected_oe property

['BMP', 'JPG', 'JPEG', 'PNG']
protected $format

$orientation protected_oe property

['landscape', 'portrait']
protected $orientation

$validFormats protected_oe property

protected $validFormats