Property | Type | Description | |
---|---|---|---|
$environment | |||
$name | string | Name which identifies this resource storage | |
$path | string | The path (in a filesystem) where resources are stored | |
$resourceManager | |||
$resourceRepository |
Method | Description | |
---|---|---|
__construct ( string $name, array $options = [] ) | Constructor | |
getName ( ) : string | Returns the instance name of this storage | |
getObjects ( callable $callback = null ) : Generator | Retrieve all Objects stored in this storage. | |
getObjectsByCollection ( Neos\Flow\ResourceManagement\CollectionInterface $collection, callable $callback = null ) : Generator | Retrieve all Objects stored in this storage, filtered by the given collection name | |
getStreamByResource ( |
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. | |
initializeObject ( ) : void | Initializes this resource storage |
Method | Description | |
---|---|---|
getStoragePathAndFilenameByHash ( string $sha1Hash ) : string | Determines and returns the absolute path and filename for a storage file identified by the given SHA1 hash. |
public __construct ( string $name, array $options = [] ) | ||
$name | string | Name of this storage instance, according to the resource settings |
$options | array | Options for this storage |
public getObjects ( callable $callback = null ) : Generator | ||
$callback | callable | Function called after each iteration |
return | Generator |
public getObjectsByCollection ( Neos\Flow\ResourceManagement\CollectionInterface $collection, callable $callback = null ) : Generator | ||
$collection | Neos\Flow\ResourceManagement\CollectionInterface | |
$callback | callable | Function called after each iteration |
return | Generator |
protected getStoragePathAndFilenameByHash ( string $sha1Hash ) : string | ||
$sha1Hash | string | The SHA1 hash identifying the stored resource |
return | string | The path and filename, for example "/var/www/mysite.com/Data/Persistent/c/8/2/8/c828d0f88ce197be1aff7cc2e5e86b1244241ac6" |
public getStreamByResource ( |
||
$resource | The resource stored in this storage | |
return | resource | boolean | | boolean The resource stream or FALSE if the stream could not be obtained |
public getStreamByResourcePath ( string $relativePath ) : resource | boolean | ||
$relativePath | string | A path relative to the storage root, for example "MyFirstDirectory/SecondDirectory/Foo.css" |
return | resource | boolean | | boolean A URI (for example the full path and filename) leading to the resource file or FALSE if it does not exist |
public initializeObject ( ) : void | ||
return | void |
protected Environment,Neos\Flow\Utility $environment | ||
return |
protected string $name | ||
return | string |
protected string $path | ||
return | string |
protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager | ||
return |