PHP 인터페이스 Sulu\Bundle\MediaBundle\Media\Storage\StorageInterface

The StorageLayer is a interface to centralized management of media store.
파일 보기 프로젝트 열기: sulu/sulu 0 사용 예제들

공개 메소드들

메소드 설명
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