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])
파일 보기 프로젝트 열기: spress/spress

공개 메소드들

메소드 설명
__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