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 ContentViewArticle
+ Graphe d'héritage de ContentViewArticle:

Fonctions membres publiques

 display ($tpl=null)
 
 display ($tpl=null)
 

Fonctions membres protégées

 addToolbar ()
 
 _prepareDocument ()
 

Attributs protégés

 $form
 
 $item
 
 $state
 
 $canDo
 
 $params
 
 $print
 
 $user
 

Description détaillée

View to edit an article.

Depuis
1.6

HTML Article View class for the Content component

Depuis
1.5

Documentation des fonctions membres

◆ _prepareDocument()

_prepareDocument ( )
protected

Prepares the document.

Renvoie
void

Because the application sets a default page title, we need to get it from the menu item itself

Références $app, $author, $category, $id, $item, $menu, $path, $title, elseif, ContentHelperRoute\getCategoryRoute(), if, item, et null.

◆ addToolbar()

addToolbar ( )
protected

Add the page title and toolbar.

Renvoie
void
Depuis
1.6

Références $user, $userId, item, et title.

◆ display() [1/2]

display (   $tpl = null)

Execute and display a template script.

Paramètres
string$tplThe name of the template file to parse; automatically searches through the template paths.
Renvoie
mixed A string if successful, otherwise an Error object.

Check for no 'access-view' and empty fulltext,

  • Redirect guest users to login
  • Deny access to logged users with 403 code NOTE: we do not recheck for no access-view + show_noauth disabled ... since it was checked above

NOTE: The following code (usually) sets the text to contain the fulltext, but it is the responsibility of the layout to check 'access-view' and only use "introtext" for guests

Références $active, $app, $dispatcher, $item, $layout, $offset, $params, $results, $return, $user, ContentHelperAssociation\displayAssociations(), elseif, ContentHelperRoute\getArticleRoute(), JEventDispatcher\getInstance(), htmlspecialchars, if, item, null, pageclass_sfx, et JError\raiseWarning().

◆ display() [2/2]

display (   $tpl = null)

Execute and display a template script.

Paramètres
string$tplThe name of the template file to parse; automatically searches through the template paths.
Renvoie
mixed A string if successful, otherwise an Error object.
Depuis
1.6

Références $forcedLanguage, item, et null.

Documentation des champs

◆ $canDo

$canDo
protected

◆ $form

$form
protected

◆ $item

$item
protected

◆ $params

$params
protected

◆ $print

$print
protected

◆ $state

$state
protected

◆ $user

$user
protected

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