PHP 클래스 Frontend\Core\Engine\FrontendFormImage

상속: extends SpoonFormImage
파일 보기 프로젝트 열기: forkcms/forkcms

공개 메소드들

메소드 설명
__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 folder name to generate an image that where the width will be 128px and the height will be 128px - 128x as folder name 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.

메소드 상세

__construct() 공개 메소드

Constructor.
또한 보기: SpoonFormFile::__construct()
public __construct ( string $name, $class = 'inputFilefield', $classError = 'inputFilefieldError' )
$name string The name.

generateThumbnails() 공개 메소드

- x128 as folder name 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