PHP 클래스 mikehaertl\wkhtmlto\Command

This class is an extension of mikehaertl\shellcommand\Command and adds wk* specific features like xvfb support and proper argument handling.
저자: Michael Härtl ([email protected])
상속: extends mikehaertl\shellcommand\Command
파일 보기 프로젝트 열기: mikehaertl/phpwkhtmltopdf

공개 프로퍼티들

프로퍼티 타입 설명
$enableXvfb whether to enable the built in Xvfb support (uses xvfb-run)
$xvfbRunBinary the name of the xvfb-run comand. Default is xvfb-run. You can also configure a full path here.
$xvfbRunOptions options to pass to the xfvb-run command. Default is --server-args="-screen 0, 1024x768x24".

공개 메소드들

메소드 설명
addArgs ( array $args )
getExecCommand ( ) : string | boolean

메소드 상세

addArgs() 공개 메소드

public addArgs ( array $args )
$args array args to add to the command. These can be: array( // Special argument 'input' will not get prepended with '--'. 'input' => 'cover', // Special argument 'inputArg' is treated like 'input' but will get escaped // Both 'input' and 'inputArg' can be used in combination 'inputArg' => '/tmp/tmpFileName.html', 'no-outline', // option without argument 'encoding' => 'UTF-8', // option with argument // Option with 2 arguments 'cookie' => array('name'=>'value'), // Repeatable options with single argument 'run-script' => array( 'local1.js', 'local2.js', ), // Repeatable options with 2 arguments 'replace' => array( '{page}' => $page++, '{title}' => $pageTitle, ),

getExecCommand() 공개 메소드

public getExecCommand ( ) : string | boolean
리턴 string | boolean the command to execute with optional Xfvb wrapper applied. Null if none set.

프로퍼티 상세

$enableXvfb 공개적으로 프로퍼티

whether to enable the built in Xvfb support (uses xvfb-run)
public $enableXvfb

$xvfbRunBinary 공개적으로 프로퍼티

the name of the xvfb-run comand. Default is xvfb-run. You can also configure a full path here.
public $xvfbRunBinary

$xvfbRunOptions 공개적으로 프로퍼티

options to pass to the xfvb-run command. Default is --server-args="-screen 0, 1024x768x24".
public $xvfbRunOptions