Inheritance diagram for View:Renders a template with data.
Protected Properties | |
| int DateTimeInterface | $cacheTtl = 0 |
| array | $data = [] |
| Extracted to variables upon render. More... | |
| string | $template |
Public Methods | |
| __construct (string $template, array $data=[]) | |
| string | __toString () |
| int DateTimeInterface | getCacheTtl () |
| The minimum TTL, considering the instance itself and any nested views. More... | |
| string | getContent () |
| Returns what would be rendered. More... | |
| bool | offsetExists ($offset) |
| mixed | offsetGet ($key) |
| void | offsetSet ($key, $value) |
| void | offsetUnset ($key) |
| void | render () |
| Directly outputs content. More... | |
| $this | setCacheTtl ($cacheTtl) |
|
protected |
Extracted to variables upon render.
| string __toString | ( | ) |
| int DateTimeInterface getCacheTtl | ( | ) |
The minimum TTL, considering the instance itself and any nested views.
| string getContent | ( | ) |
Returns what would be rendered.
| bool offsetExists | ( | $offset | ) |
| mixed | $offset |
| mixed offsetGet | ( | $key | ) |
| mixed | $key |
| void offsetSet | ( | $key, | |
| $value | |||
| ) |
| mixed | $key | |
| mixed | $value |
| void offsetUnset | ( | $key | ) |
| mixed | $key |
| void render | ( | ) |
Directly outputs content.
Extracts $data to variables, and includes the template. $this within the template references the view instance.
| $this setCacheTtl | ( | $cacheTtl | ) |
| int | DateTimeInterface | $cacheTtl |