classes/phing/tasks/ext/RSTTask.php
protected function render($tool, $source, $targetFile)
    {
        if (count($this->filterChains) == 0) {
            $this->renderFile($tool, $source, $targetFile);
            return;
        }

        $tmpTarget = tempnam(sys_get_temp_dir(), 'rST-');
        $this->renderFile($tool, $source, $tmpTarget);

        $this->fileUtils->copyFile(
            new PhingFile($tmpTarget),
            new PhingFile($targetFile),
            $this->getProject(),
            true,
            false,
            $this->filterChains,
            $this->mode
        );
        unlink($tmpTarget);
    }
protected function render($tool, $source, $targetFile)
    {
        if (count($this->filterChains) == 0) {
            $this->renderFile($tool, $source, $targetFile);
            return;
        }

        $tmpTarget = tempnam(sys_get_temp_dir(), 'rST-');
        $this->renderFile($tool, $source, $tmpTarget);

        $this->fileUtils->copyFile(
            new PhingFile($tmpTarget),
            new PhingFile($targetFile),
            $this->getProject(),
            true,
            false,
            $this->filterChains,
            $this->mode
        );
        unlink($tmpTarget);
    }
protected function render ( $ tool , $ source , $ targetFile ) { if ( count ( $ this -> filterChains ) == 0 ) { $ this -> renderFile ( $ tool , $ source , $ targetFile ) ; return ; } $ tmpTarget = tempnam ( sys_get_temp_dir ( ) , 'rST-' ) ; $ this -> renderFile ( $ tool , $ source , $ tmpTarget ) ; $ this -> fileUtils -> copyFile ( new PhingFile ( $ tmpTarget ) , new PhingFile ( $ targetFile ) , $ this -> getProject ( ) , true , false , $ this -> filterChains , $ this -> mode ) ; unlink ( $ tmpTarget ) ; }
Renders a single file and applies filters on it

@param string $tool conversion tool to use
@param string $source rST source file
@param string $targetFile target file name

@return void
Renders a single file and applies filters on it