public function getSuccessors()
    {
        $returnValue = array();

        
    	$reflection = new ReflectionClass($this);
		foreach($reflection->getProperties() as $property){
			if(!$property->isStatic() && !$property->isPrivate()){
				$propertyName = $property->getName();
				$value = $this->$propertyName;
				if (is_array($value)) {
					foreach ($value as $key => $subvalue) {
						if (is_object($subvalue) && $subvalue instanceof self) {
								$returnValue[] = $subvalue;
						}
					}
				} elseif (is_object($value) && $value instanceof self) {
						$returnValue[] = $value;
					}
				}
		}
        

        return (array) $returnValue;
    }
public function getSuccessors()
    {
        $returnValue = array();

        
    	$reflection = new ReflectionClass($this);
		foreach($reflection->getProperties() as $property){
			if(!$property->isStatic() && !$property->isPrivate()){
				$propertyName = $property->getName();
				$value = $this->$propertyName;
				if (is_array($value)) {
					foreach ($value as $key => $subvalue) {
						if (is_object($subvalue) && $subvalue instanceof self) {
								$returnValue[] = $subvalue;
						}
					}
				} elseif (is_object($value) && $value instanceof self) {
						$returnValue[] = $value;
					}
				}
		}
        

        return (array) $returnValue;
    }
public function getSuccessors ( ) { $ returnValue = array ( ) ; $ reflection = new ReflectionClass ( $ this ) ; foreach ( $ reflection -> getProperties ( ) as $ property ) { if ( ! $ property -> isStatic ( ) && ! $ property -> isPrivate ( ) ) { $ propertyName = $ property -> getName ( ) ; $ value = $ this -> $ propertyName ; if ( is_array ( $ value ) ) { foreach ( $ value as $ key => $ subvalue ) { if ( is_object ( $ subvalue ) && $ subvalue instanceof self ) { $ returnValue [ ] = $ subvalue ; } } } elseif ( is_object ( $ value ) && $ value instanceof self ) { $ returnValue [ ] = $ value ; } } } return ( array ) $ returnValue ; }
Short description of method getSuccessors

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@return array
Short description of method getSuccessors