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
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

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