PHP Класс Backend\Core\Engine\FormImage

Наследование: extends SpoonFormImage
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $name, $class = 'inputFilefield', $classError = 'inputFilefieldError' ) Constructor.
generateThumbnails ( string $path, string $filename ) Generate thumbnails based on the folders in the path Use - 128x128 as foldername to generate an image that where the width will be 128px and the height will be 128px - 128x as foldername to generate an image that where the width will be 128px, the height will be calculated based on the aspect ratio.
getErrors ( ) : string This function will return the errors. It is extended so we can do image checks automatically.
hideHelpTxt ( boolean $on = true ) Hides (or shows) the help text when parsing the field.
parse ( TwigTemplate $template = null ) : string Parses the html for this filefield.

Описание методов

__construct() публичный Метод

Constructor.
См. также: SpoonFormFile::__construct()
public __construct ( string $name, $class = 'inputFilefield', $classError = 'inputFilefieldError' )
$name string The name.

generateThumbnails() публичный Метод

- x128 as foldername to generate an image that where the width will be 128px, the height will be calculated based on the aspect ratio.
public generateThumbnails ( string $path, string $filename )
$path string
$filename string

getErrors() публичный Метод

This function will return the errors. It is extended so we can do image checks automatically.
public getErrors ( ) : string
Результат string

hideHelpTxt() публичный Метод

Hides (or shows) the help text when parsing the field.
public hideHelpTxt ( boolean $on = true )
$on boolean

parse() публичный Метод

Parses the html for this filefield.
public parse ( TwigTemplate $template = null ) : string
$template TwigTemplate The template to parse the element in.
Результат string