vfsStreamContainer
extends
IteratorAggregate
in
Interface for stream contents that are able to store other stream contents.
Table of Contents
- addChild() : mixed
- adds child to the directory
- getChild() : vfsStreamContent
- returns the child with the given name
- getChildren() : array<string|int, vfsStreamContent>
- returns a list of children for this directory
- hasChild() : bool
- checks whether the container contains a child with the given name
- hasChildren() : bool
- checks whether directory contains any children
- removeChild() : bool
- removes child from the directory
Methods
addChild()
adds child to the directory
public
addChild(vfsStreamContent $child) : mixed
Parameters
- $child : vfsStreamContent
Return values
mixed —getChild()
returns the child with the given name
public
getChild(string $name) : vfsStreamContent
Parameters
- $name : string
Return values
vfsStreamContent —getChildren()
returns a list of children for this directory
public
getChildren() : array<string|int, vfsStreamContent>
Return values
array<string|int, vfsStreamContent> —hasChild()
checks whether the container contains a child with the given name
public
hasChild(string $name) : bool
Parameters
- $name : string
Return values
bool —hasChildren()
checks whether directory contains any children
public
hasChildren() : bool
Tags
Return values
bool —removeChild()
removes child from the directory
public
removeChild(string $name) : bool
Parameters
- $name : string