Cotpl_block
public class Cotpl_block
| Field Summary | |
|---|---|
| array Contained blocks | |
| protected array Parsed block instances | |
| Constructor Summary | |
|---|---|
| void | __construct(string code, array index, array path) Block constructor |
| Method Summary | |
|---|---|
| string | TPL code representation for debugging |
| protected string | blocks_toString(array blocks) Generates string representation for given set of blocks |
| protected void | compile(string code, array blocks, array index, array path) Compiles TPL text into CoTemplate objects |
| array | getTags() Returns the list of tag names present in the block |
| void | Parses block contents |
| void | reset(mixed path) Clears parsed block data |
| string | Returns parsed block HTML |
public array Contained blocks $blocks = array()
protected array Parsed block instances $data = array()
public void __construct(string code, array index, array path)
public string __toString()
protected string blocks_toString(array blocks)
protected void compile(string code, array blocks, array index, array path)
public array getTags()
public void parse(XTemplate tpl)
public void reset(mixed path)
public string text(XTemplate tpl)