PHP 클래스 Gdn_UploadImage, vanilla

상속: extends Gdn_Upload
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

공개 메소드들

메소드 설명
canUploadImages ( ) : boolean Check that we have the necessary tools to allow image uploading.
clear ( )
imageIco ( $gd, $targetPath )
imageSize ( string $Path, string $Filename = false ) : array Gets the image size of a file.
saveImageAs ( $Source, $Target, $Height = '', $Width = '', $Options = [] ) Saves the specified image at $Target in the specified format with the specified dimensions (or the existing dimensions if height/width are not provided.
validateUpload ( $InputName, $ThrowError = true ) Validates the uploaded image. Returns the temporary name of the uploaded file.

메소드 상세

canUploadImages() 공개 정적인 메소드

Check that we have the necessary tools to allow image uploading.
public static canUploadImages ( ) : boolean
리턴 boolean

clear() 공개 메소드

public clear ( )

imageIco() 공개 정적인 메소드

public static imageIco ( $gd, $targetPath )

imageSize() 공개 정적인 메소드

Gets the image size of a file.
부터: 2.1
public static imageSize ( string $Path, string $Filename = false ) : array
$Path string The path to the file.
$Filename string The name of the file.
리턴 array An array of [width, height, image type].

saveImageAs() 공개 정적인 메소드

Saves the specified image at $Target in the specified format with the specified dimensions (or the existing dimensions if height/width are not provided.
public static saveImageAs ( $Source, $Target, $Height = '', $Width = '', $Options = [] )

validateUpload() 공개 메소드

Validates the uploaded image. Returns the temporary name of the uploaded file.
public validateUpload ( $InputName, $ThrowError = true )