WIKINDX API trunk

FileManager
in package

FileManager

The class for any kind of file managing (new folder, upload, etc).

Table of Contents

Properties

$dirs  : array<string|int, mixed>
array
$files  : array<string|int, mixed>
array

Methods

readDir()  : void
Read the file list from the directory
run()  : void
The main function, checks if the user wants to perform any supported operations
uploadFile()  : void
Upload a file

Properties

$dirs

array

public array<string|int, mixed> $dirs = []

$files

array

public array<string|int, mixed> $files = []

Methods

readDir()

Read the file list from the directory

public readDir() : void

run()

The main function, checks if the user wants to perform any supported operations

public run(Location $location) : void
Parameters
$location : Location

Location

uploadFile()

Upload a file

public uploadFile(Location $location, string $userfile) : void
Parameters
$location : Location

Location

$userfile : string

Filename path


        
On this page

Search results