Property | Type | Description | |
---|---|---|---|
$dataProviderManager | Sculpin\Core\DataProvider\DataProviderManager | Data Provider Manager | |
$defaultFormatter | string | Default formatter | |
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | Event Dispatcher | |
$formatters | array | Formatters | |
$siteConfiguration | Dflydev\DotAccessConfiguration\Configuration | Site Configuration |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Dflydev\DotAccessConfiguration\Configuration $siteConfiguration, Sculpin\Core\DataProvider\DataProviderManager $dataProviderManager = null ) | Constructor. | |
buildFormatContext ( string $templateId, string $template, array $context ) : Sculpin\Core\Formatter\FormatContext | Build a Format Context | |
defaultFormatter ( ) : string | Default Formatter. | |
formatBlocks ( string $templateId, string $template, array $context ) : array | Format blocks | |
formatPage ( string $templateId, string $template, array $context ) : string | Format a page | |
formatSourceBlocks ( Sculpin\Core\Source\SourceInterface $source ) : array | Format blocks for a Source | |
formatSourcePage ( Sculpin\Core\Source\SourceInterface $source ) : string | Format a page for a Source | |
formatter ( string $name ) : Sculpin\Core\Formatter\FormatterInterface | Formatter | |
registerFormatter ( string $name, Sculpin\Core\Formatter\FormatterInterface $formatter ) | Register formatter | |
setDataProviderManager ( Sculpin\Core\DataProvider\DataProviderManager $dataProviderManager = null ) | Set Data Provider Manager. |
Method | Description | |
---|---|---|
buildBaseFormatContext ( mixed $context ) : Dflydev\DotAccessConfiguration\Configuration | Build base format context |
public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Dflydev\DotAccessConfiguration\Configuration $siteConfiguration, Sculpin\Core\DataProvider\DataProviderManager $dataProviderManager = null ) | ||
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | Event Dispatcher |
$siteConfiguration | Dflydev\DotAccessConfiguration\Configuration | Site Configuration |
$dataProviderManager | Sculpin\Core\DataProvider\DataProviderManager | Data Provider Manager |
protected buildBaseFormatContext ( mixed $context ) : Dflydev\DotAccessConfiguration\Configuration | ||
$context | mixed | |
return | Dflydev\DotAccessConfiguration\Configuration |
public defaultFormatter ( ) : string | ||
return | string |
public formatSourceBlocks ( Sculpin\Core\Source\SourceInterface $source ) : array | ||
$source | Sculpin\Core\Source\SourceInterface | Source |
return | array |
public formatSourcePage ( Sculpin\Core\Source\SourceInterface $source ) : string | ||
$source | Sculpin\Core\Source\SourceInterface | Source |
return | string |
public registerFormatter ( string $name, Sculpin\Core\Formatter\FormatterInterface $formatter ) | ||
$name | string | Name |
$formatter | Sculpin\Core\Formatter\FormatterInterface | Formatter |
public setDataProviderManager ( Sculpin\Core\DataProvider\DataProviderManager $dataProviderManager = null ) | ||
$dataProviderManager | Sculpin\Core\DataProvider\DataProviderManager | Data Provider Manager |
protected DataProviderManager,Sculpin\Core\DataProvider $dataProviderManager | ||
return | Sculpin\Core\DataProvider\DataProviderManager |
protected string $defaultFormatter | ||
return | string |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher | ||
return | Symfony\Component\EventDispatcher\EventDispatcherInterface |