Properties

$files

$files : 

Type

$varPrefix

$varPrefix : 

Type

$dirPrefix

$dirPrefix : 

Type

$isUnique

$isUnique : 

Type

$dir

$dir : 

Type

$inZip

$inZip : 

Type

$zipFile

$zipFile : 

Type

$localZipPath

$localZipPath : 

Type

Methods

initFromHttpVars()

initFromHttpVars(array  $passedArray = null) : void

Init the selection from the query vars

Parameters

array $passedArray

initFromArray()

initFromArray(  $array) 

Init from a simple array

Parameters

$array

addFile()

addFile(string  $filePath) 

Parameters

string $filePath

isUnique()

isUnique() : boolean

Does the selection have one or more items

Returns

boolean

inZip()

inZip() : boolean

Are we currently inside a zip?

Returns

boolean

getZipPath()

getZipPath(boolean  $decode = false) : String

Returns UTF8 encoded path

Parameters

boolean $decode

Returns

String

getZipLocalPath()

getZipLocalPath(boolean  $decode = false) : String

Returns UTF8 encoded path

Parameters

boolean $decode

Returns

String

getCount()

getCount() : integer

Number of selected items

Returns

integer

getFiles()

getFiles() : array<mixed,string>

List of items selected

Returns

array<mixed,string>

getUniqueFile()

getUniqueFile() : string

First item of the list

Returns

string

currentBaseUrl()

currentBaseUrl() : string

Throws

\Exception

Returns

string

isEmpty()

isEmpty() : boolean

Is this selection empty?

Returns

boolean

detectZip()

detectZip(string  $dirPath) : array|boolean

Detect if there is .zip somewhere in the path

Parameters

string $dirPath

Returns

array|boolean

setFiles()

setFiles(array  $files) : void

Sets the selected items

Parameters

array $files

removeFile()

removeFile(  $file) 

Parameters

$file