elFinderConnector
in package
Default elFinder connector
Tags
Table of Contents
Properties
- $contentType : string
- Content type of output JSON
- $elFinder : elFinder
- elFinder instance
- $header : string
- Must be use output($data) $data['header']
- $options : array<string|int, mixed>
- Options
- $reqMethod : string
- HTTP request method
Methods
- __construct() : mixed
- Constructor
- outputJson() : mixed
- Output JSON
- run() : void
- Execute elFinder command and output result
- setHeader() : mixed
- Sets the header.
- input_filter() : mixed
- Remove null & stripslashes applies on "magic_quotes_gpc"
- output() : void
- Output json
- sendHeader() : mixed
- Send HTTP header
Properties
$contentType
Content type of output JSON
protected
static string
$contentType
= 'Content-Type: application/json; charset=utf-8'
$elFinder
elFinder instance
protected
elFinder
$elFinder
$header
Must be use output($data) $data['header']
protected
string
$header
= ''
Tags
$options
Options
protected
array<string|int, mixed>
$options
= array()
$reqMethod
HTTP request method
protected
string
$reqMethod
= ''
Methods
__construct()
Constructor
public
__construct( $elFinder[, bool $debug = false ]) : mixed
Parameters
Tags
outputJson()
Output JSON
public
static outputJson(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
run()
Execute elFinder command and output result
public
run() : void
Tags
setHeader()
Sets the header.
public
setHeader(array<string|int, mixed>|string $value) : mixed
Parameters
- $value : array<string|int, mixed>|string
-
HTTP header(s)
input_filter()
Remove null & stripslashes applies on "magic_quotes_gpc"
protected
input_filter(mixed $args) : mixed
Parameters
- $args : mixed
Tags
output()
Output json
protected
output(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Tags
sendHeader()
Send HTTP header
protected
static sendHeader([string|array<string|int, mixed> $header = null ]) : mixed
Parameters
- $header : string|array<string|int, mixed> = null
-
optional header