DefaultLayout
class DefaultLayout extends Layout
A default Layout with a "classic" web-page canvas
Traits
ViewFileTrait
Patterns\Traits\OptionableTrait
Patterns\Traits\TemplateViewTrait
Methods
string
render(
string $view = null,
array $params = array())
Building of a view content including a view file passing it parameters
from
ViewFileTrait
__construct(
array $options = array())
No description
$this
setChildParam(
string $name,
string $param_name,
mixed $param_value)
No description
from
Layout
string
renderLayout(
array $params = array())
Build the global layout with all children contents
Details
in
ViewFileTrait at line 48
string
render(
string $view = null,
array $params = array())
Building of a view content including a view file passing it parameters
in
ViewFileTrait at line 78
array
getDefaultViewParams()
Get the default parameters for all views
in
ViewFileTrait at line 89
string
getTemplate(
string $name)
Search a view file in the current file system
at line 56
__construct(
array $options = array())
in
Layout at line 62
string
__toString()
in
Layout at line 95
$this
setLayout(
string $view)
in
Layout at line 103
string
getLayout()
in
Layout at line 119
$this
setChild(
string $name,
string $view,
array $params = array())
in
Layout at line 133
$this
setChildParam(
string $name,
string $param_name,
mixed $param_value)
in
Layout at line 151
$this
setChildAsString(
string $name,
string $content)
in
Layout at line 161
mixed
getChild(
string $name)
in
Layout at line 170
bool
hasChild(
string $name)
in
Layout at line 180
string
renderChild(
string $name,
array $params = array())
at line 67
string
renderLayout(
array $params = array())
Build the global layout with all children contents