Method |
Description |
|
Attachment ( $p_id = null ) |
|
|
GetTotalAttachments ( ) : integer |
|
|
GetUnedited ( $p_id ) : array |
Return the ids of the file not edited yet. |
|
OnFileUpload ( array $p_fileVar, array $p_attributes, integer $p_id = null, boolean $p_uploaded = false ) : mixed |
This function should be called when an attachment is uploaded. It will
save the attachment to the appropriate place on the disk, and create a
database entry for the file. |
|
ProcessFile ( string $p_tmpFile, string $p_newFile, integer $p_userId = NULL, $p_attributes = NULL ) : Image | null |
Process multi-upload file. |
|
delete ( ) |
constructor |
|
getAttachmentId ( ) : integer |
|
|
getAttachmentUri ( ) : string |
Return the full URL to the attached image. |
|
getAttachmentUrl ( ) : string |
Return the full URL to the attached image. |
|
getCharset ( ) : string |
Return the CHARSET which should be set in the HTTP header sent
to the downloader. |
|
getContentDisposition ( ) : mixed |
Return whether the "content-disposition" HTTP header should be set. |
|
getDescription ( integer $p_languageId ) : string |
Get the description in the given language. |
|
getDescriptionId ( ) : integer |
Get the description ID which is an index into the Translations table. |
|
getExtension ( ) : string |
Return the file name extension |
|
getFileName ( ) : string |
|
|
getLanguageId ( ) : integer |
If this attachment is language-specific, e.g. a PDF written
in Serbian, this will return the language id of the attachment. |
|
getLastModified ( ) |
fn setDescription |
|
getLevel1DirectoryName ( ) |
fn getStorageLocation |
|
getLevel2DirectoryName ( ) |
fn getLevel1DirectoryName |
|
getMimeType ( ) : string |
Return the MIME type which should be set in the HTTP header
to the downloader. |
|
getSizeInBytes ( ) : integer |
Get the size of the file in bytes |
|
getSource ( ) : string |
|
|
getStatus ( ) : string |
|
|
getStorageLocation ( ) : string |
Get the full path to the storage location of the file on disk. |
|
getTimeCreated ( ) |
fn getLastModified |
|
getUploadingUserId ( ) : integer |
|
|
inUse ( ) : boolean |
Return true if the attachment is being used by an article. |
|
makeDirectories ( ) |
fn getLevel2DirectoryName |
|
setContentDisposition ( mixed $p_value ) : boolean |
Set the "content-disposition" HTTP header. |
|
setDescription ( integer $p_languageId, string $p_text ) |
Set the description in the given language. |
|
setLanguageId ( integer $p_value ) : boolean |
|
|