Dom_Template
|
+--Dom_Repeat
public class Dom_Repeat
extends Dom_Template
| Field Summary | |
|---|---|
| protected string | |
| protected DOMElement | |
| 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 | |
protected string $repeatName = ''
protected DOMElement $repeatNode = null
public __construct(string repeatName, Dom_Template parent)
__construct
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.
A repeat region is a sub template of a parent templates nodes.