elfinder.php
Implements elFinder as the 'connector' referenced by 'url' param in elfinder.tpl
Interfaces, Classes, Traits and Enums
- elFinderSimpleLogger
- example logger class Demonstrate how to work with elFinder event api.
- elFinderTestACL
- example accessControl class
Table of Contents
- ELFINDER_IMG_PARENT_URL = \PATH_RELATIVE . 'external/elFinder/'
- debug() : mixed
- logger() : void|true
- example logger function Demonstrate how to work with elFinder event api
- access() : bool|null
- Simple function to demonstrate how to control file access using "accessControl" callback.
- validName() : bool
- example acceptedName function
Constants
ELFINDER_IMG_PARENT_URL
public
mixed
ELFINDER_IMG_PARENT_URL
= \PATH_RELATIVE . 'external/elFinder/'
Functions
debug()
debug(mixed $o) : mixed
Parameters
- $o : mixed
Return values
mixed —logger()
example logger function Demonstrate how to work with elFinder event api
logger(string $cmd, array<string|int, mixed> $result, array<string|int, mixed> $args, elFinder $elfinder) : void|true
Parameters
- $cmd : string
-
command name
- $result : array<string|int, mixed>
-
command result
- $args : array<string|int, mixed>
-
command arguments from client
- $elfinder : elFinder
-
elFinder instance
Tags
Return values
void|true —access()
Simple function to demonstrate how to control file access using "accessControl" callback.
access(string $attr, string $path, string $data, object $volume, bool|null $isDir, string $relpath) : bool|null
This method will disable accessing files/folders starting from '.' (dot)
Parameters
- $attr : string
-
attribute name (read|write|locked|hidden)
- $path : string
-
absolute file path
- $data : string
-
value of volume option
accessControlData
- $volume : object
-
elFinder volume driver object
- $isDir : bool|null
-
path is directory (true: directory, false: file, null: unknown)
- $relpath : string
-
file path relative to volume root directory started with directory separator
Return values
bool|null —validName()
example acceptedName function
validName( $name) : bool