abstract class AbstractFeatureProcessor (View source)

The abstract feature processor class. All feature processors based on this class must implement a process() and a static syntaxPattern() method.

Properties

protected $Automad The main Automad instance.
protected $ContentProcessor The content processor instance.
protected $Runtime The Runtime instance.

Methods

__construct(Automad $Automad, Runtime $Runtime, ContentProcessor $ContentProcessor)

The feature processor constructor.

process(array $matches, string $directory, bool $collectSnippetDefinitions)

The actual processor that is used to process a template substring that matches the pattern returned by the syntaxPattern() method.

static 
syntaxPattern()

The actual pattern that is used to trigger the processor.

initTemplateProcessor()

Create a new instance of the template processor.

Details

__construct(Automad $Automad, Runtime $Runtime, ContentProcessor $ContentProcessor)

The feature processor constructor.

Parameters

Automad $Automad
Runtime $Runtime
ContentProcessor $ContentProcessor

abstract process(array $matches, string $directory, bool $collectSnippetDefinitions)

The actual processor that is used to process a template substring that matches the pattern returned by the syntaxPattern() method.

Parameters

array $matches
string $directory
bool $collectSnippetDefinitions

abstract static syntaxPattern()

The actual pattern that is used to trigger the processor.

protected TemplateProcessor initTemplateProcessor()

Create a new instance of the template processor.

Return Value

TemplateProcessor the template processor instance