CampSystem::setSection PHP Méthode

setSection() protected méthode

Sets the context section object.
protected setSection ( integer $p_pubId, integer $p_issNr, integer $p_lngId, integer $p_sctNr ) : void
$p_pubId integer The publication identifier
$p_issNr integer The issue number
$p_lngId integer The language identifier
$p_sctNr integer The section number
Résultat void
    protected function setSection($p_pubId, $p_issNr, $p_lngId, $p_sctNr)
    {
        $context = CampTemplate::singleton()->context();
        if (is_object($context->section) && $context->section->number == $p_sctNr) {
            return;
        }
        $context->section = new MetaSection($p_pubId, $p_issNr, $p_lngId, $p_sctNr);
    }