classes/phing/UnknownElement.php
public function handleChildren($parent, $parentWrapper)
    {
        if ($parent instanceof TaskAdapter) {
            $parent = $parent->getProxy();
        }

        $parentClass = $parent === null ? get_class() : get_class($parent);
        $ih = IntrospectionHelper::getHelper($parentClass);

        for ($i = 0, $childrenCount = count($this->children); $i < $childrenCount; $i++) {
            $childWrapper = $parentWrapper->getChild($i);
            $child = $this->children[$i];

            $realChild = null;
            if ($parent instanceof TaskContainer) {
                $parent->addTask($child);
                continue;
            }

            $project = $this->project === null ? $parent->project : $this->project;
            $realChild = $ih->createElement($project, $parent, $child->getTag());

            $childWrapper->setProxy($realChild);
            if ($realChild instanceof Task) {
                $realChild->setRuntimeConfigurableWrapper($childWrapper);
            }

            $childWrapper->maybeConfigure($this->project);
            $child->handleChildren($realChild, $childWrapper);
        }
    }
public function handleChildren($parent, $parentWrapper)
    {
        if ($parent instanceof TaskAdapter) {
            $parent = $parent->getProxy();
        }

        $parentClass = $parent === null ? get_class() : get_class($parent);
        $ih = IntrospectionHelper::getHelper($parentClass);

        for ($i = 0, $childrenCount = count($this->children); $i < $childrenCount; $i++) {
            $childWrapper = $parentWrapper->getChild($i);
            $child = $this->children[$i];

            $realChild = null;
            if ($parent instanceof TaskContainer) {
                $parent->addTask($child);
                continue;
            }

            $project = $this->project === null ? $parent->project : $this->project;
            $realChild = $ih->createElement($project, $parent, $child->getTag());

            $childWrapper->setProxy($realChild);
            if ($realChild instanceof Task) {
                $realChild->setRuntimeConfigurableWrapper($childWrapper);
            }

            $childWrapper->maybeConfigure($this->project);
            $child->handleChildren($realChild, $childWrapper);
        }
    }
public function handleChildren ( $ parent , $ parentWrapper ) { if ( $ parent instanceof TaskAdapter ) { $ parent = $ parent -> getProxy ( ) ; } $ parentClass = $ parent === null ? get_class ( ) : get_class ( $ parent ) ; $ ih = IntrospectionHelper :: getHelper ( $ parentClass ) ; for ( $ i = 0 , $ childrenCount = count ( $ this -> children ) ; $ i < $ childrenCount ; $ i ++ ) { $ childWrapper = $ parentWrapper -> getChild ( $ i ) ; $ child = $ this -> children [ $ i ] ; $ realChild = null ; if ( $ parent instanceof TaskContainer ) { $ parent -> addTask ( $ child ) ; continue ; } $ project = $ this -> project === null ? $ parent -> project : $ this -> project ; $ realChild = $ ih -> createElement ( $ project , $ parent , $ child -> getTag ( ) ) ; $ childWrapper -> setProxy ( $ realChild ) ; if ( $ realChild instanceof Task ) { $ realChild -> setRuntimeConfigurableWrapper ( $ childWrapper ) ; } $ childWrapper -> maybeConfigure ( $ this -> project ) ; $ child -> handleChildren ( $ realChild , $ childWrapper ) ; } }
Handle child elemets of the unknown element, if any.

@param object $parent The parent object the unknown element belongs to
@param object $parentWrapper The parent wrapper object
Handle child elemets of the unknown element if any .