Свойство | Тип | Описание | |
---|---|---|---|
$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 |
public getFileSize ( ) : integer | ||
Результат | integer | The content size |
public getFilename ( ) : string | ||
Результат | string |
public getMediaType ( ) : string | ||
Результат | string |
public getRelativePublicationPath ( ) : string | ||
Результат | string |
public getStream ( ) : resource | ||
Результат | 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 |
Результат | void |
public setFilename ( string $filename ) : void | ||
$filename | string | |
Результат | void |
public setMediaType ( string $mediaType ) : void | ||
$mediaType | string | |
Результат | void |
public setRelativePublicationPath ( string $relativePublicationPath ) : void | ||
$relativePublicationPath | string | |
Результат | void |
protected int $fileSize | ||
Результат | integer |
protected string $md5 | ||
Результат | string |
protected string $mediaType | ||
Результат | string |
protected string $relativePublicationPath | ||
Результат | string |
protected string $sha1 | ||
Результат | string |
protected Closure|resource $stream | ||
Результат | Closure | resource |