Joomla CMS  3.8.5 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.8.5 et du framework Joomla Platform intégré
Référence du fichier administrator/templates/hathor/html/com_content/articles/default.php

Espaces de nommage

 Joomla\Administrator
 

Variables

 $app = JFactory::getApplication()
 
 $user = JFactory::getUser()
 
 $userId = $user->get('id')
 
 $listOrder = $this->escape($this->state->get('list.ordering'))
 
 $listDirn = $this->escape($this->state->get('list.direction'))
 
 $saveOrder = $listOrder == 'a.ordering'
 
 $assoc = JLanguageAssociations::isEnabled()
 
 $n = count($this->items)
 
if(!empty( $this->sidebar)) else
 
 endif
 
foreach($this->items as $i=> $item$ordering = ($listOrder == 'a.ordering')
 
 $canCreate = $user->authorise('core.create', 'com_content.category.' . $item->catid)
 
 $canEdit = $user->authorise('core.edit', 'com_content.article.' . $item->id)
 
 $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0
 
 $canEditOwn = $user->authorise('core.edit.own', 'com_content.article.' . $item->id) && $item->created_by == $userId
 
 $canChange = $user->authorise('core.edit.state', 'com_content.article.' . $item->id) && $canCheckin
 
else __pad10__
 
 $disabled = $saveOrder ? '' : 'disabled="disabled"'
 
else __pad11__
 
else __pad12__
 
 endforeach
 

Documentation des variables

◆ $app

$app = JFactory::getApplication()

◆ $assoc

$assoc = JLanguageAssociations::isEnabled()

◆ $canChange

$canChange = $user->authorise('core.edit.state', 'com_content.article.' . $item->id) && $canCheckin

◆ $canCheckin

$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0

◆ $canCreate

$canCreate = $user->authorise('core.create', 'com_content.category.' . $item->catid)

◆ $canEdit

$canEdit = $user->authorise('core.edit', 'com_content.article.' . $item->id)

◆ $canEditOwn

$canEditOwn = $user->authorise('core.edit.own', 'com_content.article.' . $item->id) && $item->created_by == $userId

◆ $disabled

$disabled = $saveOrder ? '' : 'disabled="disabled"'

◆ $listDirn

$listDirn = $this->escape($this->state->get('list.direction'))

◆ $listOrder

$listOrder = $this->escape($this->state->get('list.ordering'))

◆ $n

$n = count($this->items)

◆ $ordering

foreach ( $this->items as $i=> $item) $ordering = ($listOrder == 'a.ordering')

◆ $saveOrder

$saveOrder = $listOrder == 'a.ordering'

◆ $user

$user = JFactory::getUser()

◆ $userId

$userId = $user->get('id')

◆ __pad10__

else __pad10__

◆ __pad11__

else __pad11__

◆ __pad12__

else __pad12__

◆ else

if (!empty($this->sidebar)) else

◆ endforeach

endforeach

◆ endif

endif