uploader

package

KCFinder @version 3.12 @author Pavel Tzonkov sunhater@sunhater.com

Methods

__construct

__construct()

Magic method which allows read-only access to protected or private class properties

__get(string $property): mixed

Arguments

$property

string

Response

mixed

backMsg

backMsg( $message,array $data = null)

Arguments

$message

$data

array

callBack

callBack( $url, $message = "")

Arguments

$url

$message

callBack_ckeditor

callBack_ckeditor( $url, $message)

Arguments

$url

$message

callBack_default

callBack_default( $url, $message)

Arguments

$url

$message

callBack_fckeditor

callBack_fckeditor( $url, $message)

Arguments

$url

$message

callBack_tinymce

callBack_tinymce( $url, $message)

Arguments

$url

$message

callBack_tinymce4

callBack_tinymce4( $url, $message)

Arguments

$url

$message

checkFilename

checkFilename( $file)

Arguments

$file

checkFilePath

checkFilePath( $file)

Arguments

$file

checkInputDir

checkInputDir( $dir, $inclType = true, $existing = true)

Arguments

$dir

$inclType

$existing

checkUploadedFile

checkUploadedFile(array $aFile = null)

Arguments

$aFile

array

controlCSRFToken

controlCSRFToken()

get_htaccess

get_htaccess()

getCSRFToken

getCSRFToken()

getTypeFromPath

getTypeFromPath( $path)

Arguments

$path

imageResize

imageResize( $image, $file = null)

Arguments

$image

$file

label

label( $string,array $data = null)

Arguments

$string

$data

array

localize

localize( $langCode)

Arguments

$langCode

makeThumb

makeThumb( $file, $overwrite = true)

Arguments

$file

$overwrite

normalizeDirname

normalizeDirname( $dirname)

Arguments

$dirname

normalizeFilename

normalizeFilename( $filename)

Arguments

$filename

realpath

realpath( $path)

Arguments

$path

removeTypeFromPath

removeTypeFromPath( $path)

Arguments

$path

upload

upload()

validateExtension

validateExtension( $ext, $type)

Arguments

$ext

$type

Constants

Release version

VERSION

Properties

Config session-overrided settings

config :array
var

Type(s)

array

Default image driver

imageDriver :string
var

Type(s)

string

Opener applocation properties

opener :array
var

Type(s)

array

Got from $_GET['type'] or first one $config['types'] array key, if inexistant

type :string
var

Type(s)

string

Helper property. Local filesystem path to the Type Directory Equivalent: $config['uploadDir'] . "/" . $type

typeDir :string
var

Type(s)

string

Helper property. Web URL to the Type Directory Equivalent: $config['uploadURL'] . "/" . $type

typeURL :string
var

Type(s)

string

Linked to $config['types']

types :array
var

Type(s)

array

Settings which can override default settings if exists as keys in $config['types'][$type] array

typeSettings :array
var

Type(s)

array

Got from language file

charset :string
var

Type(s)

string

The language got from $_GET['lng'] or $_GET['lang'] or.

lang :string

.. Please see next property

var

Type(s)

string

Possible language $_GET keys

langInputNames :array
var

Type(s)

array

Uploaded file(s) info. Linked to first $_FILES element

file :array
var

Type(s)

array

Next three properties are got from the current language file

dateTimeFull :string
var

Type(s)

string

dateTimeMid

dateTimeMid :

Type(s)

dateTimeSmall

dateTimeSmall :

Type(s)

Contain Specified language labels

labels :array
var

Type(s)

array

Session array. Please use this property instead of $_SESSION

session :array
var

Type(s)

array

CMS integration property (got from $_GET['cms'])

cms :string
var

Type(s)

string