public function getRelativePath($basePath, $absolutePath)
{
$absolutePath = $this->forwardSlashes($absolutePath);
if (!is_array($basePath)) {
list($changed, $newPath) = $this->_getRelativePath($basePath, $absolutePath);
return $newPath;
}
foreach ($basePath as $path) {
list($changed, $newPath) = $this->_getRelativePath($path, $absolutePath);
if ($changed) {
return $newPath;
}
}
return reset($basePath);
}