Property | Type | Description | |
---|---|---|---|
$name | string | ||
$pathPatterns | array | ||
$resourceRepository | |||
$storage | Neos\Flow\ResourceManagement\Storage\StorageInterface | ||
$target | Neos\Flow\ResourceManagement\Target\TargetInterface |
Method | Description | |
---|---|---|
__construct ( string $name, Neos\Flow\ResourceManagement\Storage\StorageInterface $storage, Neos\Flow\ResourceManagement\Target\TargetInterface $target, array $pathPatterns ) | Constructor | |
getName ( ) : string | Returns the name of this collection | |
getObjects ( callable $callback = null ) : Generator |
Returns all internal data objects of the storage attached to this collection. | |
getStorage ( ) : Neos\Flow\ResourceManagement\Storage\StorageInterface | Returns the storage used for this collection | |
getStreamByResource ( |
Returns a stream handle of the given persistent resource which allows for opening / copying the resource's data. Note that this stream handle may only be used read-only. | |
getTarget ( ) : Neos\Flow\ResourceManagement\Target\TargetInterface | Returns the publication target defined for this collection | |
importResource ( string | resource $source ) : |
Imports a resource (file) from the given URI or PHP resource stream into this collection. | |
importResourceFromContent ( string $content ) : |
Imports a resource from the given string content into this collection. | |
publish ( ) : void | Publishes the whole collection to the corresponding publishing target |
public __construct ( string $name, Neos\Flow\ResourceManagement\Storage\StorageInterface $storage, Neos\Flow\ResourceManagement\Target\TargetInterface $target, array $pathPatterns ) | ||
$name | string | User-space name of this collection, as specified in the settings |
$storage | Neos\Flow\ResourceManagement\Storage\StorageInterface | The storage for data used in this collection |
$target | Neos\Flow\ResourceManagement\Target\TargetInterface | The publication target for this collection |
$pathPatterns | array | Glob patterns for paths to consider – only supported by specific storages |
public getObjects ( callable $callback = null ) : Generator |
||
$callback | callable | Function called after each object |
return | Generator |
public getStorage ( ) : Neos\Flow\ResourceManagement\Storage\StorageInterface | ||
return | Neos\Flow\ResourceManagement\Storage\StorageInterface |
public getStreamByResource ( |
||
$resource | The resource to retrieve the stream for | |
return | resource | boolean | | boolean The resource stream or FALSE if the stream could not be obtained |
public getTarget ( ) : Neos\Flow\ResourceManagement\Target\TargetInterface | ||
return | Neos\Flow\ResourceManagement\Target\TargetInterface |
public importResource ( string | resource $source ) : |
||
$source | string | resource | |
return | A resource object representing the imported resource |
public importResourceFromContent ( string $content ) : |
||
$content | string | The actual content to import |
return | A resource object representing the imported resource |
protected ResourceRepository,Neos\Flow\ResourceManagement $resourceRepository | ||
return |
protected StorageInterface,Neos\Flow\ResourceManagement\Storage $storage | ||
return | Neos\Flow\ResourceManagement\Storage\StorageInterface |