PHP Интерфейс Neos\Flow\ResourceManagement\Storage\StorageInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
getName ( ) : string Returns the instance name of this storage
getObjects ( ) : Generator Retrieve all Objects stored in this storage.
getObjectsByCollection ( Neos\Flow\ResourceManagement\CollectionInterface $collection ) : Generator Retrieve all Objects stored in this storage, filtered by the given collection name
getStreamByResource ( PersistentResource $resource ) : resource | boolean Returns a stream handle which can be used internally to open / copy the given resource stored in this storage.
getStreamByResourcePath ( string $relativePath ) : resource | boolean Returns a stream handle which can be used internally to open / copy the given resource stored in this storage.

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

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

Returns the instance name of this storage
public getName ( ) : string
Результат string

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

Retrieve all Objects stored in this storage.
public getObjects ( ) : Generator
Результат Generator

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

Retrieve all Objects stored in this storage, filtered by the given collection name
public getObjectsByCollection ( Neos\Flow\ResourceManagement\CollectionInterface $collection ) : Generator
$collection Neos\Flow\ResourceManagement\CollectionInterface
Результат Generator

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

Returns a stream handle which can be used internally to open / copy the given resource stored in this storage.
public getStreamByResource ( PersistentResource $resource ) : resource | boolean
$resource Neos\Flow\ResourceManagement\PersistentResource The resource stored in this storage
Результат resource | boolean | boolean The resource stream or FALSE if the stream could not be obtained

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

Returns a stream handle which can be used internally to open / copy the given resource stored in this storage.
public getStreamByResourcePath ( string $relativePath ) : resource | boolean
$relativePath string A path relative to the storage root, for example "MyFirstDirectory/SecondDirectory/Foo.css"
Результат resource | boolean | boolean A URI (for example the full path and filename) leading to the resource file or FALSE if it does not exist