eZPublish  4.7
ezpTopologicalSortNode Class Reference

Node in a topological sort. More...

Public Member Functions

 __construct ($name)
 ezpTopologicalSortNode constructor. More...
 
 parentCount ()
 Returns the number of registered parents. More...
 
 popChild ()
 Pop a child from the list of children. More...
 
 registerChild (ezpTopologicalSortNode $childNode)
 Register a child node. More...
 
 registerParent (ezpTopologicalSortNode $parentNode)
 Register a parent node. More...
 
 unregisterParent (ezpTopologicalSortNode $parentNode)
 Unregister a parent node. More...
 

Public Attributes

 $name
 

Protected Attributes

 $children
 
 $parents
 

Detailed Description

Node in a topological sort.

See Also
ezpTopologicalSort

Constructor & Destructor Documentation

ezpTopologicalSortNode::__construct (   $name)

ezpTopologicalSortNode constructor.

Parameters
string$nameName used to define the node

Member Function Documentation

ezpTopologicalSortNode::parentCount ( )

Returns the number of registered parents.

Returns
int
ezpTopologicalSortNode::popChild ( )

Pop a child from the list of children.

Returns
ezpTopologicalSortNode|false ezpTopologicalSortNode or false if list is empty
ezpTopologicalSortNode::registerChild ( ezpTopologicalSortNode  $childNode)

Register a child node.

Parameters
ezpTopologicalSortNode$childNodeChild node to register
ezpTopologicalSortNode::registerParent ( ezpTopologicalSortNode  $parentNode)

Register a parent node.

Parameters
ezpTopologicalSortNode$parentNodeParent node to register
ezpTopologicalSortNode::unregisterParent ( ezpTopologicalSortNode  $parentNode)

Unregister a parent node.

Parameters
ezpTopologicalSortNode$parentNodeParent node to unregister

Member Data Documentation

ezpTopologicalSortNode::$children
protected
ezpTopologicalSortNode::$name

Referenced by __construct().

ezpTopologicalSortNode::$parents
protected

The documentation for this class was generated from the following file: