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_fields/groups/default.php

Espaces de nommage

 Joomla\Administrator
 

Variables

 $app = JFactory::getApplication()
 
 $user = JFactory::getUser()
 
 $userId = $user->get('id')
 
 $component = ''
 
 $parts = FieldsHelper::extract($this->state->get('filter.context'))
 
if($parts) $listOrder = $this->escape($this->state->get('list.ordering'))
 
 $listDirn = $this->escape($this->state->get('list.direction'))
 
 $ordering = ($listOrder == 'a.ordering')
 
 $saveOrder = ($listOrder == 'a.ordering' && strtolower($listDirn) == 'asc')
 
 if ( $saveOrder)
 
else __pad21__
 
 $canEdit = $user->authorise('core.edit', $component . '.fieldgroup.' . $item->id)
 
 $canCheckin = $user->authorise('core.admin', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0
 
 $canEditOwn = $user->authorise('core.edit.own', $component . '.fieldgroup.' . $item->id) && $item->created_by == $userId
 
 $canChange = $user->authorise('core.edit.state', $component . '.fieldgroup.' . $item->id) && $canCheckin
 
else __pad22__
 
 endif
 
 endforeach
 

Documentation des variables

◆ $app

$app = JFactory::getApplication()

◆ $canChange

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

◆ $canCheckin

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

◆ $canEdit

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

◆ $canEditOwn

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

◆ $component

$component = ''

◆ $listDirn

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

◆ $listOrder

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

◆ $ordering

$ordering = ($listOrder == 'a.ordering')

◆ $parts

$parts = FieldsHelper::extract($this->state->get('filter.context'))

◆ $saveOrder

$saveOrder = ($listOrder == 'a.ordering' && strtolower($listDirn) == 'asc')

◆ $user

$user = JFactory::getUser()

◆ $userId

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

◆ __pad21__

else __pad21__

◆ __pad22__

else __pad22__

◆ endforeach

endforeach

◆ endif

endif

◆ if

if($saveOrder)