classes/phing/tasks/ext/RSTTask.php
public function getTargetFile($file, $destination = null)
    {
        if ($destination != ''
            && substr($destination, -1) !== '/'
            && substr($destination, -1) !== '\\'
        ) {
            return $destination;
        }

        if (strtolower(substr($file, -4)) == '.rst') {
            $file = substr($file, 0, -4);
        }

        return $destination . $file . '.' . self::$targetExt[$this->format];
    }
public function getTargetFile($file, $destination = null)
    {
        if ($destination != ''
            && substr($destination, -1) !== '/'
            && substr($destination, -1) !== '\\'
        ) {
            return $destination;
        }

        if (strtolower(substr($file, -4)) == '.rst') {
            $file = substr($file, 0, -4);
        }

        return $destination . $file . '.' . self::$targetExt[$this->format];
    }
public function getTargetFile ( $ file , $ destination = null ) { if ( $ destination != '' && substr ( $ destination , - 1 ) !== '/' && substr ( $ destination , - 1 ) !== '\\' ) { return $ destination ; } if ( strtolower ( substr ( $ file , - 4 ) ) == '.rst' ) { $ file = substr ( $ file , 0 , - 4 ) ; } return $ destination . $ file . '.' . self :: $ targetExt [ $ this -> format ] ; }
Determines and returns the target file name from the
input file and the configured destination name.

@param string $file Input file
@param string $destination Destination file or directory name,
may be null

@return string Target file name

@uses $format
@uses $targetExt
Determines and returns the target file name from the input file and the configured destination name .