Constructor.
HarmoniNode
HarmoniNode
(ref $id, ref $type, string $displayName, string $description, ref $cache)
-
ref
$id: object id The Id of this Node.
-
ref
$type: object type The Type of the new Node.
-
string
$displayName: displayName The displayName of the Node.
-
string
$description: description The description of the Node.
-
ref
$cache: object cache This is the HierarchyCache object. Must be the same one that all other nodes in the Hierarchy are using.
Link a parent to this Node.
void
addParent
(mixed $nodeId, object Id $nodeId
)
Redefinition of:
- Node::addParent()
- Link a parent to this Node.
Changes the parent of this Node by adding a new parent and removing the old parent.
void
changeParent
(object Id $oldParentId, mixed $newParentId, object Id $newParentId
)
-
object Id
$oldParentId
-
object Id
$newParentId
Redefinition of:
- Node::changeParent()
- Changes the parent of this Node by adding a new parent and removing the old parent.
Get the children of this Node. To get other descendants use the Hierarchy traverse method.
object NodeIterator
getChildren
()
Redefinition of:
- Node::getChildren()
- Get the children of this Node. To get other descendants use the Hierarchy traverse method.
Get the description for this Node.
string
getDescription
()
Redefinition of:
- Node::getDescription()
- Get the description for this Node.
Get the display name for this Node.
string
getDisplayName
()
Redefinition of:
- Node::getDisplayName()
- Get the display name for this Node.
Get the unique Id for this Node.
object Id
getId
()
Redefinition of:
- Node::getId()
- Get the unique Id for this Node.
Get the parents of this Node. To get other ancestors use the Hierarchy traverse method.
object NodeIterator
getParents
()
Redefinition of:
- Node::getParents()
- Get the parents of this Node. To get other ancestors use the Hierarchy traverse method.
Get the Type for this Node.
object Type
getType
()
Redefinition of:
- Node::getType()
- Get the Type for this Node.
Return true if this Node is a leaf; false otherwise. A Node is a leaf if it has no children.
boolean
isLeaf
()
Redefinition of:
- Node::isLeaf()
- Return true if this Node is a leaf; false otherwise. A Node is a leaf if it has no children.
Return true if this Node is a root; false otherwise.
boolean
isRoot
()
Redefinition of:
- Node::isRoot()
- Return true if this Node is a root; false otherwise.
Unlink a parent from this Node.
void
removeParent
(mixed $parentId, object Id $parentId
)
Redefinition of:
- Node::removeParent()
- Unlink a parent from this Node.
Update the description of this Node.
void
updateDescription
(mixed $description, string $description
)
Redefinition of:
- Node::updateDescription()
- Update the description of this Node.
Update the name of this Node. Node name changes are permitted since the Hierarchy's integrity is based on the Node's unique Id.
void
updateDisplayName
(mixed $displayName, string $displayName
)
Redefinition of:
- Node::updateDisplayName()
- Update the name of this Node. Node name changes are permitted since the Hierarchy's integrity is based on the Node's unique Id.
Inherited Methods
Inherited From Node
Node::addParent()
Node::changeParent()
Node::getChildren()
Node::getDescription()
Node::getDisplayName()
Node::getId()
Node::getParents()
Node::getType()
Node::isLeaf()
Node::isRoot()
Node::removeParent()
Node::updateDescription()
Node::updateDisplayName()