PHP 클래스 org\bovigo\vfs\vfsStreamDirectory

상속: extends vfsStreamAbstractContent, implements org\bovigo\vfs\vfsStreamContainer
파일 보기 프로젝트 열기: mikey179/vfsstream 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$children list of directory children

공개 메소드들

메소드 설명
__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 ( ) : vfsStreamContainerIterator 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

보호된 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

constructor
public __construct ( string $name, integer $permissions = null )
$name string
$permissions integer optional

addChild() 공개 메소드

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

getChild() 공개 메소드

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

getChildName() 보호된 정적인 메소드

helper method to calculate the child name
protected static getChildName ( string $name, string $ownName ) : string
$name string
$ownName string
리턴 string

getChildren() 공개 메소드

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

getDefaultPermissions() 보호된 메소드

returns default permissions for concrete implementation
부터: 0.8.0
protected getDefaultPermissions ( ) : integer
리턴 integer

getIterator() 공개 메소드

returns iterator for the children
public getIterator ( ) : vfsStreamContainerIterator
리턴 vfsStreamContainerIterator

getRealChildName() 보호된 메소드

helper method to detect the real child name
protected getRealChildName ( string $name ) : string
$name string
리턴 string

hasChild() 공개 메소드

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

hasChildren() 공개 메소드

checks whether directory contains any children
부터: 0.10.0
public hasChildren ( ) : boolean
리턴 boolean

isDot() 공개 메소드

checks whether dir is a dot dir
public isDot ( ) : boolean
리턴 boolean

removeChild() 공개 메소드

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

rename() 공개 메소드

renames the content
public rename ( string $newName )
$newName string

setParentPath() 공개 메소드

sets parent path
부터: 1.2.0
public setParentPath ( string $parentPath )
$parentPath string

size() 공개 메소드

The size of a directory is always 0 bytes. To calculate the summarized size of all children in the directory use sizeSummarized().
public size ( ) : integer
리턴 integer

sizeSummarized() 공개 메소드

returns summarized size of directory and its children
public sizeSummarized ( ) : integer
리턴 integer

updateModifications() 보호된 메소드

updates internal timestamps
protected updateModifications ( )

프로퍼티 상세

$children 보호되어 있는 프로퍼티

list of directory children
protected $children