Node.php
157 * @param $type The type that the Nodes should match (either fully qualified or simple, if not ambiguous)
161 * @param $properties An assoziative array holding key value pairs that the Node properties should match
163 * @param $useRegExp Boolean whether to interpret the given values/properties as regular expressions or not (default: _true_)
213 self::$_logger->warn(StringUtil::getDump($curNode)." found, where a PersistentObject was expected.\n".ErrorHandler::getStackTrace(),
284 * @param $memOnly Boolean whether to only get the number of loaded children or all children (default: _true_).
298 * @param $updateOtherSide Boolean whether to update also the other side of the relation (default: _true_)
301 public function addNode(PersistentObject $other, $role=null, $forceSet=false, $trackChange=true, $updateOtherSide=true) {
358 * @param $role The role of the Node. If null, the role is the Node's type (without namespace) (default: _null_)
359 * @param $updateOtherSide Boolean whether to update also the other side of the relation (default: _true_)
450 * @param $role The role of children to load (maybe null, to load all children) (default: _null_)
451 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
466 * @param $type The type that the child should match (either fully qualified or simple, if not ambiguous)
468 * @param $values An assoziative array holding key value pairs that the child values should match (optional, default: _null_).
469 * @param $properties An assoziative array holding key value pairs that the child properties should match (optional, default: _null_).
470 * @param $useRegExp Boolean whether to interpret the given values/properties as regular expressions or not (default: _true_)
473 public function getFirstChild($role=null, $type=null, $values=null, $properties=null, $useRegExp=true) {
485 * @param $memOnly Boolean whether to only get the loaded children or all children (default: _true_).
495 * the given relation (including proxies), use the Node::getValue() method and filter the returned
499 * @param $type The type that the children should match (either fully qualified or simple, if not ambiguous)
501 * @param $values An assoziative array holding key value pairs that the children values should match (optional, default: _null_).
502 * @param $properties An assoziative array holding key value pairs that the children properties should match (optional, default: _null_).
503 * @param $useRegExp Boolean whether to interpret the given values/properties as regular expressions or not (default: _true_)
551 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
565 * @param $memOnly Boolean whether to only get the number of loaded parents or all parents (default: _true_).
590 * @param $type The type that the parent should match (either fully qualified or simple, if not ambiguous)
592 * @param $values An assoziative array holding key value pairs that the parent values should match (optional, default: _null_).
593 * @param $properties An assoziative array holding key value pairs that the parent properties should match (optional, default: _null_).
594 * @param $useRegExp Boolean whether to interpret the given values/properties as regular expressions or not (default: _true_)
597 public function getFirstParent($role=null, $type=null, $values=null, $properties=null, $useRegExp=true) {
610 * @param $memOnly Boolean whether to only get the loaded parents or all parents (default: _true_).
620 * the given relation (including proxies), use the Node::getValue() method and filter the returned
624 * @param $type The type that the parents should match (either fully qualified or simple, if not ambiguous)
626 * @param $values An assoziative array holding key value pairs that the parent values should match (optional, default: _null_).
627 * @param $properties An assoziative array holding key value pairs that the parent properties should match (optional, default: _null_).
628 * @param $useRegExp Boolean whether to interpret the given values/properties as regular expressions or not (default: _true_)
698 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
754 * @param $memOnly Boolean whether to only get the relatives in memory or all relatives (including proxies) (default: _true_).
790 * @param $memOnly Boolean whether to only get the number of the relatives in memory or all relatives (default: _true_).
getFirstChild($role=null, $type=null, $values=null, $properties=null, $useRegExp=true)
Get the first child that matches given conditions.
Definition: Node.php:473
getParentsEx(ObjectId $oid=null, $role=null, $type=null, $values=null, $properties=null, $useRegExp=true)
Get the parents that match given conditions.
Definition: Node.php:631
const RELATION_STATE_UNINITIALIZED
Definition: Node.php:36
const RELATION_STATE_INITIALIZING
Definition: Node.php:37
getRelations($hierarchyType='all')
Get the relation descriptions of a given hierarchyType.
Definition: Node.php:747
getNumRelatives($hierarchyType, $memOnly=true)
Get the number of relatives of a given hierarchyType.
Definition: Node.php:793
addNode(PersistentObject $other, $role=null, $forceSet=false, $trackChange=true, $updateOtherSide=true)
Add a Node to the given relation.
Definition: Node.php:301
const RELATION_STATE_INITIALIZED
Definition: Node.php:38
getAddedNodes()
Get the object ids of the nodes that were added since the node was loaded.
Definition: Node.php:351
setValueInternal($name, $value)
Internal (fast) version to set a value without any validation, state change, listener notification et...
Definition: DefaultPersistentObject.php:367
IllegalArgumentException signals an exception in method arguments.
Definition: IllegalArgumentException.php:18
static filter(array $nodeList, ObjectId $oid=null, $type=null, $values=null, $properties=null, $useRegExp=true)
Get Nodes that match given conditions from a list.
Definition: Node.php:166
hasValue($name)
Definition: DefaultPersistentObject.php:374
setState($state)
Definition: DefaultPersistentObject.php:166
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:27
setValue($name, $value, $forceSet=false, $trackChange=true)
Definition: Node.php:119
loadChildren($role=null, $buildDepth=BuildDepth::SINGLE)
Load the children of a given role and add them.
Definition: Node.php:454
getOID()
Definition: DefaultPersistentObject.php:123
static getInstance($name, $dynamicConfiguration=array())
Definition: ObjectFactory.php:39
getRelatives($hierarchyType, $memOnly=true)
Get the relatives of a given hierarchyType.
Definition: Node.php:757
getChildrenEx(ObjectId $oid=null, $role=null, $type=null, $values=null, $properties=null, $useRegExp=true)
Get the children that match given conditions.
Definition: Node.php:506
static mergeObjectLists($list1, $list2)
Merge two object lists using the following rules:
Definition: Node.php:251
PersistentObjectProxy is proxy for an PersistentObject instance.
Definition: PersistentObjectProxy.php:25
getPossibleChildren()
Get possible chilren of this node type (independent of existing children).
Definition: Node.php:538
deleteNode(PersistentObject $other, $role=null, $updateOtherSide=true)
Delete a Node from the given relation.
Definition: Node.php:361
getFirstParent($role=null, $type=null, $values=null, $properties=null, $useRegExp=true)
Get the first parent that matches given conditions.
Definition: Node.php:597
getState()
Definition: DefaultPersistentObject.php:159
getNodeOrder()
Get the order of related Node instances, if it was defined using the Node::setNodeOrder() method...
Definition: Node.php:443
static getDisplayValue(Node $node, $language=null)
Get the display value for a Node defined by the 'display_value' property.
Definition: NodeUtil.php:156
DefaultPersistentObject is the base class of all persistent objects.
Definition: DefaultPersistentObject.php:34
getPossibleParents()
Get possible parents of this node type (independent of existing parents).
Definition: Node.php:663
getMapper()
Definition: DefaultPersistentObject.php:113
getDeletedNodes()
Get the object ids of the nodes that were deleted since the node was loaded.
Definition: Node.php:420
loadParents($role=null, $buildDepth=BuildDepth::SINGLE)
Load the parents of a given role and add them.
Definition: Node.php:554
loadRelations(array $roles, $buildDepth=BuildDepth::SINGLE)
Load all objects in the given set of relations.
Definition: Node.php:701
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:24