Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
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 |
public getFileSize ( ) : integer | ||
return | integer | The content size |
public getFilename ( ) : string | ||
return | string |
public getMediaType ( ) : string | ||
return | string |
public getRelativePublicationPath ( ) : string | ||
return | string |
public getStream ( ) : resource | ||
return | resource | A data stream resource; if the stream is seekable, it is rewound to the start |
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 | |
return | void |
public setRelativePublicationPath ( string $relativePublicationPath ) : void | ||
$relativePublicationPath | string | |
return | void |
protected string $mediaType | ||
return | string |
protected string $relativePublicationPath | ||
return | string |
protected string $sha1 | ||
return | string |
protected Closure|resource $stream | ||
return | Closure | resource |