eZ Publish Community Project (Legacy Stack) 2013.4
Class

ezpTopologicalSortNode

class ezpTopologicalSortNode

Node in a topological sort.

Properties

$name

Methods

__construct(string $name)

ezpTopologicalSortNode constructor.

registerChild(ezpTopologicalSortNode $childNode)

Register a child node.

registerParent(ezpTopologicalSortNode $parentNode)

Register a parent node.

unregisterParent(ezpTopologicalSortNode $parentNode)

Unregister a parent node.

int parentCount()

Returns the number of registered parents.

ezpTopologicalSortNode|false popChild()

Pop a child from the list of children.

Details

at line 28
public __construct(string $name)

ezpTopologicalSortNode constructor.

Parameters

string $name Name used to define the node

at line 40
public registerChild(ezpTopologicalSortNode $childNode)

Register a child node.

Parameters

ezpTopologicalSortNode $childNode Child node to register

at line 51
public registerParent(ezpTopologicalSortNode $parentNode)

Register a parent node.

Parameters

ezpTopologicalSortNode $parentNode Parent node to register

at line 62
public unregisterParent(ezpTopologicalSortNode $parentNode)

Unregister a parent node.

Parameters

ezpTopologicalSortNode $parentNode Parent node to unregister

at line 72
public int parentCount()

Returns the number of registered parents.

Return Value

int

at line 82
public ezpTopologicalSortNode|false popChild()

Pop a child from the list of children.

Return Value

ezpTopologicalSortNode|false ezpTopologicalSortNode or false if list is empty