DomTemplate


Dom_Repeat

Class Dom_Repeat

Dom_Template
|
+--Dom_Repeat

public class Dom_Repeat
extends Dom_Template

A repeat region is a sub template of a parent templates nodes.


Field Summary
protected string

$repeatName

protected DOMElement

$repeatNode

Fields inherited from Dom_Template
body, choice, comments, document, form, formElement, head, headers, nextSibling, parent, parsed, repeat, title, var
Constructor Summary

__construct(string repeatName, Dom_Template parent)

__construct

Method Summary
void

append(string var)

Append a repeating region to the document.

Methods inherited from Dom_Template
appendDoc, appendHeadElement, appendTemplate, cleanXml, getAttr, getBodyElement, getDocument, getElementById, getForm, getHeaderList, getNextSibling, getRepeat, getRepeatElement, getText, getTitleText, getVarElement, init, insertDoc, insertHTML, insertTemplate, isParsed, keyExists, load, loadXml, objectToString, preInit, removeChildren, replaceAttr, replaceHTML, replaceText, setChoice, setHeaderList, setNextSibling, setTitleText, toString, unsetChoice

Field Detail

repeatName

protected string $repeatName = ''


repeatNode

protected DOMElement $repeatNode = null


Constructor Detail

__construct

public __construct(string repeatName, Dom_Template parent)

__construct

Todo:
It would be good to send the repeat node as a parameter * but we need access to the node name, ideas??

Method Detail

append

public void append(string var)

Append a repeating region to the document. Repeating regions are appended to the supplied var. If the var is null or '' then the repeating region is appended to is original location in the parent template.


DomTemplate