CampContext::setSectionHandler PHP Метод

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

Handler for the section change event.
private setSectionHandler ( MetaSection $p_oldSection, MetaSection $p_newSection )
$p_oldSection MetaSection
$p_newSection MetaSection
    private function setSectionHandler(MetaSection $p_oldSection, MetaSection $p_newSection)
    {
        static $sectionHandlerRunning = false;
        if (!$this->m_readonlyProperties['preview'] && isset($p_newSection->issue) && !$p_newSection->issue->is_published && $p_newSection->defined()) {
            return;
        }
        if ($sectionHandlerRunning || $p_newSection->same_as($p_oldSection)) {
            return;
        }
        $sectionHandlerRunning = true;
        if ($p_newSection->defined() && !$this->getIssue()->same_as($p_newSection->issue)) {
            $this->setIssueHandler($this->getIssue(), $p_newSection->issue);
        }
        $this->setArticleHandler($this->getArticle(), self::$m_nullMetaArticle);
        $this->m_readonlyProperties['url']->section = $p_newSection;
        $this->m_objects['section'] = $p_newSection;
        $sectionHandlerRunning = false;
    }