PHP Class TreemapNode, simpletest

Afficher le fichier Open project: simpletest/simpletest Class Usage Examples

Méthodes publiques

Свойство Type Description
$_description
$_name
$_parent
$_size
$_status

Méthodes publiques

Méthode Description
__construct ( $name, $description, $status = true )
compareChildren ( $a, $b ) Comparator method to rank child nodes by total weight.
fail ( ) Fail this node.
getChildren ( ) Return list of child nodes from direct edges.
getDescription ( ) : string
getName ( ) : string
getSize ( ) Gets the number of immediate child edges from this node.
getStatus ( ) : string
getTotalSize ( ) depth first search to get the total number of nodes that are descendants of this node.
isFailed ( ) Is this node failed?
isLeaf ( ) Is this node a leaf node?
putChild ( $node ) Add an edge to a child node

Method Details

__construct() public méthode

public __construct ( $name, $description, $status = true )

compareChildren() public méthode

Comparator method to rank child nodes by total weight.
public compareChildren ( $a, $b )

fail() public méthode

Fail this node.
public fail ( )

getChildren() public méthode

Return list of child nodes from direct edges.
public getChildren ( )

getDescription() public méthode

public getDescription ( ) : string
Résultat string description of this node

getName() public méthode

public getName ( ) : string
Résultat string label of this node

getSize() public méthode

Gets the number of immediate child edges from this node.
public getSize ( )

getStatus() public méthode

public getStatus ( ) : string
Résultat string status class string

getTotalSize() public méthode

depth first search to get the total number of nodes that are descendants of this node.
public getTotalSize ( )

isFailed() public méthode

Is this node failed?
public isFailed ( )

isLeaf() public méthode

Is this node a leaf node?
public isLeaf ( )

putChild() public méthode

Add an edge to a child node
public putChild ( $node )

Property Details

$_description public_oe property

public $_description

$_name public_oe property

public $_name

$_parent public_oe property

public $_parent

$_size public_oe property

public $_size

$_status public_oe property

public $_status