classes/phing/tasks/system/ForeachTask.php
protected function process(Task $callee, PhingFile $fromDir, $srcFiles, $srcDirs)
    {
        $mapper = null;

        if ($this->mapperElement !== null) {
            $mapper = $this->mapperElement->getImplementation();
        }

        $filecount = count($srcFiles);
        $this->total_files += $filecount;

        $this->processResources($filecount, $srcFiles, $callee, $fromDir, $mapper);

        $dircount = count($srcDirs);
        $this->total_dirs += $dircount;

        $this->processResources($dircount, $srcDirs, $callee, $fromDir, $mapper);
    }
protected function process(Task $callee, PhingFile $fromDir, $srcFiles, $srcDirs)
    {
        $mapper = null;

        if ($this->mapperElement !== null) {
            $mapper = $this->mapperElement->getImplementation();
        }

        $filecount = count($srcFiles);
        $this->total_files += $filecount;

        $this->processResources($filecount, $srcFiles, $callee, $fromDir, $mapper);

        $dircount = count($srcDirs);
        $this->total_dirs += $dircount;

        $this->processResources($dircount, $srcDirs, $callee, $fromDir, $mapper);
    }
protected function process ( Task $ callee , PhingFile $ fromDir , $ srcFiles , $ srcDirs ) { $ mapper = null ; if ( $ this -> mapperElement !== null ) { $ mapper = $ this -> mapperElement -> getImplementation ( ) ; } $ filecount = count ( $ srcFiles ) ; $ this -> total_files += $ filecount ; $ this -> processResources ( $ filecount , $ srcFiles , $ callee , $ fromDir , $ mapper ) ; $ dircount = count ( $ srcDirs ) ; $ this -> total_dirs += $ dircount ; $ this -> processResources ( $ dircount , $ srcDirs , $ callee , $ fromDir , $ mapper ) ; }
Processes a list of files & directories

@param PhingCallTask $callee
@param PhingFile $fromDir
@param array $srcFiles
@param array $srcDirs
Processes a list of files & directories