PHP Class Fireguard\Report\Exporters\AbstractPhantomExporter

Inheritance: extends AbstractExporter
Afficher le fichier Open project: fireguard/report Class Usage Examples

Protected Properties

Свойство Type Description
$binaryPath Path for executable converter html to pdf
$commandOptions PhantomJs Params
$configValidOptions
$format string
$htmlBodyPath
$htmlFooter
$htmlHeader
$orientation ['landscape', 'portrait']
$validFormats

Méthodes publiques

Méthode Description
addCommandOption ( string $option, string $value ) : AbstractPhantomExporter
getBinaryPath ( ) : string
getCommandOptions ( ) : array
getFooterHeight ( )
getFormat ( ) : string
getHeaderHeight ( )
getMargin ( ) : string
getOrientation ( ) : string
mountCommandOptions ( ) : string
mountScriptForExport ( ) : string
prefixOsPath ( string $path, string $operationalSystem = PHP_OS ) : string Prefix the input path for windows versions of PhantomJS
setBinaryPath ( $binaryPath ) : AbstractPhantomExporter
setCommandOptions ( array $options ) : AbstractPhantomExporter
setFormat ( string $format ) : AbstractPhantomExporter
setMargin ( string $margin ) : AbstractPhantomExporter
setOrientation ( $orientation ) : AbstractPhantomExporter

Méthodes protégées

Méthode Description
createHtmlFiles ( Fireguard\Report\Contracts\ReportContract $report )
getFooterScript ( )
getHeaderScript ( )
getScript ( $html, $heigth )
getViewPortHeight ( )
getViewPortWidth ( )
processInlineHtml ( $html )
saveFinishFile ( )

Method Details

addCommandOption() public méthode

public addCommandOption ( string $option, string $value ) : AbstractPhantomExporter
$option string
$value string
Résultat AbstractPhantomExporter

createHtmlFiles() protected méthode

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

getBinaryPath() public méthode

public getBinaryPath ( ) : string
Résultat string

getCommandOptions() public méthode

public getCommandOptions ( ) : array
Résultat array

getFooterHeight() public méthode

public getFooterHeight ( )

getFooterScript() protected méthode

protected getFooterScript ( )

getFormat() public méthode

public getFormat ( ) : string
Résultat string

getHeaderHeight() public méthode

public getHeaderHeight ( )

getHeaderScript() protected méthode

protected getHeaderScript ( )

getMargin() public méthode

public getMargin ( ) : string
Résultat string

getOrientation() public méthode

public getOrientation ( ) : string
Résultat string

getScript() protected méthode

protected getScript ( $html, $heigth )

getViewPortHeight() protected méthode

protected getViewPortHeight ( )

getViewPortWidth() protected méthode

protected getViewPortWidth ( )

mountCommandOptions() public méthode

public mountCommandOptions ( ) : string
Résultat string Command line string

mountScriptForExport() public méthode

public mountScriptForExport ( ) : string
Résultat string Path for generated script

prefixOsPath() public méthode

Prefix the input path for windows versions of PhantomJS
public prefixOsPath ( string $path, string $operationalSystem = PHP_OS ) : string
$path string
$operationalSystem string
Résultat string

processInlineHtml() protected méthode

protected processInlineHtml ( $html )

saveFinishFile() protected méthode

protected saveFinishFile ( )

setBinaryPath() public méthode

public setBinaryPath ( $binaryPath ) : AbstractPhantomExporter
$binaryPath
Résultat AbstractPhantomExporter

setCommandOptions() public méthode

public setCommandOptions ( array $options ) : AbstractPhantomExporter
$options array
Résultat AbstractPhantomExporter

setFormat() public méthode

public setFormat ( string $format ) : AbstractPhantomExporter
$format string
Résultat AbstractPhantomExporter

setMargin() public méthode

public setMargin ( string $margin ) : AbstractPhantomExporter
$margin string
Résultat AbstractPhantomExporter

setOrientation() public méthode

public setOrientation ( $orientation ) : AbstractPhantomExporter
$orientation
Résultat AbstractPhantomExporter

Property Details

$binaryPath protected_oe property

Path for executable converter html to pdf
protected $binaryPath

$commandOptions protected_oe property

PhantomJs Params
protected $commandOptions

$configValidOptions protected_oe property

protected $configValidOptions

$format protected_oe property

protected string $format
Résultat string

$htmlBodyPath protected_oe property

protected $htmlBodyPath

$htmlFooter protected_oe property

protected $htmlFooter

$htmlHeader protected_oe property

protected $htmlHeader

$orientation protected_oe property

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

$validFormats protected_oe property

protected $validFormats