Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($layoutId, $basePath=null, $options=null) | |
render ($displayData=array()) | |
addIncludePath ($path) | |
addIncludePaths ($paths) | |
clearIncludePaths () | |
getIncludePaths () | |
getLayoutId () | |
getSuffixes () | |
loadLanguageSuffixes () | |
loadVersionSuffixes () | |
removeIncludePath ($path) | |
removeIncludePaths ($paths) | |
setComponent ($option) | |
setClient ($client) | |
setLayoutId ($layoutId) | |
getDefaultIncludePaths () | |
setIncludePaths ($paths) | |
setSuffixes (array $suffixes) | |
sublayout ($layoutId, $displayData) | |
Fonctions membres publiques hérités de BaseLayout | |
setOptions ($options=null) | |
getOptions () | |
resetOptions () | |
escape ($output) | |
getDebugMessages () | |
render ($displayData) | |
renderDebugMessages () | |
addDebugMessage ($message) | |
clearDebugMessages () | |
debug ($data=array()) | |
get ($key, $defaultValue=null) | |
getData () | |
isDebugEnabled () | |
set ($key, $value) | |
setData (array $data) | |
setDebug ($debug) | |
Fonctions membres protégées | |
getPath () | |
validComponent ($option=null) | |
Attributs protégés | |
$layoutId = '' | |
$basePath = null | |
$fullPath = null | |
$includePaths = array() | |
Attributs protégés hérités de BaseLayout | |
$options = null | |
$data = array() | |
$debugMessages = array() | |
Attributs protégés statiques | |
static | $cache = array() |
addIncludePath | ( | $path | ) |
Add one path to include in layout search. Proxy of addIncludePaths()
string|string[] | $path The path to search for layouts |
addIncludePaths | ( | $paths | ) |
Add one or more paths to include in layout search
string|string[] | $paths The path or array of paths to search for layouts |
Références $this.
clearIncludePaths | ( | ) |
getDefaultIncludePaths | ( | ) |
Get the default array of include paths
Références $component, $template, Factory\getApplication(), JPATH_ADMINISTRATOR, JPATH_ROOT, JPATH_SITE, JPATH_THEMES, et null.
getIncludePaths | ( | ) |
Get the active include paths
getLayoutId | ( | ) |
Get the active layout id
|
protected |
Method to finds the full real file path, checking possible overrides
Références $hash, $suffix, et Path\find().
getSuffixes | ( | ) |
Get the active suffixes
loadLanguageSuffixes | ( | ) |
Load the automatically generated language suffixes. Example: array('es-ES', 'es', 'ltr')
Références $lang, $this, et Factory\getLanguage().
loadVersionSuffixes | ( | ) |
Load the automatically generated version suffixes. Example: array('j311', 'j31', 'j3')
Références $this.
removeIncludePath | ( | $path | ) |
removeIncludePaths | ( | $paths | ) |
Remove one or more paths to exclude in layout search
string | $paths | The path or array of paths to remove for the layout search |
Références $this.
render | ( | $displayData = array() | ) |
Method to render the layout.
array | $displayData | Array of properties available for use inside the layout file to build the displayed output |
Implémente LayoutInterface.
Références $displayData, et $path.
setClient | ( | $client | ) |
Function to initialise the application client
mixed | $client | Frontend: 'site' or 0 | Backend: 'admin' or 1 |
Références $client, et Factory\getApplication().
setComponent | ( | $option | ) |
Method to change the component where search for layouts
string | $option | URL Option of the component. Example: com_content |
Références $component, $option, ApplicationHelper\getComponentName(), et null.
setIncludePaths | ( | $paths | ) |
Set the include paths to search for layouts
array | $paths | Array with paths to search in |
Références $this.
setLayoutId | ( | $layoutId | ) |
setSuffixes | ( | array | $suffixes | ) |
sublayout | ( | $layoutId, | |
$displayData | |||
) |
Render a layout with the same include paths & options
string | $layoutId | The identifier for the sublayout to be searched in a subfolder with the name of the current layout |
mixed | $displayData | Data to be rendered |
Références $basePath, $displayData, $options, et $sublayout.
|
protected |
Validate that the active component is valid
string | $option | URL Option of the component. Example: com_content |
Références $component, $option, ComponentHelper\isEnabled(), et null.
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |