Dom_Renderer
public abstract class Dom_Renderer
| Method Summary | |
|---|---|
| Dom_Template | 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. |
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.
public void setTemplate(Dom_Template template)
Set a new template for this 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.