Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe HtmlView
+ Graphe d'héritage de HtmlView:

Fonctions membres publiques

 display ($tpl=null)
 
- Fonctions membres publiques hérités de HtmlView
 __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)
 

Champs de données

 $filterForm
 
 $activeFilters
 
- Champs de données hérités de AbstractView
 $document
 

Fonctions membres protégées

 addToolbar ()
 
- Fonctions membres protégées hérités de HtmlView
 _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

 $items
 
 $pagination
 
 $state
 
- Attributs protégés hérités de HtmlView
 $_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()
 

Attributs privés

 $isEmptyState = false
 

Description détaillée

View class for a list of modules.

Depuis
1.6

Documentation des fonctions membres

◆ addToolbar()

addToolbar ( )
protected

Add the page title and toolbar.

Renvoie
void
Depuis
1.6

Références $canDo, $state, $toolbar, $user, Text\_(), ContentHelper\getActions(), Joomla\CMS\User\getCurrentUser(), Toolbar\getInstance(), et ToolbarHelper\title().

◆ display()

display (   $tpl = null)

Display the view

Paramètres
string$tplThe name of the template file to parse; automatically searches through the template paths.
Renvoie
void
Depuis
1.6

The code below make sure the remembered position will be available from filter dropdown even if there are no modules available for this position. This will make the UI less confusing for users in case there is only one module in the selected position and user:

  1. Edit the module, change it to new position, save it and come back to Modules Management Screen
  2. Or move that module to new position using Batch action

Implémente ViewInterface.

Références $option, Factory\getApplication(), ModuleHelper\isAdminMultilang(), Multilanguage\isEnabled(), et items.

Documentation des champs

◆ $activeFilters

$activeFilters

◆ $filterForm

$filterForm

◆ $isEmptyState

$isEmptyState = false
private

◆ $items

$items
protected

◆ $pagination

$pagination
protected

◆ $state

$state
protected

La documentation de cette classe a été générée à partir du fichier suivant :