Cotpl_block
└─Cotpl_loop
public class Cotpl_loop
extends Cotpl_block
| Field Summary | |
|---|---|
| protected string | Key variable name (optional) |
| protected Cotpl_var | Source set/array variable |
| protected string | Value variable name |
| Fields inherited from API - CoTemplate\Cotpl_block | |
|---|---|
| blocks, data | |
| Constructor Summary | |
|---|---|
| void | __construct(string header, string code, array index, array path) Constructs loop block structure from strings |
| Method Summary | |
|---|---|
| string | TPL code representation for debugging |
| void | parse(XTemplate xtpl, XTemplate tpl) Overloads parse() |
| void | reset(mixed dummy, mixed path) Overloads reset() |
| string | Actually parses a conditional block and returns parsed contents |
| Methods inherited from API - CoTemplate\Cotpl_block | |
|---|---|
| __construct, __toString, blocks_toString, compile, getTags, parse, reset, text | |
protected string $key = ''
protected Cotpl_var $set = null
protected string $val = ''
public void __construct(string header, string code, array index, array path)
public string __toString()
public void parse(XTemplate xtpl, XTemplate tpl)
public void reset(mixed dummy, mixed path)
public string text(XTemplate tpl)