PHP Класс Devise\Media\Files\Manager

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$CategoryPaths Devise\Media\Categories\CategoryPaths
$Filesystem Filesystem
$Image Image

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
createFile ( File $file, string $serverPath, string $originalName ) : string Checks for file existence and then creates file.
getThumbnailPath ( $currentName ) : string Change this

Описание методов

__construct() публичный Метод

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() публичный Метод

Remove uploaded files from the /media directory
public removeUploadedFile ( string $filepath ) : void
$filepath string
Результат void

renameUploadedFile() публичный Метод

Renames an uploaded file
public renameUploadedFile ( string $filepath, string $newpath ) : void
$filepath string
$newpath string
Результат void

saveUploadedFile() публичный Метод

Saves the uploaded file to the media directory
public saveUploadedFile ( $input ) : boolean
$input
Результат boolean

Описание свойств

$CategoryPaths защищенное свойство

protected CategoryPaths,Devise\Media\Categories $CategoryPaths
Результат Devise\Media\Categories\CategoryPaths

$Filesystem защищенное свойство

protected Filesystem,Devise\Media\Files $Filesystem
Результат Filesystem

$Image защищенное свойство

protected Image $Image
Результат Image