AbstractRole Class Reference

Detailed Description

Default implementation of a role.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 23 of file AbstractRole.php.

+ Inheritance diagram for AbstractRole:

Public Member Functions

 setName ($name)
 
 getName ()
 
 validateValue ($name, $value)
 
- Public Member Functions inherited from Node
 __construct (ObjectId $oid=null, array $initialData=null)
 
 __clone ()
 
 getValueNames ($excludeTransient=false)
 
 getValue ($name)
 
 setValue ($name, $value, $forceSet=false, $trackChange=true)
 
 removeValue ($name)
 
 getIndispensableObjects ()
 
 mergeValues (PersistentObject $object)
 
 getRelationNames ()
 
 addNode (PersistentObject $other, $role=null, $forceSet=false, $trackChange=true, $updateOtherSide=true)
 
 getAddedNodes ()
 
 deleteNode (PersistentObject $other, $role=null, $updateOtherSide=true)
 
 getDeletedNodes ()
 
 setNodeOrder (array $orderedList, array $movedList=null, $role=null)
 
 getNodeOrder ()
 
 loadChildren ($role=null, $buildDepth=BuildDepth::SINGLE)
 
 getNumChildren ($memOnly=true)
 
 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 ()
 
- Public Member Functions inherited from DefaultPersistentObject
 getType ()
 
 getMapper ()
 
 getOID ()
 
 setOID (ObjectId $oid)
 
 getState ()
 
 setState ($state)
 
 delete ()
 
 copyValues (PersistentObject $object, $copyPkValues=true)
 
 clearValues ()
 
 reset ()
 
 afterCreate ()
 
 beforeInsert ()
 
 afterInsert ()
 
 afterLoad ()
 
 beforeUpdate ()
 
 afterUpdate ()
 
 beforeDelete ()
 
 afterDelete ()
 
 hasValue ($name)
 
 validateValues ()
 
 getChangedValues ()
 
 getOriginalValue ($name)
 
 getProperty ($name)
 
 setProperty ($name, $value)
 
 getPropertyNames ()
 
 getValueProperty ($name, $property)
 
 setValueProperty ($name, $property, $value)
 
 getValuePropertyNames ($name)
 
 dump ()
 
 serialize ()
 
 unserialize ($serialized)
 

Additional Inherited Members

- Static Public Member Functions inherited from Node
static filter (array $nodeList, ObjectId $oid=null, $type=null, $values=null, $properties=null, $useRegExp=true)
 
- Public Attributes inherited from Node
const RELATION_STATE_UNINITIALIZED = -1
 
const RELATION_STATE_INITIALIZING = -2
 
const RELATION_STATE_INITIALIZED = -3
 
const RELATION_STATE_LOADED = -4
 
- Public Attributes inherited from PersistentObject
const STATE_CLEAN = 0
 
const STATE_DIRTY = 1
 
const STATE_NEW = 2
 
const STATE_DELETED = 3
 
- Protected Member Functions inherited from Node
 loadRelations (array $roles, $buildDepth=BuildDepth::SINGLE)
 
 getRelations ($hierarchyType='all')
 
- Protected Member Functions inherited from DefaultPersistentObject
 setOIDInternal (ObjectId $oid, $triggerListeners)
 
 setValueInternal ($name, $value)
 
 validateValueAgainstValidateType ($name, $value)
 
- Static Protected Member Functions inherited from Node
static mergeObjectLists ($list1, $list2)
 

Member Function Documentation

◆ setName()

setName (   $name)
See also
Role::setName()

Implements Role.

Definition at line 28 of file AbstractRole.php.

◆ getName()

getName ( )
See also
Role::getName()

Implements Role.

Definition at line 35 of file AbstractRole.php.

◆ validateValue()

validateValue (   $name,
  $value 
)
See also
PersistentObject::validateValue()

Reimplemented from DefaultPersistentObject.

Definition at line 42 of file AbstractRole.php.