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é
Référence du fichier components/com_modules/views/module/tmpl/edit_assignment.php

Espaces de nommage

 Joomla\Administrator
 

Variables

 $menuTypes = MenusHelper::getMenuLinks()
 
 $script
 
 if (!empty( $menuTypes))
 
foreach ($menuTypes as &$type) (count( $type->links))
 
foreach( $type->links as $i=> $link)($prevlevel< $link->level) elseif($prevlevel > $link->level) else
 
 $selected = 0
 
if($this->item->assignment==0) elseif($this->item->assignment< 0) elseif($this->item->assignment > 0) $uselessMenuItem = in_array($link->type, array('separator', 'heading', 'alias', 'url'))
 
else __pad1__
 
 endif
 
if(!isset($type->links[$i+1])) $prevlevel = $link->level
 
 endforeach
 

Documentation des variables

◆ $menuTypes

◆ $prevlevel

if (!isset( $type->links[ $i+1])) $prevlevel = $link->level

◆ $script

$script
Valeur initiale :
= "
jQuery(document).ready(function()
{
menuHide(jQuery('#jform_assignment').val());
jQuery('#jform_assignment').change(function()
{
menuHide(jQuery(this).val());
})
});
function menuHide(val)
{
if (val == 0 || val == '-')
{
jQuery('#menuselect-group').hide();
}
else
{
jQuery('#menuselect-group').show();
}
}
"

◆ $selected

$selected = 0

◆ $uselessMenuItem

if ( $this->item->assignment==0) elseif ( $this->item->assignment< 0) elseif ( $this->item->assignment > 0) $uselessMenuItem = in_array($link->type, array('separator', 'heading', 'alias', 'url'))

◆ ($menuTypes as &$type)

foreach ( $menuTypes as & $type)(count($type->links))

◆ __pad1__

else __pad1__

◆ else

foreach ($type->links as $i => $link) ( $prevlevel< $link->level) elseif ( $prevlevel > $link->level) else
Valeur initiale :
{
echo '</li>'

◆ endforeach

endforeach

◆ endif

endif

◆ if

if(!empty($menuTypes))