Sulu\Bundle\MediaBundle\Media\Storage\LocalStorage::load PHP Method

load() public method

public load ( $fileName, $version, $storageOption )
    public function load($fileName, $version, $storageOption)
    {
        $this->storageOption = json_decode($storageOption);
        $segment = $this->getStorageOption('segment');
        $fileName = $this->getStorageOption('fileName');
        if ($segment && $fileName) {
            return $this->uploadPath . '/' . $segment . '/' . $fileName;
        }
        return false;
    }