FOF30\View\View::setTemplatePath PHP Метод

setTemplatePath() защищенный Метод

Sets an entire array of search paths for templates or resources.
protected setTemplatePath ( mixed $path ) : void
$path mixed The new search path, or an array of search paths. If null or false, resets to the current directory only.
Результат void
    protected function setTemplatePath($path)
    {
        // Clear out the prior search dirs
        $this->templatePaths = array();
        // Actually add the user-specified directories
        $this->addTemplatePath($path);
        // Set the alternative template search dir
        $templatePath = JPATH_THEMES;
        $fallback = $templatePath . '/' . $this->container->platform->getTemplate() . '/html/' . $this->container->componentName . '/' . $this->name;
        $this->addTemplatePath($fallback);
        // Get extra directories through event dispatchers
        $extraPathsResults = $this->container->platform->runPlugins('onGetViewTemplatePaths', array($this->container->componentName, $this->getName()));
        if (is_array($extraPathsResults) && !empty($extraPathsResults)) {
            foreach ($extraPathsResults as $somePaths) {
                if (!empty($somePaths)) {
                    foreach ($somePaths as $aPath) {
                        $this->addTemplatePath($aPath);
                    }
                }
            }
        }
    }