Cecil

Section extends AbstractGenerator implements GeneratorInterface

Section generator class.

This class is responsible for generating sections from the pages in the builder. It identifies sections based on the 'section' variable in each page, and creates a new page for each section. The generated pages are added to the collection of generated pages. It also handles sorting of subpages and adding navigation links (next and previous) to the section pages.

Table of Contents

Interfaces

GeneratorInterface
Generator interface.

Properties

$builder  : Builder
$config  : Config
$generatedPages  : Collection

Methods

__construct()  : mixed
Gives the Builder to the object.
generate()  : void
Creates pages and adds it to collection.
runGenerate()  : Collection
Run the `generate` method of the generator and returns pages.
sortSubPages()  : Collection
Sorts subpages.
addNavigationLinks()  : void
Adds navigation (next and prev) to section subpages.

Properties

Methods

generate()

Creates pages and adds it to collection.

public generate() : void

Adds navigation (next and prev) to section subpages.

protected addNavigationLinks(Collection $pages[, string|null $sortBy = null ][, bool $circular = false ]) : void
Parameters
$pages : Collection
$sortBy : string|null = null
$circular : bool = false
 
On this page

Search results