Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($config=array()) | |
display ($tpl=null) | |
escape ($var) | |
getLayout () | |
getLayoutTemplate () | |
setLayout ($layout) | |
setLayoutExt ($value) | |
addTemplatePath ($path) | |
addHelperPath ($path) | |
loadTemplate ($tpl=null) | |
loadHelper ($hlp=null) | |
getForm () | |
setDocumentTitle ($title) | |
Fonctions membres publiques hérités de AbstractView | |
__construct ($config=array()) | |
display ($tpl=null) | |
get ($property, $default=null) | |
getModel ($name=null) | |
setModel ($model, $default=false) | |
getName () | |
Fonctions membres publiques hérités de CMSObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de CurrentUserInterface | |
setCurrentUser (User $currentUser) | |
Fonctions membres protégées | |
_setPath ($type, $path) | |
_addPath ($type, $path) | |
_createFileName ($type, $parts=array()) | |
Fonctions membres protégées hérités de AbstractView | |
dispatchEvent (EventInterface $event) | |
Attributs protégés | |
$_basePath = null | |
$_layout = 'default' | |
$_layoutExt = 'php' | |
$_layoutTemplate = '_' | |
$_path = array('template' => array(), 'helper' => array()) | |
$_template = null | |
$_output = null | |
$_charset = 'UTF-8' | |
Attributs protégés hérités de AbstractView | |
$option = null | |
$_name = null | |
$_models = array() | |
$_defaultModel = null | |
Attributs protégés hérités de CMSObject | |
$_errors = array() | |
Membres hérités additionnels | |
Champs de données hérités de AbstractView | |
$document | |
Base class for a Joomla Html View
Class holding methods for displaying presentation data.
__construct | ( | $config = array() | ) |
Constructor
array | $config | A named configuration array for object construction. name: the name (optional) of the view (defaults to the view class name suffix). charset: the character set to use for display escape: the name (optional) of the function to use for escaping strings base_path: the parent path (optional) of the views directory (defaults to the component folder) template_plath: the path (optional) of the layout directory (defaults to base_path + /views/ + view name helper_path: the path (optional) of the helper files (defaults to base_path + /helpers/) layout: the layout (optional) to use to display the view |
Références $config, Symfony\Contracts\Service\__construct(), Uri\base(), et elseif.
|
protected |
Adds to the search path for templates and resources.
string | $type | The type of path to add. |
mixed | $path | The directory or stream, or an array of either, to search. |
Références $dir, $path, $type, et Path\clean().
|
protected |
|
protected |
Sets an entire array of search paths for templates or resources.
string | $type | The type of path to set, typically 'template'. |
mixed | $path | The new search path, or an array of search paths. If null or false, resets to the current directory only. |
Références $app, $component, $name, $option, $path, $template, $type, Factory\getApplication(), ApplicationHelper\getComponentName(), et JPATH_THEMES.
addHelperPath | ( | $path | ) |
Adds to the stack of helper script paths in LIFO order.
mixed | $path | A directory path or an array of paths. |
Références $path.
addTemplatePath | ( | $path | ) |
Adds to the stack of view script paths in LIFO order.
mixed | $path | A directory path or an array of paths. |
Références $path.
display | ( | $tpl = null | ) |
Execute and display a template script.
string | $tpl | The name of the template file to parse; automatically searches through the template paths. |
Implémente ViewInterface.
Références $app, $component, $context, $option, $result, $this, AbstractEvent\create(), Factory\getApplication(), et ApplicationHelper\getComponentName().
escape | ( | $var | ) |
Escapes a value for output in a view script.
If escaping mechanism is htmlspecialchars, use $_charset setting.
mixed | $var | The output to escape. |
Références ENT_QUOTES, et null.
getForm | ( | ) |
Returns the form object
Références $form.
getLayout | ( | ) |
Get the layout.
getLayoutTemplate | ( | ) |
Get the layout template.
loadHelper | ( | $hlp = null | ) |
Load a helper file
string | $hlp | The name of the helper source file automatically searches the helper paths and compiles as needed. |
Références $helper, et Path\find().
loadTemplate | ( | $tpl = null | ) |
Load a template file – first look in the templates folder for an override
string | $tpl | The name of the template source file; automatically searches the template paths and compiles as needed. |
Références $lang, $layout, $template, $this, Path\find(), Factory\getApplication(), Factory\getLanguage(), JPATH_BASE, JPATH_THEMES, null, et Text\sprintf().
setDocumentTitle | ( | $title | ) |
Sets the document title according to Global Configuration options
string | $title | The page title |
Références $app, $title, elseif, Factory\getApplication(), et Text\sprintf().
setLayout | ( | $layout | ) |
setLayoutExt | ( | $value | ) |
Allows a different extension for the layout files to be used
string | $value | The extension. |
Références $value.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |