PHP Class TheSeer\phpDox\Collector\IndexCollection

ファイルを表示 Open project: theseer/phpdox Class Usage Examples

Public Methods

Method Description
__construct ( TheSeer\phpDox\FileInfo $srcDir )
addClass ( ClassObject $class )
addInterface ( InterfaceObject $interface )
addTrait ( TraitObject $trait )
export ( ) : TheSeer\fDOM\fDOMDocument This method exports all newly registered units into their respective files and updates the collection file accordingly
findUnitNodeByName ( $namespace, $name ) : TheSeer\fDOM\fDOMElement
findUnitNodesBySrcFile ( $path ) : DOMNodeList
import ( TheSeer\fDOM\fDOMDocument $dom ) : void

Private Methods

Method Description
addUnit ( AbstractUnitObject $unit, $type )
getRootElement ( )
initDomDocument ( )

Method Details

__construct() public method

public __construct ( TheSeer\phpDox\FileInfo $srcDir )
$srcDir TheSeer\phpDox\FileInfo

addClass() public method

public addClass ( ClassObject $class )
$class ClassObject

addInterface() public method

public addInterface ( InterfaceObject $interface )
$interface InterfaceObject

addTrait() public method

public addTrait ( TraitObject $trait )
$trait TraitObject

export() public method

This method exports all newly registered units into their respective files and updates the collection file accordingly
public export ( ) : TheSeer\fDOM\fDOMDocument
return TheSeer\fDOM\fDOMDocument

findUnitNodeByName() public method

public findUnitNodeByName ( $namespace, $name ) : TheSeer\fDOM\fDOMElement
$namespace
$name
return TheSeer\fDOM\fDOMElement

findUnitNodesBySrcFile() public method

public findUnitNodesBySrcFile ( $path ) : DOMNodeList
$path
return DOMNodeList

import() public method

public import ( TheSeer\fDOM\fDOMDocument $dom ) : void
$dom TheSeer\fDOM\fDOMDocument
return void