Documentation

fileuploader extends staticModel
in package

PHP fileupload handler

Tags
author

Stefan Seehafer sea75300@yahoo.de

copyright

(c) 2011-2021, Stefan Seehafer

license

http://www.gnu.org/licenses/gpl.txt GPLv3

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
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

$cacheModule

Cache Modul

protected string $cacheModule = ''
Tags
since
3.4

$cacheName

Cache name

protected string $cacheName = false

$data

Data array

protected array<string|int, mixed> $data

$uploader

Array mit $_FILES Struktur

protected array<string|int, mixed> $uploader

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

processAuthorImageUpload()

Führt Upload eines Artikel-Bildes aus

public processAuthorImageUpload(string $filename) : bool
Parameters
$filename : string
Tags
since
3.6
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
Tags
since
4.5
Return values
string|null

Search results