BaseLayout
class BaseLayout implements LayoutInterface
Base class for rendering a display layout
Methods
setOptions(
array|Registry $options = null)
Set the options
Registry
getOptions()
Get the options
resetOptions()
Function to empty all the options
string
escape(
string $output)
Method to escape output.
array
getDebugMessages()
Get the debug messages array
string
render(
array $displayData)
Method to render the layout.
string
renderDebugMessages()
Render the list of debug messages
addDebugMessage(
string $message)
Add a debug message to the debug messages array
clearDebugMessages()
Clear the debug messages array
string
debug(
mixed $data = array())
Render a layout with debug info
mixed
get(
string $key,
mixed $defaultValue = null)
Method to get the value from the data array
array
getData()
Get the data being rendered
boolean
isDebugEnabled()
Check if debug mode is enabled
set(
string $key,
mixed $value)
Method to set a value in the data array. Example: $layout->set('items', $items);
setData(
array $data)
Set the the data passed the layout
setDebug(
boolean $debug)
Change the debug mode
Details
BaseLayout
set(
string $key,
mixed $value)
Method to set a value in the data array. Example: $layout->set('items', $items);