Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence du fichier rating.php

Espaces de nommage

 Joomla\Plugin
 

Variables

 $wa = $this->app->getDocument()->getWebAssetManager()
 
if($context==='com_content.categories') $iconStar = HTMLHelper::_('image', 'plg_content_vote/vote-star.svg', '', '', true, true)
 
 $iconHalfstar = HTMLHelper::_('image', 'plg_content_vote/vote-star-half.svg', '', '', true, true)
 
if($iconStar===null|| $iconHalfstar===null$pathStar = JPATH_ROOT . substr($iconStar, strlen(Uri::root(true)))
 
 $pathHalfstar = JPATH_ROOT . substr($iconHalfstar, strlen(Uri::root(true)))
 
 $star = file_exists($pathStar) ? file_get_contents($pathStar) : ''
 
 $halfstar = file_exists($pathHalfstar) ? file_get_contents($pathHalfstar) : ''
 
 $rating = (float) $row->rating
 
 $rcount = (int) $row->rating_count
 
 $stars = $rating
 
 $img = ''
 
for($i=0; $i< floor($stars); $i++) if(($stars - floor($stars)) >=0.5) for ( $i=$stars;$i< 5;$i++)
 
 endif
 

Documentation des variables

◆ $halfstar

$halfstar = file_exists($pathHalfstar) ? file_get_contents($pathHalfstar) : ''

◆ $iconHalfstar

$iconHalfstar = HTMLHelper::_('image', 'plg_content_vote/vote-star-half.svg', '', '', true, true)

◆ $iconStar

if ( $context==='com_content.categories') $iconStar = HTMLHelper::_('image', 'plg_content_vote/vote-star.svg', '', '', true, true)

◆ $img

$img = ''

◆ $pathHalfstar

$pathHalfstar = JPATH_ROOT . substr($iconHalfstar, strlen(Uri::root(true)))

◆ $pathStar

if ( $iconStar===null||$iconHalfstar===null) $pathStar = JPATH_ROOT . substr($iconStar, strlen(Uri::root(true)))

◆ $rating

$rating = (float) $row->rating

Référencé par ArticleModel\storeVote().

◆ $rcount

$rcount = (int) $row->rating_count

◆ $star

$star = file_exists($pathStar) ? file_get_contents($pathStar) : ''

Référencé par MenuType\delete().

◆ $stars

$stars = $rating

◆ $wa

$wa = $this->app->getDocument()->getWebAssetManager()

◆ endif

endif

◆ for

for ( $i=0;$i< floor( $stars);$i++) if (( $stars - floor( $stars)) >=0.5) for($i=$stars; $i< 5; $i++)