PHP Class elFinderConnector

Author: Dmitry (dio) Levashov
Afficher le fichier Open project: studio-42/elfinder Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

input_filter() protected méthode

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

output() protected méthode

Output json
Author: Dmitry (dio) Levashov
protected output ( array $data ) : void
$data array
Résultat void

outputJson() public static méthode

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

run() public méthode

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

sendHeader() protected static méthode

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
Résultat string

$elFinder protected_oe property

elFinder instance
protected elFinder $elFinder
Résultat elFinder

$header protected_oe property

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

$options protected_oe property

Options
protected aray $options
Résultat aray

$reqMethod protected_oe property

HTTP request method
protected string $reqMethod
Résultat string