PHP Class Devise\Media\Files\Manager

Afficher le fichier Open project: devisephp/cms

Protected Properties

Свойство Type Description
$CategoryPaths Devise\Media\Categories\CategoryPaths
$Filesystem Filesystem
$Image Image

Méthodes publiques

Méthode Description
__construct ( Filesystem $Filesystem, CategoryPaths $CategoryPaths, MediaPaths $MediaPaths, Images $Image, Caption $Caption, $Config = null ) Construct a new File manager
removeUploadedFile ( string $filepath ) : void Remove uploaded files from the /media directory
renameUploadedFile ( string $filepath, string $newpath ) : void Renames an uploaded file
saveUploadedFile ( $input ) : boolean Saves the uploaded file to the media directory

Private Methods

Méthode Description
createFile ( File $file, string $serverPath, string $originalName ) : string Checks for file existence and then creates file.
getThumbnailPath ( $currentName ) : string Change this

Method Details

__construct() public méthode

Construct a new File manager
public __construct ( Filesystem $Filesystem, CategoryPaths $CategoryPaths, MediaPaths $MediaPaths, Images $Image, Caption $Caption, $Config = null )
$Filesystem Filesystem
$CategoryPaths Devise\Media\Categories\CategoryPaths
$MediaPaths Devise\Media\MediaPaths
$Image Devise\Media\Images\Images
$Caption Devise\Media\Helpers\Caption

removeUploadedFile() public méthode

Remove uploaded files from the /media directory
public removeUploadedFile ( string $filepath ) : void
$filepath string
Résultat void

renameUploadedFile() public méthode

Renames an uploaded file
public renameUploadedFile ( string $filepath, string $newpath ) : void
$filepath string
$newpath string
Résultat void

saveUploadedFile() public méthode

Saves the uploaded file to the media directory
public saveUploadedFile ( $input ) : boolean
$input
Résultat boolean

Property Details

$CategoryPaths protected_oe property

protected CategoryPaths,Devise\Media\Categories $CategoryPaths
Résultat Devise\Media\Categories\CategoryPaths

$Filesystem protected_oe property

protected Filesystem,Devise\Media\Files $Filesystem
Résultat Filesystem

$Image protected_oe property

protected Image $Image
Résultat Image