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_contact/contacts/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'))
 
 $canOrder = $user->authorise('core.edit.state', 'com_contact')
 
 $saveOrder = $listOrder == 'a.ordering'
 
 $assoc = JLanguageAssociations::isEnabled()
 
if(!empty( $this->sidebar)) else
 
 endif
 
 $n = count($this->items)
 
foreach($this->items as $i=> $item$canCreate = $user->authorise('core.create', 'com_contact.category.' . $item->catid)
 
 $canEdit = $user->authorise('core.edit', 'com_contact.category.' . $item->catid)
 
 $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0
 
 $canEditOwn = $user->authorise('core.edit.own', 'com_contact.category.' . $item->catid) && $item->created_by == $userId
 
 $canChange = $user->authorise('core.edit.state', 'com_contact.category.' . $item->catid) && $canCheckin
 
$item cat_link = JRoute::_('index.php?option=com_categories&extension=com_contact&task=edit&type=other&id='.$item->catid)
 
else __pad8__
 
 $disabled = $saveOrder ? '' : 'disabled="disabled"'
 
else __pad9__
 
 endforeach
 

Documentation des variables

◆ $app

$app = JFactory::getApplication()

◆ $assoc

$assoc = JLanguageAssociations::isEnabled()

◆ $canChange

$canChange = $user->authorise('core.edit.state', 'com_contact.category.' . $item->catid) && $canCheckin

◆ $canCheckin

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

◆ $canCreate

foreach ( $this->items as $i=> $item) $canCreate = $user->authorise('core.create', 'com_contact.category.' . $item->catid)

◆ $canEdit

$canEdit = $user->authorise('core.edit', 'com_contact.category.' . $item->catid)

◆ $canEditOwn

$canEditOwn = $user->authorise('core.edit.own', 'com_contact.category.' . $item->catid) && $item->created_by == $userId

◆ $canOrder

$canOrder = $user->authorise('core.edit.state', 'com_contact')

◆ $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)

◆ $saveOrder

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

◆ $user

$user = JFactory::getUser()

◆ $userId

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

◆ __pad8__

else __pad8__

◆ __pad9__

else __pad9__

◆ cat_link

$item cat_link = JRoute::_('index.php?option=com_categories&extension=com_contact&task=edit&type=other&id='.$item->catid)

◆ else

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

◆ endforeach

endforeach

◆ endif

endif