LimeSurvey API - Master branch

uploader

Table of Contents

Constants

VERSION  = "3.12"
Release version

Properties

$charset  : string
Got from language file
$cms  : string
CMS integration property (got from $_GET['cms'])
$config  : array<string|int, mixed>
Config session-overrided settings
$dateTimeFull  : string
Next three properties are got from the current language file
$dateTimeMid  : mixed
$dateTimeSmall  : mixed
$file  : array<string|int, mixed>
Uploaded file(s) info. Linked to first $_FILES element
$imageDriver  : string
Default image driver
$labels  : array<string|int, mixed>
Contain Specified language labels
$lang  : string
The language got from $_GET['lng'] or $_GET['lang'] or... Please see next property
$langInputNames  : array<string|int, mixed>
Possible language $_GET keys
$opener  : array<string|int, mixed>
Opener applocation properties
$session  : array<string|int, mixed>
Session array. Please use this property instead of $_SESSION
$type  : string
Got from $_GET['type'] or first one $config['types'] array key, if inexistant
$typeDir  : string
Helper property. Local filesystem path to the Type Directory Equivalent: $config['uploadDir'] . "/" . $type
$types  : array<string|int, mixed>
Linked to $config['types']
$typeSettings  : array<string|int, mixed>
Settings which can override default settings if exists as keys in $config['types'][$type] array
$typeURL  : string
Helper property. Web URL to the Type Directory Equivalent: $config['uploadURL'] . "/" . $type

Methods

__construct()  : mixed
__get()  : mixed
Magic method which allows read-only access to protected or private class properties
upload()  : mixed
backMsg()  : mixed
callBack()  : mixed
callBack_ckeditor()  : mixed
callBack_default()  : mixed
callBack_fckeditor()  : mixed
callBack_tinymce()  : mixed
callBack_tinymce4()  : mixed
checkFilename()  : mixed
checkFilePath()  : mixed
checkInputDir()  : mixed
checkUploadedFile()  : mixed
controlCSRFToken()  : mixed
get_htaccess()  : mixed
getCSRFToken()  : mixed
getTypeFromPath()  : mixed
imageResize()  : mixed
label()  : mixed
localize()  : mixed
makeThumb()  : mixed
normalizeDirname()  : mixed
normalizeFilename()  : mixed
realpath()  : mixed
removeTypeFromPath()  : mixed
validateExtension()  : mixed

Constants

VERSION

Release version

public mixed VERSION = "3.12"

Properties

$charset

Got from language file

protected string $charset

$cms

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

protected string $cms = ""

$config

Config session-overrided settings

protected array<string|int, mixed> $config = array()

$dateTimeFull

Next three properties are got from the current language file

protected string $dateTimeFull

$dateTimeMid

protected mixed $dateTimeMid

$dateTimeSmall

protected mixed $dateTimeSmall

$file

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

protected array<string|int, mixed> $file

$imageDriver

Default image driver

protected string $imageDriver = "gd"

$labels

Contain Specified language labels

protected array<string|int, mixed> $labels = array()

$lang

The language got from $_GET['lng'] or $_GET['lang'] or... Please see next property

protected string $lang = "en"

$langInputNames

Possible language $_GET keys

protected array<string|int, mixed> $langInputNames = array('lang', 'langCode', 'lng', 'language', 'lang_code')

$opener

Opener applocation properties

protected array<string|int, mixed> $opener = array()

$session

Session array. Please use this property instead of $_SESSION

protected array<string|int, mixed> $session

$type

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

protected string $type

$typeDir

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

protected string $typeDir

$types

Linked to $config['types']

protected array<string|int, mixed> $types = array()

$typeSettings

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

protected array<string|int, mixed> $typeSettings = array('disabled', 'theme', 'dirPerms', 'filePerms', 'denyZipDownload', 'maxImageWidth', 'maxImageHeight', 'thumbWidth', 'thumbHeight', 'jpegQuality', 'access', 'filenameChangeChars', 'dirnameChangeChars', 'denyExtensionRename', 'deniedExts', 'watermark')

$typeURL

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

protected string $typeURL

Methods

__construct()

public __construct() : mixed

__get()

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

public __get(string $property) : mixed
Parameters
$property : string

backMsg()

protected backMsg(mixed $message[, array<string|int, mixed>|null $data = null ]) : mixed
Parameters
$message : mixed
$data : array<string|int, mixed>|null = null

callBack()

protected callBack(mixed $url[, mixed $message = "" ]) : mixed
Parameters
$url : mixed
$message : mixed = ""

callBack_ckeditor()

protected callBack_ckeditor(mixed $url, mixed $message) : mixed
Parameters
$url : mixed
$message : mixed

callBack_default()

protected callBack_default(mixed $url, mixed $message) : mixed
Parameters
$url : mixed
$message : mixed

callBack_fckeditor()

protected callBack_fckeditor(mixed $url, mixed $message) : mixed
Parameters
$url : mixed
$message : mixed

callBack_tinymce()

protected callBack_tinymce(mixed $url, mixed $message) : mixed
Parameters
$url : mixed
$message : mixed

callBack_tinymce4()

protected callBack_tinymce4(mixed $url, mixed $message) : mixed
Parameters
$url : mixed
$message : mixed

checkFilename()

protected checkFilename(mixed $file) : mixed
Parameters
$file : mixed

checkFilePath()

protected checkFilePath(mixed $file) : mixed
Parameters
$file : mixed

checkInputDir()

protected checkInputDir(mixed $dir[, mixed $inclType = true ][, mixed $existing = true ]) : mixed
Parameters
$dir : mixed
$inclType : mixed = true
$existing : mixed = true

checkUploadedFile()

protected checkUploadedFile([array<string|int, mixed>|null $aFile = null ]) : mixed
Parameters
$aFile : array<string|int, mixed>|null = null

controlCSRFToken()

protected controlCSRFToken() : mixed

get_htaccess()

protected get_htaccess() : mixed

getCSRFToken()

protected getCSRFToken() : mixed

getTypeFromPath()

protected getTypeFromPath(mixed $path) : mixed
Parameters
$path : mixed

imageResize()

protected imageResize(mixed $image[, mixed $file = null ]) : mixed
Parameters
$image : mixed
$file : mixed = null

label()

protected label(mixed $string[, array<string|int, mixed>|null $data = null ]) : mixed
Parameters
$string : mixed
$data : array<string|int, mixed>|null = null

localize()

protected localize(mixed $langCode) : mixed
Parameters
$langCode : mixed

makeThumb()

protected makeThumb(mixed $file[, mixed $overwrite = true ]) : mixed
Parameters
$file : mixed
$overwrite : mixed = true

normalizeDirname()

protected normalizeDirname(mixed $dirname) : mixed
Parameters
$dirname : mixed

normalizeFilename()

protected normalizeFilename(mixed $filename) : mixed
Parameters
$filename : mixed

realpath()

protected realpath(mixed $path) : mixed
Parameters
$path : mixed

removeTypeFromPath()

protected removeTypeFromPath(mixed $path) : mixed
Parameters
$path : mixed

validateExtension()

protected validateExtension(mixed $ext, mixed $type) : mixed
Parameters
$ext : mixed
$type : mixed

        
On this page

Search results