PHP Интерфейс Sulu\Bundle\MediaBundle\Media\Storage\StorageInterface

The StorageLayer is a interface to centralized management of media store.
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
load ( $fileName, $version, $storageOption ) : string Give back the path to the document.
loadAsString ( $fileName, $version, $storageOption ) : string Returns the content for the given file as a binary string.
remove ( $storageOption ) : mixed Removes the file from storage.
save ( $tempPath, $fileName, $version ) : mixed Save the document in a storage and give back the path to the document.

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

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

Give back the path to the document.
Устаревший: Deprecated since 1.4, will be removed in 2.0
public load ( $fileName, $version, $storageOption ) : string
$fileName
$version
$storageOption
Результат string

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

Returns the content for the given file as a binary string.
public loadAsString ( $fileName, $version, $storageOption ) : string
$fileName
$version
$storageOption
Результат string

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

Removes the file from storage.
public remove ( $storageOption ) : mixed
$storageOption
Результат mixed

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

Save the document in a storage and give back the path to the document.
public save ( $tempPath, $fileName, $version ) : mixed
$tempPath
$fileName
$version
Результат mixed