Cotpl_data
public class Cotpl_data
| Field Summary | |
|---|---|
| protected array Block data consisting of strings and Cotpl_vars | |
| protected static bool Enables space removal for compact output | |
| Constructor Summary | |
|---|---|
| void | __construct(string code) Block constructor |
| Method Summary | |
|---|---|
| string | TPL representation for debugging |
| array | getTags() Returns the list of tag names present in data block |
| static void | init(bool Enables, bool cleanup_enabled) Initializes static class configuration |
| string | Returns parsed block contents |
| private string | cleanup(string html) Trims spaces before and after tags |
protected array Block data consisting of strings and Cotpl_vars $chunks = array()
protected static bool Enables space removal for compact output $cleanup_enabled = false
public void __construct(string code)
public string __toString()
public array getTags()
public static void init(bool Enables, bool cleanup_enabled)
public string text(XTemplate tpl)
private string cleanup(string html)