You are here

protected static function InPlaceUpdate::getProjectRealPath in Automatic Updates 7

Get the real path of a file.

Parameters

string $file_path: The file path.

string $project_root: The project root directory.

Return value

string The real path of a file.

4 calls to InPlaceUpdate::getProjectRealPath()
InPlaceUpdate::doBackup in ./InPlaceUpdate.php
Execute file backup.
InPlaceUpdate::doRestore in ./InPlaceUpdate.php
Do restore.
InPlaceUpdate::processUpdate in ./InPlaceUpdate.php
Process update.
InPlaceUpdate::rollback in ./InPlaceUpdate.php
Rollback after a failed update.

File

./InPlaceUpdate.php, line 474

Class

InPlaceUpdate
Class to apply in-place updates.

Code

protected static function getProjectRealPath($file_path, $project_root) {
  return rtrim($project_root, '/\\') . DIRECTORY_SEPARATOR . $file_path;
}