Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
throwExceptionIfProtected ( ) : void | Throws an exception if this PersistentResource object is protected against modifications. |
public __toString ( ) : string | ||
Результат | string |
public createTemporaryLocalCopy ( ) : string | ||
Результат | string | Absolute path and filename pointing to the temporary local copy of this resource |
public disableLifecycleEvents ( ) : void | ||
Результат | void |
public getCacheEntryIdentifier ( ) : string | ||
Результат | string |
public getCollectionName ( ) : string | ||
Результат | string | Name of the collection, for example "persistentResources" |
public getFileExtension ( ) : string | ||
Результат | string | The file extension used for this file |
public getFileSize ( ) : integer | ||
Результат | integer | The content size |
public getFilename ( ) : string | ||
Результат | string | The filename |
public getMediaType ( ) : string | ||
Результат | string | The IANA Media Type |
public getRelativePublicationPath ( ) : string | ||
Результат | string |
public getResourcePointer ( ) : |
||
Результат | $resourcePointer |
public initializeObject ( integer $initializationCause ) : void | ||
$initializationCause | integer | |
Результат | void |
public postPersist ( ) : void | ||
Результат | void |
public setCollectionName ( string $collectionName ) : void | ||
$collectionName | string | Name of the collection |
Результат | void |
public setDeleted ( boolean $flag = true ) : void | ||
$flag | boolean | |
Результат | void |
public setFileSize ( integer $fileSize ) : void | ||
$fileSize | integer | The content size |
Результат | void |
public setFilename ( string $filename ) : void | ||
$filename | string | |
Результат | void |
public setMediaType ( string $mediaType ) : void | ||
$mediaType | string | The IANA Media Type |
Результат | void |
public setRelativePublicationPath ( string $path ) : void | ||
$path | string | |
Результат | void |
public setResourcePointer ( |
||
$resourcePointer | ||
Результат | void |
public shutdownObject ( ) : void | ||
Результат | void |
protected throwExceptionIfProtected ( ) : void | ||
Результат | void |
protected string $collectionName | ||
Результат | string |
protected bool $deleted | ||
Результат | boolean |
protected Environment,Neos\Flow\Utility $environment | ||
Результат |
protected int $fileSize | ||
Результат | integer |
protected string $filename | ||
Результат | string |
protected string $md5 | ||
Результат | string |
protected string $mediaType | ||
Результат | string |
protected bool $protected | ||
Результат | boolean |
protected string $relativePublicationPath | ||
Результат | string |
protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager | ||
Результат |
protected string $sha1 | ||
Результат | string |
protected SystemLoggerInterface,Neos\Flow\Log $systemLogger | ||
Результат | Neos\Flow\Log\SystemLoggerInterface |
protected string $temporaryLocalCopyPathAndFilename | ||
Результат | string |