renders the header for a section

@param string $sectionName
484810
public function renderSectionHeader(string $sectionName) : void
    {
        if ($this->isSilent()) {
            return;
        }

        fwrite($this->file, '  ' . $this->formatter->formatPropertyName($sectionName) . ': ');
    }
477235
public function viewAction(Section $section): Response
    {
        $sectionDeleteForm = $this->formFactory->deleteSection(
            new SectionDeleteData($section)
        )->createView();

        return $this->render('@ezdesign/admin/section/view.html.twig', [
            'section' => $section,
            'form_section_delete' => $sectionDeleteForm,
            'deletable' => !$this->sectionService->isSectionUsed($section),
            'can_edit' => $this->isGranted(new Attribute('section', 'edit')),
        ]);
    }
772933
public function renderComponents($sectionName = null)
    {
        $output = '';
        $components = $this->getSectionComponents($sectionName);
        foreach ($components as $component) {
            $output .= $component->render();
        }
        return $output;
    }
1198881
public function renderSectionBody(array $section, DataCollection $collection, array $sections = [], string $sectionName = '') : void
    {
        foreach ($this->writers as $writer) {
            $writer->renderSectionBody($section, $collection, $sections, $sectionName);
        }
    }
1205078
public function mapSection($section, $className)
    {
        if (false === class_exists($className)) {
            throw new \InvalidArgumentException('This section class does not exist');
        } elseif (false === is_a($className, 'Supervisor\Configuration\Section', true)) {
            throw new \InvalidArgumentException('This section class must implement Supervisor\Configuration\Section');
        }

        $this->sectionMap[$section] = $className;
    }
944761
public function InSection($sectionName) {
		$page = Director::get_current_page();
		while($page) {
			if($sectionName == $page->URLSegment)
				return true;
			$page = $page->Parent;
		}
		return false;
	}
1100389
public function render($FileName)
    {
        if ($this->TransparentBackground) {
            imagealphablending($this->Picture, false);
            imagesavealpha($this->Picture, true);
        }
        imagepng($this->Picture, $FileName);
    }
329620
protected function renderInnerComponents()
    {
        return $this->renderComponents(self::SECTION_BEGIN)
        . $this->renderComponents()
        . $this->renderComponents(self::SECTION_END);
    }
1214894
function hasSection( $sectionName )
    {
        return ( isset( $this->BlockValues[$sectionName] )
            || isset( self::$injectedSettings[$this->FileName][$sectionName] ) );
    }
108747
protected function renderSection($sectionName, $sectionData, OutputInterface $output, FormatterHelper $formatter)
    {
        $output->writeln('');
        $output->writeln('');
        $optionsHeader = $formatter->formatSection($sectionName, '');
        $output->writeln($optionsHeader);

        foreach ($sectionData as $serviceId => $service) {
            $output->writeln('');
            $output->writeln(" - <comment>$serviceId</comment>:");

            // Class
            $output->writeln('');
            $output->writeln("     <comment>Class</comment>: ${service['class']}");

            // Routes
            $output->writeln('');
            $output->writeln('     <comment>Routes</comment>:');
            foreach ($service['routes'] as $consumerRoute) {
                $output->writeln("     - $consumerRoute");
            }

            // Options
            if (!empty($service['options'])) {
                $output->writeln('');
                $output->writeln('     <comment>Options</comment>:');
                foreach ($service['options'] as $consumerOptionName => $consumerOption) {
                    $output->writeln("     - <comment>$consumerOptionName</comment>:");
                    $output->writeln("         $consumerOption[0]");
                    if (!empty($consumerOption[1])) {
                        $output->writeln('         Accepted values:');
                        foreach ($consumerOption[1] as $value => $valueDescription) {
                            $output->writeln("         - <comment>$value</comment>: $valueDescription");
                        }
                    }
                }
            }
        }
    }
1159323
public final function section(string $sectionName, bool $required = false)
    {
        if ($this->child) {
            if (method_exists($this->child, "render_$sectionName")) {
                call_user_func([$this->child, "render_$sectionName"]);
            } elseif ($required) {
                $childClass = get_class($this->child);
                throw new \BadMethodCallException("Method render_$sectionName is not defined in the child view $childClass.");
            }
        } elseif ($required) {
            $className = get_class($this);
            throw new \BadMethodCallException("Child view is undefined for view $className.");
        }
    }
1062148
protected function loadWddxFile( $fileName )
	{
		$array	= XML_WDDX_FileReader::load( $fileName );
		foreach( $array as $sectionName => $sectionData )
			foreach( $sectionData as $key => $value )
				$this->pairs[$sectionName.".".$key]	= $value;
	}
812009
protected function isExcludedByName(string $sectionName): bool
    {
        return count($this->excludedSections) > 0 && in_array($sectionName, $this->excludedSections);
    }
505349
protected function _section_extend($section, $content)
    {
        if (isset($this->_sections[$section])) {
            $this->_sections[$section] = str_replace('@parent', $content, $this->_sections[$section]);
        } else {
            $this->_sections[$section] = $content;
        }
    }
119212
public static function append($section, $content)
	{
		if (isset(static::$sections[$section]))
		{
			static::$sections[$section] .= $content;
		}
		else
		{
			static::$sections[$section] = $content;
		}
	}
365767
protected function addStageToConfiguration(string $stageName, array $sections)
    {
        $stage = new Stage($stageName);

        foreach ($this->filterSections($sections) as $sectionName => $commands) {
            $stage->addSection($this->buildSection($sectionName, $commands));
        }

        $this->configuration->setStage($stage);
    }
441094
public function doCache($sectionKey, &$section)
    {
        do_action("before_theme_do_cache", $sectionKey);

        $cacheKey = $this->getCacheKey($sectionKey, $section);

        # Get cache file absolute path
        $file = $this->getCacheFile($cacheKey);

        # Start buffering output
        ob_start();

        # Render the template
        $section->init();
        $section->render();

        $cacheConfig = $this->getConfig("cache");

        # Minify the output
        if ($cacheConfig["minify"]):
            $cache = str_replace(["  ", "\n", "\t"], ["", "", ""], ob_get_clean());
        else:
            $cache = ob_get_clean();
        endif;

        # Write output to memory or file
        if ($cacheConfig["type"] == "wp_cache"):
            wp_cache_add(basename($file), $cache, "sections_cache", $cacheConfig["lifetime"]);
        else:
            # Delete file if already exists
            if (file_exists($file)):
                unlink($file);
            endif;

            # Prevents creating empty cache file
            if (!empty($cache) || $cache != ""):
                file_put_contents($file, $cache);
            endif;
        endif;

        do_action("after_theme_do_cache", $cache);

        # Return output
        return $cache;
    }