PHP Class Yab\Quarx\Services\FileService

Afficher le fichier Open project: YABhq/Quarx Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

fileAsDownload() public static méthode

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
Résultat string

fileAsPublicAsset() public static méthode

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

filePreview() public static méthode

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

getFileClass() public static méthode

Generate a name from the file path.
public static getFileClass ( string $file ) : string
$file string File path
Résultat string

saveClone() public static méthode

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

saveFile() public static méthode

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