Method | Description | |
---|---|---|
__construct ( ) | ||
getCreated ( ) : mixed | Returns the created date. | |
getDescription ( ) : string | Returns the description for this attachment. | |
getExtension ( ) : string | Returns the extension for the file. | |
getFilename ( ) : string | Returns the plain filename without path and suffix. | |
getFullFilename ( ) | ||
getLegacyExtension ( ) : string | Returns the extension for the given mime type. | |
getMimeType ( ) : string | Returns the mime type for this file. | |
getOriginalFilename ( ) : string | Returns the original filename. | |
getReplacement ( ) : mixed | Returns the replacement image, if set. | |
getSize ( ) : integer | Returns the size of this file. | |
getType ( ) : string | Returns the type of the file. | |
setCreated ( mixed $created ) | Sets the created date. | |
setDescription ( string $description ) | Sets the description for this attachment. | |
setExtension ( string $extension ) | Sets the extension for this file. | |
setFilename ( $filename ) | Sets the plain filename without path and suffix. | |
setMimeType ( string $mimeType ) | Sets the mimetype for this file. | |
setOriginalFilename ( string $filename ) | Sets the original filename. | |
setReplacement ( $replacement ) | Sets a replacement image. | |
setSize ( integer $size ) | Sets the size of the file. |
Method | Description | |
---|---|---|
setType ( string $type ) | Sets the type of the file. Once the type is set, it may not be changed later. |
public getDescription ( ) : string | ||
return | string | The description |
public getExtension ( ) : string | ||
return | string | The extension |
public getFilename ( ) : string | ||
return | string | The plain filename without path and suffix |
public getLegacyExtension ( ) : string | ||
return | string | The extension |
public getMimeType ( ) : string | ||
return | string | The mimetype for this file, e.g. text/plain |
public getOriginalFilename ( ) : string | ||
return | string | The original filename |
public getReplacement ( ) : mixed | ||
return | mixed |
public setCreated ( mixed $created ) | ||
$created | mixed |
public setDescription ( string $description ) | ||
$description | string | The attachment description |
public setExtension ( string $extension ) | ||
$extension | string | The extension |
public setFilename ( $filename ) | ||
$filename | string The plain filename without path and suffix |
public setMimeType ( string $mimeType ) | ||
$mimeType | string | The mimetype |
public setOriginalFilename ( string $filename ) | ||
$filename | string | The original filename |
public setReplacement ( $replacement ) | ||
$replacement |