Return full path to module file which defines content to place in Shop block.

@throws \oxException

@return string
960588
public function getPath()
    {
        if (is_null($this->moduleId) || is_null($this->fileName)) {
            throw oxNew(\OxidEsales\Eshop\Core\Exception\StandardException::class);
        }

        $fileName = $this->fileName;

        // for < 4.6 modules, since 4.7/5.0 insert in oxtplblocks the full file name and path
        if (basename($fileName) === $fileName) {
            // for 4.5 modules, since 4.6 insert in oxtplblocks the full file name
            if (substr($fileName, -4) !== '.tpl') {
                $fileName = $fileName . ".tpl";
            }

            $fileName = "out/blocks/$fileName";
        }

        $moduleList = oxNew(\OxidEsales\Eshop\Core\Module\ModuleList::class);
        $activeModuleInfo = $moduleList->getActiveModuleInfo();

        if (!array_key_exists($this->moduleId, $activeModuleInfo)) {
            throw oxNew('oxException', 'Module: ' . $this->moduleId . ' is not active.');
        }

        $modulePath = $activeModuleInfo[$this->moduleId];

        $fileSystem = oxNew(FileSystem::class);

        return $fileSystem->combinePaths($this->modulesPath, $modulePath, $fileName);
    }
739850
public function getShopLogoUrl()
    {
        $imagePath = $this->getImageUrl();
        $resizedImagePath = $this->getResizedImageUrl();

        if ($this->getResize()) {
            $shopLogoPath = $resizedImagePath;

            if (!$this->fileExists($resizedImagePath)) {
                if (!$this->resizeImage()) {
                    // fallback to original image if can not be resized
                    $shopLogoPath = $imagePath;
                }
            }
        } else {
            $shopLogoPath = $imagePath;
        }

        return $shopLogoPath;
    }
923392
private function createFrontEndStore()
    {
        $moduleName = lcfirst($this->moduleName);
        $storeFileName = $moduleName . '.js';
        $storeFilePath = $this->frontendStoreDirectory . DIRECTORY_SEPARATOR . $storeFileName;

        if (file_exists($storeFilePath) && $this->isForce == false) {
            $this->info($storeFileName . ' file exists. Skip.');
            return $storeFilePath;
        }

        $storeContent = $this->generateStoreContent($moduleName);
        file_put_contents($storeFilePath, $storeContent);
        $this->appendStore($moduleName);
        $this->info('Store file is set: ' . $storeFileName);
        $this->line($storeFilePath);

        return $storeFilePath;
    }
1359706
public function getBlockPath()
    {
        if ($this->getPackageID() > 0) {
            $pkgHandle = $this->getPackageHandle();
            $dirp = (is_dir(DIR_PACKAGES . '/' . $pkgHandle)) ? DIR_PACKAGES : DIR_PACKAGES_CORE;
            $dir = $dirp . '/' . $pkgHandle . '/' . DIRNAME_BLOCKS . '/' . $this->getBlockTypeHandle();
        } else {
            if (is_dir(DIR_FILES_BLOCK_TYPES . '/' . $this->getBlockTypeHandle())) {
                $dir = DIR_FILES_BLOCK_TYPES . '/' . $this->getBlockTypeHandle();
            } else {
                $dir = DIR_FILES_BLOCK_TYPES_CORE . '/' . $this->getBlockTypeHandle();
            }
        }

        return $dir;
    }
1315602
public function getDestinationFilePath()
    {
        $path = $this->laravel['modules']->getModulePath($this->getModuleName());

        $controllerPath = GenerateConfigReader::read('controller');

        return $path . $controllerPath->getPath() . '/' . $this->getControllerName() . '.php';
    }
531205
public function getDirectory() : string
    {
        if (! is_string($this->file)) {
            throw new RuntimeException(
                'Module file to parse has not determined yet.',
                E_WARNING
            );
        }

        return dirname($this->file);
    }
1358254
public function getViewPath()
    {
        $module = $this->module;
        
        if (substr($module, 0, 1) !== '@') {
            $module = '@'.$module;
        }
        
        return implode(DIRECTORY_SEPARATOR, [Yii::getAlias($module), 'views', 'aws', $this->getViewFolderName()]);
    }
858025
public function GetVat()
    {
        $oVat = $this->GetFromInternalCache('ovat');
        if (is_null($oVat)) {
            $oVat = null;
            $oShopConf = TdbShop::GetInstance();
            if (!$oShopConf->fieldShippingVatDependsOnBasketContents) {
                $oVat = $this->GetFieldShopVat();
                if (is_null($oVat)) {
                    $oShopConf = TdbShop::GetInstance();
                    $oVat = $oShopConf->GetVat();
                }
                $this->SetInternalCache('ovat', $oVat);
            } else {
                // use max vat in basket... if we have contents
                $oBasket = TShopBasket::GetInstance();
                $oVat = $oBasket->GetLargestVATObject();
            }
        }

        return $oVat;
    }
214657
public function getDumpFilePath () : string
    {
        $dir = dirname($this->filePath);
        $fileName = \basename($this->filePath, ".{$this->fileType}");

        $dir = "." === $dir
            ? ""
            : "{$dir}/";

        $hash = !empty($this->fileNameHash)
            ? ".{$this->fileNameHash}"
            : "";

        return "{$dir}{$fileName}{$hash}.{$this->fileType}";
    }
619227
private function getFilePath()
    {
        $fullname = $this->fullName;
        $rootPath = yii::getAlias('@uploads/article/ueditor');

        if (substr($fullname, 0, 1) != '/') {
            $fullname = '/' . $fullname;
        }

        return $rootPath . $fullname;
    }
561032
public function getViewPath(): string
    {
        if (is_file($this->tplDistPath)) {
            if ($this->disableTplCache) {
                $this->buildViewTemplate();
            }
        } else {
            $this->buildViewTemplate();
        }
        return $this->tplDistPath;
    }
1132272
protected function get_script_path()
    {
        if( null == $this->script_path )
        {
            $class_name =  substr( get_called_class() , strrpos( get_called_class(), '\\') + 1);
            $this->script_path = $this->get_dir() . '/' . $class_name . '.phtml';
        }
        return $this->script_path;
    }
373954
private function getCommandsFromModules()
    {
        $oConfig = Registry::getConfig();


        if (! class_exists(ModuleList::class)) {
            print "ERROR: Oxid ModuleList class can not be loaded, please run vendor/bin/oe-eshop-unified_namespace_generator";
        } else {
            try {
                $moduleList = oxNew(ModuleList::class);
                $modulesDir = $oConfig->getModulesDir();
                $moduleList->getModulesFromDir($modulesDir);
            } catch (\Throwable $exception) {
                print "Shop is not able to list modules\n";
                print $exception->getMessage();
                return [];
            }
        }

        $paths = $this->getPathsOfAvailableModules();
        $pathToPhpFiles = $this->getPhpFilesMatchingPatternForCommandFromGivenPaths(
            $paths
        );
        $classes = $this->getAllClassesFromPhpFiles($pathToPhpFiles);
        $comanndClasses = $this->getCommandCompatibleClasses($classes);
        return $this->getObjectsFromClasses($comanndClasses);
    }
608530
public function getTitle()
    {
        $oProduct = $this->getProduct();

        return $oProduct->oxarticles__oxtitle->value . ' ' . $oProduct->oxarticles__oxvarselect->value;
    }
1053091
public function getBannerPictureUrl()
    {
        if (isset($this->oxactions__oxpic) && $this->oxactions__oxpic->value) {
            $sPromoDir = \OxidEsales\Eshop\Core\Registry::getUtilsFile()->normalizeDir(\OxidEsales\Eshop\Core\UtilsFile::PROMO_PICTURE_DIR);

            return \OxidEsales\Eshop\Core\Registry::getConfig()->getPictureUrl($sPromoDir . $this->oxactions__oxpic->value, false);
        }
    }
1278694
protected function generateFullPath()
    {
        return $this->fullPath = $this->pathGenerator
            ->generatePath($this->page, $this->path ?: '')
        ;
    }
1093478
function getScriptPath()
    {
        $fileName = $this->stack->pop();
        if ($this->baseDir) {
            return $this->baseDir . \DIRECTORY_SEPARATOR . $fileName;
        } else {
            return (string)$fileName;
        }
    }