Property | Type | Description | |
---|---|---|---|
$children | list of directory children |
Method | Description | |
---|---|---|
__construct ( string $name, integer $permissions = null ) | constructor | |
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 | |
getIterator ( ) : |
returns iterator for the children | |
hasChild ( string $name ) : boolean | checks whether the container contains a child with the given name | |
hasChildren ( ) : boolean | checks whether directory contains any children | |
isDot ( ) : boolean | checks whether dir is a dot dir | |
removeChild ( string $name ) : boolean | removes child from the directory | |
rename ( string $newName ) | renames the content | |
setParentPath ( string $parentPath ) | sets parent path | |
size ( ) : integer | returns size of directory | |
sizeSummarized ( ) : integer | returns summarized size of directory and its children |
Method | Description | |
---|---|---|
getChildName ( string $name, string $ownName ) : string | helper method to calculate the child name | |
getDefaultPermissions ( ) : integer | returns default permissions for concrete implementation | |
getRealChildName ( string $name ) : string | helper method to detect the real child name | |
updateModifications ( ) | updates internal timestamps |
public __construct ( string $name, integer $permissions = null ) | ||
$name | string | |
$permissions | integer | optional |
public addChild ( org\bovigo\vfs\vfsStreamContent $child ) | ||
$child | org\bovigo\vfs\vfsStreamContent |
public getChildren ( ) : org\bovigo\vfs\vfsStreamContent[] | ||
return | org\bovigo\vfs\vfsStreamContent[] |
protected getDefaultPermissions ( ) : integer | ||
return | integer |
public getIterator ( ) : |
||
return |
protected getRealChildName ( string $name ) : string | ||
$name | string | |
return | string |
public hasChildren ( ) : boolean | ||
return | boolean |
public removeChild ( string $name ) : boolean | ||
$name | string | |
return | boolean |
public setParentPath ( string $parentPath ) | ||
$parentPath | string |
public sizeSummarized ( ) : integer | ||
return | integer |
protected updateModifications ( ) |