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 administrator/templates/hathor/html/com_fields/fields/default.php

Espaces de nommage

 Joomla\Administrator
 

Variables

 $app = JFactory::getApplication()
 
 $user = JFactory::getUser()
 
 $userId = $user->get('id')
 
 $context = $this->escape($this->state->get('filter.context'))
 
 $component = $this->state->get('filter.component')
 
 $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')
 
 $category = JCategories::getInstance(str_replace('com_', '', $component))
 
 if ( $saveOrder)
 
else __pad19__
 
 $canEdit = $user->authorise('core.edit', $component . '.field.' . $item->id)
 
 $canCheckin = $user->authorise('core.admin', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0
 
 $canEditOwn = $user->authorise('core.edit.own', $component . '.field.' . $item->id) && $item->created_user_id == $userId
 
 $canChange = $user->authorise('core.edit.state', $component . '.field.' . $item->id) && $canCheckin
 
else __pad20__
 
 endif
 
else __pad21__
 

Documentation des variables

◆ $app

$app = JFactory::getApplication()

◆ $canChange

$canChange = $user->authorise('core.edit.state', $component . '.field.' . $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 . '.field.' . $item->id)

◆ $canEditOwn

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

◆ $category

$category = JCategories::getInstance(str_replace('com_', '', $component))

◆ $component

$component = $this->state->get('filter.component')

◆ $context

$context = $this->escape($this->state->get('filter.context'))

◆ $listDirn

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

◆ $listOrder

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

◆ $ordering

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

◆ $saveOrder

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

◆ $user

$user = JFactory::getUser()

◆ $userId

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

◆ __pad19__

else __pad19__

◆ __pad20__

else __pad20__

◆ __pad21__

else __pad21__

◆ endif

endif

◆ if

if($saveOrder)