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