FileLayout
class FileLayout extends BaseLayout
Base class for rendering a display layout loaded from from a layout file
Methods
Method to render the layout.
Add a debug message to the debug messages array
Method to get the value from the data array
Method to set a value in the data array. Example: $layout->set('items', $items);
Method to instantiate the file-based layout.
Add one path to include in layout search. Proxy of addIncludePaths()
Add one or more paths to include in layout search
Clear the include paths
Get the active include paths
Get the active layout id
Get the active suffixes
Load the automatically generated language suffixes.
Load the automatically generated version suffixes.
Remove one path from the layout search
Remove one or more paths to exclude in layout search
Method to change the component where search for layouts
Function to initialise the application client
Change the layout
Set the active layout id
Get the default array of include paths
Set the include paths to search for layouts
Set suffixes to search layouts
Render a layout with the same include paths & options
Details
BaseLayout
set(
string $key,
mixed $value)
Method to set a value in the data array. Example: $layout->set('items', $items);
__construct(
string $layoutId,
string $basePath = null,
mixed $options = null)
Method to instantiate the file-based layout.
FileLayout
addIncludePath(
string $path)
Add one path to include in layout search. Proxy of addIncludePaths()
FileLayout
loadLanguageSuffixes()
Load the automatically generated language suffixes.
Example: array('es-ES', 'es', 'ltr')
FileLayout
loadVersionSuffixes()
Load the automatically generated version suffixes.
Example: array('j311', 'j31', 'j3')