Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JViewHtml
+ Graphe d'héritage de JViewHtml:

Fonctions membres publiques

 __construct (JModel $model, SplPriorityQueue $paths=null)
 
 __toString ()
 
 escape ($output)
 
 getLayout ()
 
 getPath ($layout)
 
 getPaths ()
 
 render ()
 
 setLayout ($layout)
 
 setPaths (SplPriorityQueue $paths)
 
- Fonctions membres publiques hérités de JViewBase
 __construct (JModel $model)
 
 escape ($output)
 

Fonctions membres protégées

 loadPaths ()
 

Attributs protégés

 $layout = 'default'
 
 $paths
 
- Attributs protégés hérités de JViewBase
 $model
 

Description détaillée

Joomla Platform HTML View Class

Depuis
3.0.0
Obsolète:
4.0 Use the default MVC library

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( JModel  $model,
SplPriorityQueue  $paths = null 
)

Method to instantiate the view.

Paramètres
JModel$modelThe model object.
SplPriorityQueue$pathsThe paths queue.
Depuis
3.0.0

Documentation des fonctions membres

◆ __toString()

__toString ( )

Magic toString method that is a proxy for the render method.

Renvoie
string
Depuis
3.0.0

◆ escape()

escape (   $output)

Method to escape output.

Paramètres
string$outputThe output to escape.
Renvoie
string The escaped output.
Note
the ENT_COMPAT flag will be replaced by ENT_QUOTES in Joomla 4.0 to also escape single quotes
Voir également
JView::escape()
Depuis
3.0.0

Implémente JView.

Références $output, ENT_COMPAT, et htmlspecialchars.

◆ getLayout()

getLayout ( )

Method to get the view layout.

Renvoie
string The layout name.
Depuis
3.0.0

Références $layout.

◆ getPath()

getPath (   $layout)

Method to get the layout path.

Paramètres
string$layoutThe layout name.
Renvoie
mixed The layout file name if found, false otherwise.
Depuis
3.0.0

Références $file, $layout, et $path.

◆ getPaths()

getPaths ( )

Method to get the view paths.

Renvoie
SplPriorityQueue The paths queue.
Depuis
3.0.0

◆ loadPaths()

loadPaths ( )
protected

Method to load the paths queue.

Renvoie
SplPriorityQueue The paths queue.
Depuis
3.0.0

◆ render()

render ( )

Method to render the view.

Renvoie
string The rendered view.
Depuis
3.0.0
Exceptions
RuntimeException

Implémente JView.

Références $output, et $path.

◆ setLayout()

setLayout (   $layout)

Method to set the view layout.

Paramètres
string$layoutThe layout name.
Renvoie
JViewHtml Method supports chaining.
Depuis
3.0.0

Références $layout.

◆ setPaths()

setPaths ( SplPriorityQueue  $paths)

Method to set the view paths.

Paramètres
SplPriorityQueue$pathsThe paths queue.
Renvoie
JViewHtml Method supports chaining.
Depuis
3.0.0

Documentation des champs

◆ $layout

$layout = 'default'
protected

◆ $paths

$paths
protected

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