\League\Flysystem\UtilContentListingFormatter

Summary

Methods
Properties
Constants
__construct()
formatListing()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
addPathInfo()
isEntryOutOfScope()
residesInDirectory()
isDirectChild()
sortListing()
$directory
$recursive
$caseSensitive
N/A

Properties

$directory

$directory : string

Type

string

$recursive

$recursive : boolean

Type

boolean

$caseSensitive

$caseSensitive : boolean

Type

boolean

Methods

__construct()

__construct(string  $directory, boolean  $recursive,   $caseSensitive = true) 

Parameters

string $directory
boolean $recursive
$caseSensitive

formatListing()

formatListing(array  $listing) : array

Format contents listing.

Parameters

array $listing

Returns

array

addPathInfo()

addPathInfo(array  $entry) 

Parameters

array $entry

isEntryOutOfScope()

isEntryOutOfScope(array  $entry) : boolean

Determine if the entry is out of scope.

Parameters

array $entry

Returns

boolean

residesInDirectory()

residesInDirectory(array  $entry) : boolean

Check if the entry resides within the parent directory.

Parameters

array $entry

Returns

boolean

isDirectChild()

isDirectChild(array  $entry) : boolean

Check if the entry is a direct child of the directory.

Parameters

array $entry

Returns

boolean

sortListing()

sortListing(array  $listing) : array

Parameters

array $listing

Returns

array