PHP Класс Carew\Processor

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null, Symfony\Component\Filesystem\Filesystem $filesystem = null )
processDocument ( Document $document )
processDocumentDecoration ( Document $document )
processDocuments ( $documents, $globals )
processFile ( Symfony\Component\Finder\SplFileInfo $file, $folder = '', $type = Document::TYPE_UNKNOWN )
processGlobals ( $documents, Globals $globals = null )
terminate ( $webDir )
write ( Document $document, $webDir )

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

Метод Описание
buildCollectionsWithDocumentMethod ( $documents, $method )
buildCollectionsWithType ( $documents )
sortByDate ( $documents )

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

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

public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null, Symfony\Component\Filesystem\Filesystem $filesystem = null )
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$filesystem Symfony\Component\Filesystem\Filesystem

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

public processDocument ( Document $document )
$document Document

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

public processDocumentDecoration ( Document $document )
$document Document

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

public processDocuments ( $documents, $globals )

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

public processFile ( Symfony\Component\Finder\SplFileInfo $file, $folder = '', $type = Document::TYPE_UNKNOWN )
$file Symfony\Component\Finder\SplFileInfo

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

public processGlobals ( $documents, Globals $globals = null )
$globals Carew\Twig\Globals

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

public terminate ( $webDir )

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

public write ( Document $document, $webDir )
$document Document