PHP Class Carew\Processor

Show file Open project: carew/carew Class Usage Examples

Public Methods

Method Description
__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 )

Private Methods

Method Description
buildCollectionsWithDocumentMethod ( $documents, $method )
buildCollectionsWithType ( $documents )
sortByDate ( $documents )

Method Details

__construct() public method

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 method

public processDocument ( Document $document )
$document Document

processDocumentDecoration() public method

public processDocumentDecoration ( Document $document )
$document Document

processDocuments() public method

public processDocuments ( $documents, $globals )

processFile() public method

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

processGlobals() public method

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

terminate() public method

public terminate ( $webDir )

write() public method

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