ZenphotoCMS 1.6.1

elFinderPluginNormalizer extends elFinderPlugin
in package

elFinder Plugin Normalizer UTF-8 Normalizer of file-name and file-path etc.

nfc(NFC): Canonical Decomposition followed by Canonical Composition nfkc(NFKC): Compatibility Decomposition followed by Canonical This plugin require Class "Normalizer" (PHP 5 >= 5.3.0, PECL intl >= 1.0.0) or PEAR package "I18N_UnicodeNormalizer" ex. binding, configure on connector options $opts = array( 'bind' => array( 'upload.pre mkdir.pre mkfile.pre rename.pre archive.pre ls.pre' => array( 'Plugin.Normalizer.cmdPreprocess' ), 'upload.presave paste.copyfrom' => array( 'Plugin.Normalizer.onUpLoadPreSave' ) ), // global configure (optional) 'plugin' => array( 'Normalizer' => array( 'enable' => true, 'nfc' => true, 'nfkc' => true, 'umlauts' => false, 'lowercase' => false, 'convmap' => array() ) ), // each volume configure (optional) 'roots' => array( array( 'driver' => 'LocalFileSystem', 'path' => '/path/to/files/', 'URL' => 'http://localhost/to/files/' 'plugin' => array( 'Normalizer' => array( 'enable' => true, 'nfc' => true, 'nfkc' => true, 'umlauts' => false, 'lowercase' => false, 'convmap' => array() ) ) ) ) );

Tags
author

Naoki Sawada

license

New BSD

Table of Contents

$opts  : array<string|int, mixed>
This plugin's options
$keyMap  : mixed
$replaced  : mixed
__construct()  : mixed
cmdPostprocess()  : mixed
cmdPreprocess()  : mixed
onUpLoadPreSave()  : mixed
getCurrentOpts()  : array<string|int, mixed>
Get current volume's options
iaEnabled()  : bool
Is enabled with options
normalize()  : mixed

Properties

$opts

This plugin's options

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

$keyMap

private mixed $keyMap = array('ls' => 'intersect', 'upload' => 'renames', 'mkdir' => array('name', 'dirs'))

$replaced

private mixed $replaced = array()

Methods

__construct()

public __construct(mixed $opts) : mixed
Parameters
$opts : mixed
Return values
mixed

cmdPostprocess()

public cmdPostprocess(mixed $cmd, mixed &$result, mixed $args, mixed $elfinder, mixed $volume) : mixed
Parameters
$cmd : mixed
$result : mixed
$args : mixed
$elfinder : mixed
$volume : mixed
Return values
mixed

cmdPreprocess()

public cmdPreprocess(mixed $cmd, mixed &$args, mixed $elfinder, mixed $volume) : mixed
Parameters
$cmd : mixed
$args : mixed
$elfinder : mixed
$volume : mixed
Return values
mixed

onUpLoadPreSave()

public onUpLoadPreSave(mixed &$thash, mixed &$name, mixed $src, mixed $elfinder, mixed $volume) : mixed
Parameters
$thash : mixed
$name : mixed
$src : mixed
$elfinder : mixed
$volume : mixed
Return values
mixed

getCurrentOpts()

Get current volume's options

protected getCurrentOpts(object $volume) : array<string|int, mixed>
Parameters
$volume : object
Return values
array<string|int, mixed>

options

iaEnabled()

Is enabled with options

protected iaEnabled(array<string|int, mixed> $opts[, elFinder $elfinder = null ]) : bool
Parameters
$opts : array<string|int, mixed>
$elfinder : elFinder = null
Return values
bool

normalize()

protected normalize(mixed $str, mixed $opts) : mixed
Parameters
$str : mixed
$opts : mixed
Return values
mixed

Search results