Admin_MiscController::getControllerDir PHP Метод

getControllerDir() приватный Метод

Determines by the moduleName GET-parameter which controller directory to use; the default (param empty or "website") or of the corresponding module or plugin
private getControllerDir ( ) : string
Результат string
    private function getControllerDir()
    {
        $controllerDir = PIMCORE_WEBSITE_PATH . DIRECTORY_SEPARATOR . "controllers" . DIRECTORY_SEPARATOR;
        if ($module = $this->getParam("moduleName")) {
            if ($module != "" && $module != "website") {
                // => not the default
                $front = $this->getFrontController();
                $modules = $front->getControllerDirectory();
                if (array_key_exists($module, $modules)) {
                    $controllerDir = $modules[$module] . DIRECTORY_SEPARATOR;
                }
            }
        }
        return $controllerDir;
    }