PHP Класс Neos\Flow\ResourceManagement\Storage\StorageObject

This class is used internally as a representation of the actual storage data. The main purpose for Object is to transfer data and meta data from a storage to a publishing target. It must not be used outside the resource management framework.
Наследование: implements Neos\Flow\ResourceManagement\ResourceMetaDataInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$fileSize integer The size of this object's data
$filename string The suggested filename
$md5 string MD5 hash identifying this object's data
$mediaType string The IANA media type of the stored data
$relativePublicationPath string A suggested relative path for publication of this data
$sha1 string SHA1 hash identifying this object's data
$stream Closure | resource A stream (or, before it is used the first time, a Closure which returns a stream) which can deliver the data of this Object

Открытые методы

Метод Описание
getFileSize ( ) : integer Returns the size of the content of this storage object
getFilename ( ) : string Retrieve the suggested filename of this Object
getMd5 ( ) : string Returns the md5 hash of the content of this storage object
getMediaType ( ) : string Retrieve the IANA media type of this Object
getRelativePublicationPath ( ) : string Retrieve the suggested relative publication path
getSha1 ( ) : string Retrieve the SHA1 hash identifying the data of this object
getStream ( ) : resource Returns the data stream which can deliver the content of this storage object
setFileSize ( integer $fileSize ) : void Sets the size of the content of this storage object
setFilename ( string $filename ) : void Set the suggested filename of this Object
setMd5 ( string $md5 ) : void Sets the md5 hash of the content of this storage object
setMediaType ( string $mediaType ) : void Set the IANA media type of this Object
setRelativePublicationPath ( string $relativePublicationPath ) : void Set the suggested relative publication path
setSha1 ( string $sha1 ) : void Set the SHA1 hash identifying the data of this Object
setStream ( resource | Closure $stream ) : void Sets the data stream which can deliver the content of this storage object

Описание методов

getFileSize() публичный Метод

Returns the size of the content of this storage object
public getFileSize ( ) : integer
Результат integer The content size

getFilename() публичный Метод

Retrieve the suggested filename of this Object
public getFilename ( ) : string
Результат string

getMd5() публичный Метод

Returns the md5 hash of the content of this storage object
public getMd5 ( ) : string
Результат string The MD5 hash

getMediaType() публичный Метод

Retrieve the IANA media type of this Object
public getMediaType ( ) : string
Результат string

getRelativePublicationPath() публичный Метод

Retrieve the suggested relative publication path
public getRelativePublicationPath ( ) : string
Результат string

getSha1() публичный Метод

Retrieve the SHA1 hash identifying the data of this object
public getSha1 ( ) : string
Результат string

getStream() публичный Метод

Returns the data stream which can deliver the content of this storage object
public getStream ( ) : resource
Результат resource A data stream resource; if the stream is seekable, it is rewound to the start

setFileSize() публичный Метод

Sets the size of the content of this storage object
public setFileSize ( integer $fileSize ) : void
$fileSize integer The content size
Результат void

setFilename() публичный Метод

Set the suggested filename of this Object
public setFilename ( string $filename ) : void
$filename string
Результат void

setMd5() публичный Метод

Sets the md5 hash of the content of this storage object
public setMd5 ( string $md5 ) : void
$md5 string The MD5 hash
Результат void

setMediaType() публичный Метод

Set the IANA media type of this Object
public setMediaType ( string $mediaType ) : void
$mediaType string
Результат void

setRelativePublicationPath() публичный Метод

Set the suggested relative publication path
public setRelativePublicationPath ( string $relativePublicationPath ) : void
$relativePublicationPath string
Результат void

setSha1() публичный Метод

Set the SHA1 hash identifying the data of this Object
public setSha1 ( string $sha1 ) : void
$sha1 string
Результат void

setStream() публичный Метод

Instead of providing a stream (PHP resource), you can also pass a Closure which returns a stream when it is evaluated.
public setStream ( resource | Closure $stream ) : void
$stream resource | Closure The data stream, or a Closure which returns one
Результат void

Описание свойств

$fileSize защищенное свойство

The size of this object's data
protected int $fileSize
Результат integer

$filename защищенное свойство

The suggested filename
protected string $filename
Результат string

$md5 защищенное свойство

MD5 hash identifying this object's data
protected string $md5
Результат string

$mediaType защищенное свойство

The IANA media type of the stored data
protected string $mediaType
Результат string

$relativePublicationPath защищенное свойство

A suggested relative path for publication of this data
protected string $relativePublicationPath
Результат string

$sha1 защищенное свойство

SHA1 hash identifying this object's data
protected string $sha1
Результат string

$stream защищенное свойство

A stream (or, before it is used the first time, a Closure which returns a stream) which can deliver the data of this Object
protected Closure|resource $stream
Результат Closure | resource