프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$environment | |||
$name | string | Name which identifies this resource storage | |
$path | string | The path (in a filesystem) where resources are stored | |
$resourceManager | |||
$resourceRepository |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | Generator |
public getObjectsByCollection ( Neos\Flow\ResourceManagement\CollectionInterface $collection, callable $callback = null ) : Generator | ||
$collection | Neos\Flow\ResourceManagement\CollectionInterface | |
$callback | callable | Function called after each iteration |
리턴 | Generator |
protected getStoragePathAndFilenameByHash ( string $sha1Hash ) : string | ||
$sha1Hash | string | The SHA1 hash identifying the stored resource |
리턴 | 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 | |
리턴 | 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" |
리턴 | 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 | ||
리턴 | void |
protected Environment,Neos\Flow\Utility $environment | ||
리턴 |
protected string $path | ||
리턴 | string |
protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager | ||
리턴 |