Property | Type | Description | |
---|---|---|---|
$collectionName | string | Name of a collection whose storage is used for storing this resource and whose target is used for publishing. | |
$deleted | boolean | An internal flag which tells if this PersistentResource object has been deleted during the current request | |
$environment | |||
$fileSize | integer | The size of this object's data | |
$filename | string | Filename which is used when the data of this resource is downloaded as a file or acting as a label | |
$lifecycleEventsActive | boolean | ||
$md5 | string | MD5 hash identifying the content attached to this resource | |
$mediaType | string | The IANA media type of this resource | |
$protected | boolean | As soon as the PersistentResource has been published, modifying this object is not allowed | |
$relativePublicationPath | string | An optional relative path which can be used by a publishing target for structuring resources into directories | |
$resourceManager | |||
$sha1 | string | SHA1 hash identifying the content attached to this resource | |
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | ||
$temporaryLocalCopyPathAndFilename | string |
Method | Description | |
---|---|---|
__toString ( ) : string | Returns the SHA1 of the content this PersistentResource is related to | |
createTemporaryLocalCopy ( ) : string | Returns the path to a local file representing this resource for use with read-only file operations such as reading or copying. | |
disableLifecycleEvents ( ) : void | A very internal function which disables the Doctrine lifecycle events for this PersistentResource. | |
getCacheEntryIdentifier ( ) : string | Returns a string which distinctly identifies this object and thus can be used as an identifier for cache entries related to this object. Introduced through the CacheAwareInterface. | |
getCollectionName ( ) : string | Returns the name of the collection this resource is part of | |
getFileExtension ( ) : string | Returns the file extension used for this resource | |
getFileSize ( ) : integer | Returns the size of the content of this resource | |
getFilename ( ) : string | Gets the filename | |
getHash ( ) : string | Returns the sha1 hash of the content of this resource | |
getMd5 ( ) : string | Returns the MD5 hash of the content of this resource | |
getMediaType ( ) : string | Returns the Media Type for this resource | |
getRelativePublicationPath ( ) : string | Returns the relative publication path | |
getResourcePointer ( ) : |
Returns the resource pointer | |
getSha1 ( ) : string | Returns the SHA1 hash of the content of this resource | |
getStream ( ) : resource | boolean | Returns a stream for use with read-only file operations such as reading or copying. | |
initializeObject ( integer $initializationCause ) : void | Protects this PersistentResource if it has been persisted already. | |
isDeleted ( ) : boolean | An internal method which tells if this PersistentResource object has been already deleted by the ResourceManager. | |
postPersist ( ) : void | Doctrine lifecycle event callback which is triggered on "postPersist" events. | |
preRemove ( ) : void | Doctrine lifecycle event callback which is triggered on "preRemove" events. | |
setCollectionName ( string $collectionName ) : void | Sets the name of the collection this resource should be part of | |
setDeleted ( boolean $flag = true ) : void | An internal method which marks the PersistentResource object as deleted. | |
setFileSize ( integer $fileSize ) : void | Sets the size of the content of this resource | |
setFilename ( string $filename ) : void | Sets the filename which is used when this resource is downloaded or saved as a file | |
setHash ( string $hash ) : void | Sets the SHA1 hash of the content of this resource | |
setMd5 ( string $md5 ) : void | Sets the MD5 hash of the content of this resource | |
setMediaType ( string $mediaType ) : void | Explicitly sets the Media Type for this resource | |
setRelativePublicationPath ( string $path ) : void | Sets a relative path which can be used by a publishing target for structuring resources into directories | |
setResourcePointer ( |
Sets the resource pointer | |
setSha1 ( string $sha1 ) : void | Sets the SHA1 hash of the content of this resource | |
shutdownObject ( ) : void | Takes care of removing a possibly existing temporary local copy on destruction of this object. |
Method | Description | |
---|---|---|
throwExceptionIfProtected ( ) : void | Throws an exception if this PersistentResource object is protected against modifications. |
public __toString ( ) : string | ||
return | string |
public createTemporaryLocalCopy ( ) : string | ||
return | string | Absolute path and filename pointing to the temporary local copy of this resource |
public disableLifecycleEvents ( ) : void | ||
return | void |
public getCacheEntryIdentifier ( ) : string | ||
return | string |
public getCollectionName ( ) : string | ||
return | string | Name of the collection, for example "persistentResources" |
public getFileExtension ( ) : string | ||
return | string | The file extension used for this file |
public getFileSize ( ) : integer | ||
return | integer | The content size |
public getFilename ( ) : string | ||
return | string | The filename |
public getMediaType ( ) : string | ||
return | string | The IANA Media Type |
public getRelativePublicationPath ( ) : string | ||
return | string |
public getResourcePointer ( ) : |
||
return | $resourcePointer |
public initializeObject ( integer $initializationCause ) : void | ||
$initializationCause | integer | |
return | void |
public postPersist ( ) : void | ||
return | void |
public setCollectionName ( string $collectionName ) : void | ||
$collectionName | string | Name of the collection |
return | void |
public setDeleted ( boolean $flag = true ) : void | ||
$flag | boolean | |
return | void |
public setFileSize ( integer $fileSize ) : void | ||
$fileSize | integer | The content size |
return | void |
public setFilename ( string $filename ) : void | ||
$filename | string | |
return | void |
public setMediaType ( string $mediaType ) : void | ||
$mediaType | string | The IANA Media Type |
return | void |
public setRelativePublicationPath ( string $path ) : void | ||
$path | string | |
return | void |
public setResourcePointer ( |
||
$resourcePointer | ||
return | void |
public shutdownObject ( ) : void | ||
return | void |
protected throwExceptionIfProtected ( ) : void | ||
return | void |
protected string $collectionName | ||
return | string |
protected bool $deleted | ||
return | boolean |
protected Environment,Neos\Flow\Utility $environment | ||
return |
protected string $filename | ||
return | string |
protected string $md5 | ||
return | string |
protected string $mediaType | ||
return | string |
protected bool $protected | ||
return | boolean |
protected string $relativePublicationPath | ||
return | string |
protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager | ||
return |
protected string $sha1 | ||
return | string |
protected SystemLoggerInterface,Neos\Flow\Log $systemLogger | ||
return | Neos\Flow\Log\SystemLoggerInterface |
protected string $temporaryLocalCopyPathAndFilename | ||
return | string |