DomTemplate


Dom_Renderer

Class Dom_Renderer

Dom_Renderer

public abstract class Dom_Renderer

For all classes that render dom templates.

This is a good base for all renderer objects that implement the Dom_Template it can guide you to create templates that can be inserted into other template objects.

For objects that have a null template when the method getTemplate() is called the template object is returned. If the current template is null then the magic method __makeTemplate() will be called to create an internal template. This is a good way to create a default template. But be aware that this will be a new template and will have to be inserted into its parent using the Dom_Template::insertTemplate() method.


Method Summary
Dom_Template

getTemplate()

Get the template This method will try to call the magic method __makeTemplate to create a template if one has not been set by setTemplate().

void

setTemplate(Dom_Template template)

Set a new template for this renderer.

Method Detail

getTemplate

public Dom_Template getTemplate()

Get the template This method will try to call the magic method __makeTemplate to create a template if one has not been set by setTemplate(). Use this for objects that use an internal templates.


setTemplate

public void setTemplate(Dom_Template template)

Set a new template for this renderer.


DomTemplate