PHP 클래스 Neos\Flow\ResourceManagement\Storage\WritableFileSystemStorage

상속: extends FileSystemStorage, implements Neos\Flow\ResourceManagement\Storage\WritableStorageInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

공개 메소드들

메소드 설명
deleteResource ( PersistentResource $resource ) : boolean Deletes the storage data related to the given PersistentResource object
importResource ( string | resource $source, string $collectionName ) : PersistentResource Imports a resource (file) from the given URI or PHP resource stream into this storage.
importResourceFromContent ( string $content, string $collectionName ) : PersistentResource Imports a resource from the given string content into this storage.
initializeObject ( ) : void Initializes this resource storage

보호된 메소드들

메소드 설명
fixFilePermissions ( string $pathAndFilename ) : void Fixes the permissions as needed for Flow to run fine in web and cli context.
importTemporaryFile ( string $temporaryPathAndFileName, string $collectionName ) : PersistentResource Imports the given temporary file into the storage and creates the new resource object.
moveTemporaryFileToFinalDestination ( string $temporaryFile, string $finalTargetPathAndFilename ) : void Move a temporary file to the final destination, creating missing path segments on the way.

메소드 상세

deleteResource() 공개 메소드

Deletes the storage data related to the given PersistentResource object
public deleteResource ( PersistentResource $resource ) : boolean
$resource Neos\Flow\ResourceManagement\PersistentResource The PersistentResource to delete the storage data of
리턴 boolean TRUE if removal was successful

fixFilePermissions() 보호된 메소드

Fixes the permissions as needed for Flow to run fine in web and cli context.
protected fixFilePermissions ( string $pathAndFilename ) : void
$pathAndFilename string
리턴 void

importResource() 공개 메소드

On a successful import this method returns a PersistentResource object representing the newly imported persistent resource.
public importResource ( string | resource $source, string $collectionName ) : PersistentResource
$source string | resource
$collectionName string Name of the collection the new PersistentResource belongs to
리턴 Neos\Flow\ResourceManagement\PersistentResource A resource object representing the imported resource

importResourceFromContent() 공개 메소드

On a successful import this method returns a PersistentResource object representing the newly imported persistent resource. The specified filename will be used when presenting the resource to a user. Its file extension is important because the resource management will derive the IANA Media Type from it.
public importResourceFromContent ( string $content, string $collectionName ) : PersistentResource
$content string The actual content to import
$collectionName string Name of the collection the new PersistentResource belongs to
리턴 Neos\Flow\ResourceManagement\PersistentResource A resource object representing the imported resource

importTemporaryFile() 보호된 메소드

Note: the temporary file is (re-)moved by this method.
protected importTemporaryFile ( string $temporaryPathAndFileName, string $collectionName ) : PersistentResource
$temporaryPathAndFileName string
$collectionName string
리턴 Neos\Flow\ResourceManagement\PersistentResource

initializeObject() 공개 메소드

Initializes this resource storage
public initializeObject ( ) : void
리턴 void

moveTemporaryFileToFinalDestination() 보호된 메소드

Move a temporary file to the final destination, creating missing path segments on the way.
protected moveTemporaryFileToFinalDestination ( string $temporaryFile, string $finalTargetPathAndFilename ) : void
$temporaryFile string
$finalTargetPathAndFilename string
리턴 void