NullNode Class Reference
Detailed Description
NullNode is an implementation of the NullObject pattern, It inherits all functionality from Node (acts like a Node) and is only distinguishable from a Node instance by it's class or oid.
If a Node's parent is a NullNode instance, than they should be separated in the data store (e.g. the foreign key should be null, if allowed by the database). NullNode child instances should be ignored.
Definition at line 27 of file NullNode.php.

Public Member Functions | |
getOID () | |
![]() | |
__construct (ObjectId $oid=null) | |
getValueNames ($includeRelations=true) | |
getValue ($name) | |
setValue ($name, $value, $forceSet=false, $trackChange=true) | |
getIndispensableObjects () | |
mergeValues (PersistentObject $object) | |
getNumChildren ($memOnly=true) | |
addNode (PersistentObject $other, $role=null, $forceSet=false, $trackChange=true, $updateOtherSide=true) | |
getAddedNodes () | |
deleteNode (PersistentObject $other, $role=null, $updateOtherSide=true) | |
getDeletedNodes () | |
setNodeOrder (array $nodeList) | |
getNodeOrder () | |
loadChildren ($role=null, $buildDepth=BuildDepth::SINGLE) | |
getFirstChild ($role=null, $type=null, $values=null, $properties=null, $useRegExp=true) | |
getChildren ($memOnly=true) | |
getChildrenEx (ObjectId $oid=null, $role=null, $type=null, $values=null, $properties=null, $useRegExp=true) | |
getPossibleChildren () | |
loadParents ($role=null, $buildDepth=BuildDepth::SINGLE) | |
getNumParents ($memOnly=true) | |
getParent () | |
getFirstParent ($role=null, $type=null, $values=null, $properties=null, $useRegExp=true) | |
getParents ($memOnly=true) | |
getParentsEx (ObjectId $oid=null, $role=null, $type=null, $values=null, $properties=null, $useRegExp=true) | |
getPossibleParents () | |
getNodeRelation ($object) | |
getRelatives ($hierarchyType, $memOnly=true) | |
getNumRelatives ($hierarchyType, $memOnly=true) | |
acceptVisitor ($visitor) | |
addRelation ($name) | |
getDisplayValue () | |
__toString () | |
![]() | |
__construct (ObjectId $oid=null) | |
initialize (array $data) | |
getType () | |
getMapper () | |
getOID () | |
setOID (ObjectId $oid) | |
getState () | |
setState ($state) | |
delete () | |
__clone () | |
copyValues (PersistentObject $object, $copyPkValues=true) | |
mergeValues (PersistentObject $object) | |
clearValues () | |
afterCreate () | |
beforeInsert () | |
afterInsert () | |
afterLoad () | |
beforeUpdate () | |
afterUpdate () | |
beforeDelete () | |
afterDelete () | |
getValue ($name) | |
setValue ($name, $value, $forceSet=false, $trackChange=true) | |
hasValue ($name) | |
removeValue ($name) | |
validateValues (Message $message) | |
validateValue ($name, $value, Message $message) | |
getChangedValues () | |
getOriginalValues () | |
getIndispensableObjects () | |
getProperty ($name) | |
setProperty ($name, $value) | |
getPropertyNames () | |
getValueProperty ($name, $property) | |
setValueProperty ($name, $property, $value) | |
getValuePropertyNames ($name) | |
getValueNames ($excludeTransient=false) | |
getDisplayValue () | |
dump () | |
__toString () | |
serialize () | |
unserialize ($serialized) | |
Additional Inherited Members | |
![]() | |
static | filter (array $nodeList, ObjectId $oid=null, $type=null, $values=null, $properties=null, $useRegExp=true) |
![]() | |
const | RELATION_STATE_UNINITIALIZED = -1 |
const | RELATION_STATE_INITIALIZING = -2 |
const | RELATION_STATE_INITIALIZED = -3 |
const | RELATION_STATE_LOADED = -4 |
![]() | |
const | STATE_CLEAN = 0 |
const | STATE_DIRTY = 1 |
const | STATE_NEW = 2 |
const | STATE_DELETED = 3 |
![]() | |
loadRelations (array $roles, $buildDepth=BuildDepth::SINGLE) | |
getRelations ($hierarchyType='all') | |
![]() | |
setOIDInternal (ObjectId $oid, $triggerListeners) | |
setValueInternal ($name, $value) | |
validateValueAgainstValidateType ($name, $value, Message $message) | |
![]() | |
static | mergeObjectLists ($list1, $list2) |
Member Function Documentation
getOID | ( | ) |
- See also
- PersistentObject::getOID()
Implements PersistentObject.
Definition at line 32 of file NullNode.php.