PHP 클래스 Yab\Quarx\Services\FileService

파일 보기 프로젝트 열기: YABhq/Quarx 1 사용 예제들

공개 메소드들

메소드 설명
fileAsDownload ( string $fileName, string $realFileName ) : string Provides a URL for the file as a download.
fileAsPublicAsset ( string $fileName ) : string Provide a URL for the file as a public asset.
filePreview ( string $fileName ) : string Provide a URL for the file as a public preview.
getFileClass ( string $file ) : string Generate a name from the file path.
saveClone ( string $fileName, $directory = '', $fileTypes = [] ) : array Saves File.
saveFile ( string $fileName, $directory = '', $fileTypes = [] ) : array Saves File.

메소드 상세

fileAsDownload() 공개 정적인 메소드

Provides a URL for the file as a download.
public static fileAsDownload ( string $fileName, string $realFileName ) : string
$fileName string File name
$realFileName string Real file name
리턴 string

fileAsPublicAsset() 공개 정적인 메소드

Provide a URL for the file as a public asset.
public static fileAsPublicAsset ( string $fileName ) : string
$fileName string File name
리턴 string

filePreview() 공개 정적인 메소드

Provide a URL for the file as a public preview.
public static filePreview ( string $fileName ) : string
$fileName string File name
리턴 string

getFileClass() 공개 정적인 메소드

Generate a name from the file path.
public static getFileClass ( string $file ) : string
$file string File path
리턴 string

saveClone() 공개 정적인 메소드

Saves File.
public static saveClone ( string $fileName, $directory = '', $fileTypes = [] ) : array
$fileName string File input name
리턴 array

saveFile() 공개 정적인 메소드

Saves File.
public static saveFile ( string $fileName, $directory = '', $fileTypes = [] ) : array
$fileName string File input name
리턴 array