PHP Class Todaymade\Daux\Tree\Builder

ファイルを表示 Open project: justinwalsh/daux.io Class Usage Examples

Protected Properties

Property Type Description
$IGNORED

Public Methods

Method Description
build ( Directory $node, array $ignore ) Build the initial tree
createContent ( Directory $parent, SplFileInfo $file ) : Todaymade\Daux\Tree\Content | Raw
getOrCreateDir ( Directory $parent, string $title ) : Directory
getOrCreatePage ( Directory $parent, string $path ) : Todaymade\Daux\Tree\ContentAbstract
removeSortingInformations ( string $filename ) : string

Protected Methods

Method Description
getName ( string $path ) : string Get name for a file
isIgnored ( SplFileInfo $file, $ignore )

Method Details

build() public static method

Build the initial tree
public static build ( Directory $node, array $ignore )
$node Directory
$ignore array

createContent() public static method

public static createContent ( Directory $parent, SplFileInfo $file ) : Todaymade\Daux\Tree\Content | Raw
$parent Directory
$file SplFileInfo
return Todaymade\Daux\Tree\Content | Raw

getName() protected static method

Get name for a file
protected static getName ( string $path ) : string
$path string
return string

getOrCreateDir() public static method

public static getOrCreateDir ( Directory $parent, string $title ) : Directory
$parent Directory
$title string
return Directory

getOrCreatePage() public static method

public static getOrCreatePage ( Directory $parent, string $path ) : Todaymade\Daux\Tree\ContentAbstract
$parent Directory
$path string
return Todaymade\Daux\Tree\ContentAbstract

isIgnored() protected static method

protected static isIgnored ( SplFileInfo $file, $ignore )
$file SplFileInfo

removeSortingInformations() public static method

public static removeSortingInformations ( string $filename ) : string
$filename string
return string

Property Details

$IGNORED protected_oe static_oe property

protected static $IGNORED