vfsStreamStructureVisitor
extends vfsStreamAbstractVisitor
in package
Visitor which traverses a content structure recursively to create an array structure from it.
Tags
Table of Contents
- $current : mixed
- poiting to currently iterated directory
- $structure : mixed
- collected structure
- __construct() : mixed
- constructor
- getStructure() : array<string|int, mixed>
- returns structure of visited contents
- reset() : vfsStreamStructureVisitor
- resets structure so visitor could be reused
- visit() : vfsStreamVisitor
- visit a content and process it
- visitBlockDevice() : vfsStreamStructureVisitor
- visit a block device and process it
- visitDirectory() : vfsStreamStructureVisitor
- visit a directory and process it
- visitFile() : vfsStreamStructureVisitor
- visit a file and process it
Properties
$current
poiting to currently iterated directory
protected
mixed
$current
Tags
$structure
collected structure
protected
mixed
$structure
= array()
Tags
Methods
__construct()
constructor
public
__construct() : mixed
Return values
mixed —getStructure()
returns structure of visited contents
public
getStructure() : array<string|int, mixed>
Return values
array<string|int, mixed> —reset()
resets structure so visitor could be reused
public
reset() : vfsStreamStructureVisitor
Return values
vfsStreamStructureVisitor —visit()
visit a content and process it
public
visit(vfsStreamContent $content) : vfsStreamVisitor
Parameters
- $content : vfsStreamContent
Tags
Return values
vfsStreamVisitor —visitBlockDevice()
visit a block device and process it
public
visitBlockDevice(vfsStreamBlock $block) : vfsStreamStructureVisitor
Parameters
- $block : vfsStreamBlock
Return values
vfsStreamStructureVisitor —visitDirectory()
visit a directory and process it
public
visitDirectory(vfsStreamDirectory $dir) : vfsStreamStructureVisitor
Parameters
- $dir : vfsStreamDirectory
Return values
vfsStreamStructureVisitor —visitFile()
visit a file and process it
public
visitFile(vfsStreamFile $file) : vfsStreamStructureVisitor
Parameters
- $file : vfsStreamFile