fileuploader
extends staticModel
in
PHP fileupload handler
Table of Contents
$uploader | Array mit $_FILES Struktur | array |
---|---|---|
$finfo | finfo | |
$data | Data array | array |
$cache | Cache object | cache |
$events | Event list | events |
$config | Config object | config |
$language | Sprachobjekt | language |
$session | Session objekt | session |
$notifications | Notifications | notifications |
$permissions | Permissions | permissions |
$cacheName | Cache name | string |
$cacheModule | Cache Modul | string |
__construct() | Konstruktor | void |
processUpload() | Führt Upload via HTML-Form + PHP in Dateimanager durch | array |
processAuthorImageUpload() | Führt Upload eines Artikel-Bildes aus | bool |
getUploadFileName() | Returns complete file name which includes sub folder name for uploaded images | string |
getFinfoData() | Get file information via finfo | string|null |
__construct() | Konstruktor | void |
getCacheName() | Cache-Name zurückgeben | string |
Properties
$uploader
Array mit $_FILES Struktur
protected
array
$uploader
$finfo
private
finfo
$finfo
= null
$data
Data array
protected
array
$data
$cache
Cache object
protected
cache
$cache
$events
Event list
protected
events
$events
$config
Config object
protected
config
$config
$language
Sprachobjekt
protected
language
$language
$session
Session objekt
protected
session
$session
$notifications
Notifications
protected
notifications
$notifications
$permissions
Permissions
protected
permissions
$permissions
$cacheName
Cache name
protected
string
$cacheName
= false
$cacheModule
Cache Modul
protected
string
$cacheModule
= ''
Methods
__construct()
Konstruktor
public
__construct(
$uploader :
array
)
: void
Parameters
- $uploader : array
includes $_FILES array
processUpload()
Führt Upload via HTML-Form + PHP in Dateimanager durch
public
processUpload(
$userId :
int
)
: array
Parameters
- $userId : int
Return values
arrayprocessAuthorImageUpload()
Führt Upload eines Artikel-Bildes aus
public
processAuthorImageUpload(
$filename :
string
)
: bool
Parameters
- $filename : string
Tags
Return values
boolgetUploadFileName()
Returns complete file name which includes sub folder name for uploaded images
public
getUploadFileName(
$fileName :
string
)
: string
Parameters
- $fileName : string
Return values
stringgetFinfoData()
Get file information via finfo
protected
getFinfoData(
$filename :
string
[, $option :
int
= FILEINFO_MIME_TYPE ]
)
: string|null
Parameters
- $filename : string
- $option : int = FILEINFO_MIME_TYPE
Tags
Return values
string|null__construct()
Konstruktor
public
__construct(
)
: void
getCacheName()
Cache-Name zurückgeben
public
getCacheName(
[ $addName :
string
= '' ]
)
: string
Parameters
- $addName : string = ''