40 $listing = array_values(
42 [$this,
'addPathInfo'],
43 array_filter($listing, [$this,
'isEntryOutOfScope'])
64 if (empty($entry[
'path']) && $entry[
'path'] !==
'0') {
68 if ($this->recursive) {
84 if ($this->directory ===
'') {
88 return strpos($entry[
'path'], $this->directory .
'/') === 0;
113 return strcasecmp($a[
'path'], $b[
'path']);
static dirname($path)
Get a normalized dirname from a path.
addPathInfo(array $entry)
residesInDirectory(array $entry)
Check if the entry resides within the parent directory.
isDirectChild(array $entry)
Check if the entry is a direct child of the directory.
__construct($directory, $recursive)
formatListing(array $listing)
Format contents listing.
static pathinfo($path)
Get normalized pathinfo.
isEntryOutOfScope(array $entry)
Determine if the entry is out of scope.
Create styles array
The data for the language used.
sortListing(array $listing)