PHP 클래스 Barryvdh\Snappy\ImageWrapper

저자: Killian Blais
파일 보기 프로젝트 열기: barryvdh/laravel-snappy

보호된 프로퍼티들

프로퍼티 타입 설명
$options array
$snappy Knp\Snappy\Image

공개 메소드들

메소드 설명
__call ( string $name, array $arguments ) : mixed Call Snappy instance.
__construct ( Knp\Snappy\Image $snappy )
download ( string $filename = 'image.jpg' ) : Response Make the image downloadable by the user
inline ( string $filename = 'image.jpg' ) : Illuminate\Http\Response Return a response with the image to show in the browser
loadFile ( string $file ) : static Load a HTML file
loadHTML ( string $string ) : static Load a HTML string
loadView ( $view, $data = [], $mergeData = [] )
output ( ) : string Output the PDF as a string.
save ( $filename, $overwrite = false ) : static Save the image to a file
setOption ( $name, $value )
setOptions ( $options )
snappy ( ) : Knp\Snappy\Image Get the Snappy instance.
stream ( string $filename = 'image.jpg' ) : Response Return a response with the image to show in the browser

메소드 상세

__call() 공개 메소드

Also shortcut's ->html => loadHtml ->view => loadView ->file => loadFile
public __call ( string $name, array $arguments ) : mixed
$name string
$arguments array
리턴 mixed

__construct() 공개 메소드

public __construct ( Knp\Snappy\Image $snappy )
$snappy Knp\Snappy\Image

download() 공개 메소드

Make the image downloadable by the user
public download ( string $filename = 'image.jpg' ) : Response
$filename string
리턴 Symfony\Component\HttpFoundation\Response

inline() 공개 메소드

Return a response with the image to show in the browser
public inline ( string $filename = 'image.jpg' ) : Illuminate\Http\Response
$filename string
리턴 Illuminate\Http\Response

loadFile() 공개 메소드

Load a HTML file
public loadFile ( string $file ) : static
$file string
리턴 static

loadHTML() 공개 메소드

Load a HTML string
public loadHTML ( string $string ) : static
$string string
리턴 static

loadView() 공개 메소드

public loadView ( $view, $data = [], $mergeData = [] )

output() 공개 메소드

Output the PDF as a string.
public output ( ) : string
리턴 string The rendered PDF as string

save() 공개 메소드

Save the image to a file
public save ( $filename, $overwrite = false ) : static
$filename
리턴 static

setOption() 공개 메소드

public setOption ( $name, $value )

setOptions() 공개 메소드

public setOptions ( $options )

snappy() 공개 메소드

Get the Snappy instance.
public snappy ( ) : Knp\Snappy\Image
리턴 Knp\Snappy\Image

stream() 공개 메소드

Return a response with the image to show in the browser
사용 중단: Use inline() instead
public stream ( string $filename = 'image.jpg' ) : Response
$filename string
리턴 Symfony\Component\HttpFoundation\Response

프로퍼티 상세

$options 보호되어 있는 프로퍼티

protected array $options
리턴 array

$snappy 보호되어 있는 프로퍼티

protected Image,Knp\Snappy $snappy
리턴 Knp\Snappy\Image