PHP Класс Barryvdh\Snappy\ImageWrapper

Автор: Killian Blais
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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