PHP Interface org\bovigo\vfs\vfsStreamContainer

Inheritance: extends IteratorAggregate
Datei anzeigen Open project: mikey179/vfsstream

Public Methods

Method Description
addChild ( org\bovigo\vfs\vfsStreamContent $child ) adds child to the directory
getChild ( string $name ) : org\bovigo\vfs\vfsStreamContent returns the child with the given name
getChildren ( ) : org\bovigo\vfs\vfsStreamContent[] returns a list of children for this directory
hasChild ( string $name ) : boolean checks whether the container contains a child with the given name
hasChildren ( ) : boolean checks whether directory contains any children
removeChild ( string $name ) : boolean removes child from the directory

Method Details

addChild() public method

adds child to the directory
public addChild ( org\bovigo\vfs\vfsStreamContent $child )
$child org\bovigo\vfs\vfsStreamContent

getChild() public method

returns the child with the given name
public getChild ( string $name ) : org\bovigo\vfs\vfsStreamContent
$name string
return org\bovigo\vfs\vfsStreamContent

getChildren() public method

returns a list of children for this directory
public getChildren ( ) : org\bovigo\vfs\vfsStreamContent[]
return org\bovigo\vfs\vfsStreamContent[]

hasChild() public method

checks whether the container contains a child with the given name
public hasChild ( string $name ) : boolean
$name string
return boolean

hasChildren() public method

checks whether directory contains any children
Since: 0.10.0
public hasChildren ( ) : boolean
return boolean

removeChild() public method

removes child from the directory
public removeChild ( string $name ) : boolean
$name string
return boolean