Craft\Imager_ImagePathsModel::_getPathsForLocalAsset PHP Method

_getPathsForLocalAsset() private method

Get paths for a local asset
private _getPathsForLocalAsset ( craft\AssetFileModel $image )
$image craft\AssetFileModel
    private function _getPathsForLocalAsset(AssetFileModel $image)
    {
        $assetSourcePath = craft()->config->parseEnvironmentString($image->getSource()->settings['url']);
        if (strrpos($assetSourcePath, 'http') !== false) {
            $parsedUrl = parse_url($assetSourcePath);
            $assetSourcePath = $parsedUrl['path'];
        }
        $hashPath = craft()->imager->getSetting('hashPath');
        if ($hashPath) {
            $targetFolder = '/' . md5($assetSourcePath . $image->getFolder()->path) . '/';
        } else {
            $targetFolder = $assetSourcePath . $image->getFolder()->path;
        }
        $this->sourcePath = ImagerService::fixSlashes(craft()->config->parseEnvironmentString($image->getSource()->settings['path']) . $image->getFolder()->path);
        $this->targetPath = ImagerService::fixSlashes(craft()->imager->getSetting('imagerSystemPath') . $targetFolder) . $image->id . '/';
        $this->targetUrl = craft()->imager->getSetting('imagerUrl') . ImagerService::fixSlashes($targetFolder, true) . $image->id . '/';
        $this->sourceFilename = $this->targetFilename = $image->filename;
    }