Newscoop\Service\Implementation\ThemeManagementServiceLocal::loadOutputSetting PHP Метод

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

Load the output setting from the provided xml node.
protected loadOutputSetting ( SimpleXMLElement $nodeOutput, string $themePath ) : OutputSettings
$nodeOutput SimpleXMLElement The node from which to load, *(not null not empty).
$themePath string The theme path to construct the resource path based on, *(not null not empty).
Результат Newscoop\Entity\OutputSettings The loaded output setting, not null.
    protected function loadOutputSetting(\SimpleXMLElement $nodeOutput, $themePath)
    {
        $oset = new OutputSettings();
        $oset->setFrontPage($this->loadOutputResource($nodeOutput, self::TAG_PAGE_FRONT, $themePath));
        $oset->setSectionPage($this->loadOutputResource($nodeOutput, self::TAG_PAGE_SECTION, $themePath));
        $oset->setArticlePage($this->loadOutputResource($nodeOutput, self::TAG_PAGE_ARTICLE, $themePath));
        $oset->setErrorPage($this->loadOutputResource($nodeOutput, self::TAG_PAGE_ERROR, $themePath));
        return $oset;
    }