PHP Class Todaymade\Daux\Tree\Entry

Exibir arquivo Open project: justinwalsh/daux.io Class Usage Examples

Protected Properties

Property Type Description
$info SplFileInfo
$name string
$parent Directory
$path string
$title string
$uri string

Public Methods

Method Description
__construct ( Directory $parent, string $uri, SplFileInfo $info = null )
dump ( )
getFileinfo ( ) : SplFileInfo
getName ( ) : string
getParent ( ) : Directory
getParents ( ) : Directory[] Return all parents starting with the root
getPath ( ) : string
getRelativePath ( ) : string Get the path to the file from the root of the documentation
getTitle ( ) : string
getUri ( ) : string
getUrl ( ) : string
setName ( string $name )
setTitle ( string $title )
setUri ( string $uri )

Protected Methods

Method Description
setParent ( Directory $parent )

Method Details

__construct() public method

public __construct ( Directory $parent, string $uri, SplFileInfo $info = null )
$parent Directory
$uri string
$info SplFileInfo

dump() public method

public dump ( )

getFileinfo() public method

public getFileinfo ( ) : SplFileInfo
return SplFileInfo

getName() public method

public getName ( ) : string
return string

getParent() public method

public getParent ( ) : Directory
return Directory

getParents() public method

Return all parents starting with the root
public getParents ( ) : Directory[]
return Directory[]

getPath() public method

public getPath ( ) : string
return string

getRelativePath() public method

Get the path to the file from the root of the documentation
public getRelativePath ( ) : string
return string

getTitle() public method

public getTitle ( ) : string
return string

getUri() public method

public getUri ( ) : string
return string

getUrl() public method

public getUrl ( ) : string
return string

setName() public method

public setName ( string $name )
$name string

setParent() protected method

protected setParent ( Directory $parent )
$parent Directory

setTitle() public method

public setTitle ( string $title )
$title string

setUri() public method

public setUri ( string $uri )
$uri string

Property Details

$info protected_oe property

protected SplFileInfo $info
return SplFileInfo

$name protected_oe property

protected string $name
return string

$parent protected_oe property

protected Directory,Todaymade\Daux\Tree $parent
return Directory

$path protected_oe property

protected string $path
return string

$title protected_oe property

protected string $title
return string

$uri protected_oe property

protected string $uri
return string