Craft\Imager_ImagePathsModel::_getPathsForLocaleFile PHP Method

_getPathsForLocaleFile() private method

Get paths for a local file that's not in the imager path
private _getPathsForLocaleFile ( $image )
$image
    private function _getPathsForLocaleFile($image)
    {
        $pathParts = pathinfo($image);
        $hashPath = craft()->imager->getSetting('hashPath');
        if ($hashPath) {
            $targetFolder = md5($pathParts['dirname']);
        } else {
            $targetFolder = $pathParts['dirname'];
        }
        $this->sourcePath = $_SERVER['DOCUMENT_ROOT'] . $pathParts['dirname'] . '/';
        $this->targetPath = ImagerService::fixSlashes(craft()->imager->getSetting('imagerSystemPath') . $targetFolder . '/');
        $this->targetUrl = craft()->imager->getSetting('imagerUrl') . ImagerService::fixSlashes($targetFolder . '/', true);
        $this->sourceFilename = $this->targetFilename = $pathParts['basename'];
    }