PHP Класс Yosymfony\Spress\Core\ContentManager\ContentManager

Attributes with special meaning: - layout: (string) layout used for rendering an item. - avoid_renderizer: (bool) Avoids the renderizer phase. - generator: (string) The name of the generator. - draft: (bool) Indicates if the item's content is a draft. - output: (bool) Avoid the persistence of an item.
Автор: Victor Puertas ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( DataSourceManager $dataSourceManager, Yosymfony\Spress\Core\DataWriter\DataWriterInterface $dataWriter, GeneratorManager $generatorManager, ConverterManager $converterManager, CollectionManager $CollectionManager, Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkGeneratorInterface $permalinkGenerator, Yosymfony\Spress\Core\ContentManager\Renderizer\RenderizerInterface $renderizer, Yosymfony\Spress\Core\ContentManager\SiteAttribute\SiteAttributeInterface $siteAttribute, PluginManager $pluginManager, EventDispatcher $eventDispatcher, Yosymfony\Spress\Core\IO\IOInterface $io ) Constructor.
parseSite ( array $attributes, array $spressAttributes, boolean $draft = false, boolean $safe = false, string $timezone = 'UTC' ) : Yosymfony\Spress\Core\DataSource\ItemInterface[] Parse a site.

Приватные методы

Метод Описание
configureTimezone ( $timezone )
convertItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
escapeDot ( $key )
finish ( )
getCollectionAttributes ( Yosymfony\Spress\Core\ContentManager\Collection\CollectionInterface $collection )
getLayoutAttribute ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
initializePlugins ( )
isGenerator ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
isRenderizerExcluded ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
prepareRenderizer ( )
prepareSiteAttributes ( )
process ( )
processCollection ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
processDraftIfPost ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
processGenerator ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
processOutputAttribute ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
processPermalink ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
renderBlocks ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
renderPage ( Yosymfony\Spress\Core\DataSource\ItemInterface $item )
reset ( )
setRelationships ( $collection )
setUp ( )
sortItems ( )

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( DataSourceManager $dataSourceManager, Yosymfony\Spress\Core\DataWriter\DataWriterInterface $dataWriter, GeneratorManager $generatorManager, ConverterManager $converterManager, CollectionManager $CollectionManager, Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkGeneratorInterface $permalinkGenerator, Yosymfony\Spress\Core\ContentManager\Renderizer\RenderizerInterface $renderizer, Yosymfony\Spress\Core\ContentManager\SiteAttribute\SiteAttributeInterface $siteAttribute, PluginManager $pluginManager, EventDispatcher $eventDispatcher, Yosymfony\Spress\Core\IO\IOInterface $io )
$dataSourceManager Yosymfony\Spress\Core\DataSource\DataSourceManager
$dataWriter Yosymfony\Spress\Core\DataWriter\DataWriterInterface
$generatorManager Yosymfony\Spress\Core\ContentManager\Generator\GeneratorManager
$converterManager Yosymfony\Spress\Core\ContentManager\Converter\ConverterManager
$CollectionManager Yosymfony\Spress\Core\ContentManager\Collection\CollectionManager
$permalinkGenerator Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkGeneratorInterface
$renderizer Yosymfony\Spress\Core\ContentManager\Renderizer\RenderizerInterface
$siteAttribute Yosymfony\Spress\Core\ContentManager\SiteAttribute\SiteAttributeInterface
$pluginManager Yosymfony\Spress\Core\Plugin\PluginManager
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcher
$io Yosymfony\Spress\Core\IO\IOInterface

parseSite() публичный Метод

Parse a site.
public parseSite ( array $attributes, array $spressAttributes, boolean $draft = false, boolean $safe = false, string $timezone = 'UTC' ) : Yosymfony\Spress\Core\DataSource\ItemInterface[]
$attributes array The site attributes
$spressAttributes array
$draft boolean Include draft posts
$safe boolean True for disabling custom plugins
$timezone string Sets the time zone. @see http://php.net/manual/en/timezones.php More time zones
Результат Yosymfony\Spress\Core\DataSource\ItemInterface[] Items of the site