classes/phing/system/io/PhingFile.php
public function getPathWithoutBase($basedir)
    {
        if (!StringHelper::endsWith(self::$separator, $basedir)) {
            $basedir .= self::$separator;
        }
        $path = $this->getPath();
        if (substr($path, 0, strlen($basedir)) != $basedir) {
            //path does not begin with basedir, we don't modify it
            return $path;
        }

        return substr($path, strlen($basedir));
    }
public function getPathWithoutBase($basedir)
    {
        if (!StringHelper::endsWith(self::$separator, $basedir)) {
            $basedir .= self::$separator;
        }
        $path = $this->getPath();
        if (substr($path, 0, strlen($basedir)) != $basedir) {
            //path does not begin with basedir, we don't modify it
            return $path;
        }

        return substr($path, strlen($basedir));
    }
public function getPathWithoutBase ( $ basedir ) { if ( ! StringHelper :: endsWith ( self :: $ separator , $ basedir ) ) { $ basedir .= self :: $ separator ; } $ path = $ this -> getPath ( ) ; if ( substr ( $ path , 0 , strlen ( $ basedir ) ) != $ basedir ) { //path does not begin with basedir, we don't modify it return $ path ; } return substr ( $ path , strlen ( $ basedir ) ) ; }
Returns path without leading basedir.

@param string $basedir Base directory to strip

@return string Path without basedir

@uses getPath()
Returns path without leading basedir .