ListWith
extends AbstractPlugin
in package
Table of Contents
- $filesystem : FilesystemInterface
- getMethod() : string
- Get the method name.
- handle() : array<string|int, mixed>
- List contents with metadata.
- setFilesystem() : mixed
- Set the Filesystem object.
- getMetadataByName() : array<string|int, mixed>
- Get a meta-data value by key name.
Properties
$filesystem
protected
FilesystemInterface
$filesystem
Methods
getMethod()
Get the method name.
public
getMethod() : string
Return values
string —handle()
List contents with metadata.
public
handle([array<string|int, string> $keys = [] ][, string $directory = '' ][, bool $recursive = false ]) : array<string|int, mixed>
Parameters
- $keys : array<string|int, string> = []
- $directory : string = ''
- $recursive : bool = false
Return values
array<string|int, mixed> —listing with metadata
setFilesystem()
Set the Filesystem object.
public
setFilesystem(FilesystemInterface $filesystem) : mixed
Parameters
- $filesystem : FilesystemInterface
Return values
mixed —getMetadataByName()
Get a meta-data value by key name.
protected
getMetadataByName(array<string|int, mixed> $object, string $key) : array<string|int, mixed>
Parameters
- $object : array<string|int, mixed>
- $key : string