PHP Class elFinderConnector

Author: Dmitry (dio) Levashov
显示文件 Open project: studio-42/elfinder Class Usage Examples

Protected Properties

Property Type Description
$contentType string Content type of output JSON
$elFinder elFinder elFinder instance
$header string Must be use output($data) $data['header']
$options aray Options
$reqMethod string HTTP request method

Public Methods

Method Description
__construct ( $elFinder, boolean $debug = false ) Constructor
outputJson ( array $data ) Output JSON
run ( ) : void Execute elFinder command and output result

Protected Methods

Method Description
input_filter ( mixed $args ) : mixed Remove null & stripslashes applies on "magic_quotes_gpc"
output ( array $data ) : void Output json
sendHeader ( string | array $header = null ) Send HTTP header

Method Details

__construct() public method

Constructor
Author: Dmitry (dio) Levashov
public __construct ( $elFinder, boolean $debug = false )
$elFinder
$debug boolean

input_filter() protected method

Remove null & stripslashes applies on "magic_quotes_gpc"
Author: Naoki Sawada
protected input_filter ( mixed $args ) : mixed
$args mixed
return mixed

output() protected method

Output json
Author: Dmitry (dio) Levashov
protected output ( array $data ) : void
$data array
return void

outputJson() public static method

Output JSON
public static outputJson ( array $data )
$data array

run() public method

Execute elFinder command and output result
Author: Dmitry (dio) Levashov
public run ( ) : void
return void

sendHeader() protected static method

Send HTTP header
protected static sendHeader ( string | array $header = null )
$header string | array optional header

Property Details

$contentType protected_oe static_oe property

Content type of output JSON
protected static string $contentType
return string

$elFinder protected_oe property

elFinder instance
protected elFinder $elFinder
return elFinder

$header protected_oe property

Must be use output($data) $data['header']
Deprecation:
protected string $header
return string

$options protected_oe property

Options
protected aray $options
return aray

$reqMethod protected_oe property

HTTP request method
protected string $reqMethod
return string