com.woltlab.wcf.data.message.attachment.data.attachment
Represents an attachment.
DatabaseObject | --Attachment
| Class | Description |
|---|---|
AttachmentEditor |
Provides functions to manage attachments. |
| Type | Name |
|---|---|
static array |
$containerTypeCache |
string |
$contentPreview |
static array |
$fileTypeGroups |
string |
$fileTypeIcon |
| Return | Name |
|---|---|
Attachment |
__construct(integer $attachmentID, [array<mixed> $row = null])
|
void |
getContainerURL()
|
string |
getContentPreview()
|
string |
getFileTypeIcon()
|
void |
getHeight()
|
void |
getThumbnailHeight()
|
void |
getThumbnailWidth()
|
void |
getWidth()
|
protected static array $containerTypeCache = null
cache of the container types
protected string $contentPreview = null
preview of file contents
protected static array $fileTypeGroups = array(
'Music' => array('Aif', 'Mid', 'Mp3', 'Ogg', 'Wav', 'Aiff', 'M4a'),'System'=>array('Bat','Dll'),'Web'=>array('Css','Js'),'Database'=>array('Db'),'Image'=>array('Dmg','Img','Iso'),'TextDocument'=>array('Doc','Sxw','Odt','Swd'),'Picture'=>array('Png','Gif','Jpg','Jpeg','Tif','Tiff','Tga','Bmp','Psd'),'Html'=>array('Html','Htm','Shtml','Tpl','Mht'),'Text'=>array('Txt','Log','Sql','Rtf','Wri','Diff'),'Font'=>array('Otf','Ttf','Fon','Dfont'),'Archive'=>array('Zip','Rar','Ace','7z','Tar','Gz','Gzip','Tgz','Bz2','Sit','Sitx'),'SpreadSheet'=>array('Xls','Sxc','Ods','Csv'),//'Video' => array('Mpeg', 'Avi', 'Wma', 'Mpg'),
//'Xml' => array('Xml', 'Dtd'),
//'Flash' => array('Swf', 'Fla'),
'Java'=>array('Jar','Java','Class')//,
//'Php' => array('Php', 'Php3', 'Php4', 'Php5', 'Phtml')
)
list of the file types
protected string $fileTypeIcon = null
path to file type icon
public Attachment __construct(integer $attachmentID, [array<mixed> $row = null])
Creates a new Attachment object.
$attachmentID $row Redefinition of: DatabaseObject::__construct()
public void getContainerURL()
Returns the url to the object that contains this attachment.
return string
public string getContentPreview()
Returns an abstract of the file content.
public string getFileTypeIcon()
Returns the right file type icon for the given attachment.
public void getHeight()
public void getThumbnailHeight()
public void getThumbnailWidth()
public void getWidth()
DatabaseObject::__construct(), DatabaseObject::handleData(), DatabaseObject::sort(), DatabaseObject::__get()