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

Fonctions membres publiques

 __construct (&$subject, $config)
 
 onContentBeforeDisplay ($context, &$row, &$params, $page=0)
 
 onContentAfterDisplay ($context, &$row, &$params, $page=0)
 

Attributs protégés

 $app
 
 $votingPosition
 

Fonctions membres privées

 displayVotingData ($context, &$row, &$params, $page)
 

Description détaillée

Vote plugin.

Depuis
1.5

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( $subject,
  $config 
)

Constructor.

Paramètres
object&$subjectThe object to observe
array$configAn optional associative array of configuration settings.
Depuis
3.7.0

Références $config, et $subject.

Documentation des fonctions membres

◆ displayVotingData()

displayVotingData (   $context,
$row,
$params,
  $page 
)
private

Displays the voting area

Paramètres
string$contextThe context of the content being passed to the plugin
object&$rowThe article object
object&$paramsThe article params
integer$pageThe 'page' number
Renvoie
string|boolean HTML string containing code for the votes if in com_content else boolean false
Depuis
3.7.0

Références $context, $html, $params, $parts, $path, $row, et null.

◆ onContentAfterDisplay()

onContentAfterDisplay (   $context,
$row,
$params,
  $page = 0 
)

Displays the voting area when viewing an article and the voting section is displayed after the article

Paramètres
string$contextThe context of the content being passed to the plugin
object&$rowThe article object
object&$paramsThe article params
integer$pageThe 'page' number
Renvoie
string|boolean HTML string containing code for the votes if in com_content else boolean false
Depuis
3.7.0

Références $context, $params, et $row.

◆ onContentBeforeDisplay()

onContentBeforeDisplay (   $context,
$row,
$params,
  $page = 0 
)

Displays the voting area when viewing an article and the voting section is displayed before the article

Paramètres
string$contextThe context of the content being passed to the plugin
object&$rowThe article object
object&$paramsThe article params
integer$pageThe 'page' number
Renvoie
string|boolean HTML string containing code for the votes if in com_content else boolean false
Depuis
1.6

Références $context, $params, et $row.

Documentation des champs

◆ $app

$app
protected

◆ $votingPosition

$votingPosition
protected

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