2017 © Pedro Peláez
 

library output-renderer-abstract

Common abstract functionality for output renderers.

image

dhii/output-renderer-abstract

Common abstract functionality for output renderers.

  • Thursday, May 10, 2018
  • by XedinUnknown
  • Repository
  • 3 Watchers
  • 0 Stars
  • 1,137 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 47 % Grown

The README.md

Dhii - Output - Renderer - Abstract

Build Status Code Climate Test Coverage Latest Stable Version This package complies with Dhii standards, (*1)

Common abstract functionality for output renderers., (*2)

Details

This package provides abstract functionality for the most common implementations of output renderers. The classes are meant to implement functionality for interfaces in [dhii/output-renderer-interface], although of course they can be used for other purposes. This is a good place to start if you are creating your own renderer of a new kind. If you are looking for a little more specialized yet common functionality that extends this, see [dhii/output-renderer-base]., (*3)

Classes

  • [AbstractBlock] - Intended for [BlockInterface], which is usually something that contains all data needed to produce output. Takes care of what happens when it is cast to string.
  • [AbstractTemplate] - Intended for [TemplateInterface], which is usually something that can produce output with the help of a context. Takes care of creating a standardized flow of rendering with a context.
  • [AbstractTemplateBlock] - Standardizes flow for blocks that internally use a template to render.
  • [BlockAwareTrait] - Internal functionality for storing and retrieving a block. Does minimal validation. Can be used to back up [BlockAwareInterface].
  • [ContextAwareTrait] - Internal functionality for storing and retrieving a context in the form of a [ContainerInterface]. Can be used to back up [ContextAwareInterface].
  • [RenderTemplateCapableTrait] - Standardizes the process of rendering a template. Intended to complement [AbstractTemplateBlock].
  • [RendererAwareTrait] - Internal functionality for storing and retrieving a renderer. Does minimal validation. Can be used to back up [RendererAwareInterface].
  • [TemplateAwareTrait] - Internal functionality for storing and retrieving a template. Does minimal validation. Can be used to back up [TemplateAwareInterface].

The Versions

05/04 2018
05/04 2018