[ Index ]

PHP Cross Reference of DokuWiki




/inc/File/ -> MediaFile.php (summary)

(no description)

File Size: 166 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MediaFile:: (17 methods):

Class: MediaFile  - X-Ref

__construct($id, $rev = '')   X-Ref
MediaFile constructor.

param: string $id
param: string|int $rev optional revision

getId()   X-Ref
No description

getPath()   X-Ref
No description

getDisplayName()   X-Ref
The ID without namespace, used for display purposes

return: string

getMime()   X-Ref
No description

getExtension()   X-Ref
No description

getIcoClass()   X-Ref
Similar to the extesion but does some clean up

return: string

isDownloadable()   X-Ref
Should this file be downloaded instead being displayed inline?

return: bool

getFileSize()   X-Ref
No description

getLastModified()   X-Ref
No description

isWritable()   X-Ref
No description

isImage()   X-Ref
No description

initSizes()   X-Ref
initializes width and height for images when requested

getWidth()   X-Ref
Returns the width if this is a supported image, 0 otherwise

return: int

getHeight()   X-Ref
Returns the height if this is a supported image, 0 otherwise

return: int

userPermission()   X-Ref
Returns the permissions the current user has on the file

return: int

getMeta()   X-Ref
No description