Documentation

vfsStreamContainer extends IteratorAggregate

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

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
since
0.10.0
Return values
bool

removeChild()

removes child from the directory

public removeChild(string $name) : bool
Parameters
$name : string
Return values
bool

Search results