◆ __construct()
__construct |
( |
& |
$subject, |
|
|
|
$config |
|
) |
| |
Constructor.
- Paramètres
-
object | &$subject | The object to observe |
array | $config | An optional associative array of configuration settings. |
- Depuis
- 3.7.0
Références $config, et $subject.
◆ displayVotingData()
displayVotingData |
( |
|
$context, |
|
|
& |
$row, |
|
|
& |
$params, |
|
|
|
$page |
|
) |
| |
|
private |
Displays the voting area
- Paramètres
-
string | $context | The context of the content being passed to the plugin |
object | &$row | The article object |
object | &$params | The article params |
integer | $page | The '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 | $context | The context of the content being passed to the plugin |
object | &$row | The article object |
object | &$params | The article params |
integer | $page | The '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 | $context | The context of the content being passed to the plugin |
object | &$row | The article object |
object | &$params | The article params |
integer | $page | The '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.
◆ $app
◆ $votingPosition
La documentation de cette classe a été générée à partir du fichier suivant :