Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence du fichier administrator/components/com_workflow/tmpl/workflows/default.php

Espaces de nommage

 Joomla\Administrator
 

Variables

 $wa = $this->document->getWebAssetManager()
 
 $listOrder = $this->escape($this->state->get('list.ordering'))
 
 $listDirn = $this->escape($this->state->get('list.direction'))
 
 $saveOrder = $listOrder == 'w.ordering'
 
 $orderingColumn = 'created'
 
 $saveOrderingUrl = ''
 
if(strpos($listOrder, 'modified') !==false) if($saveOrder) $extension = $this->escape($this->state->get('filter.extension'))
 
 $user = Factory::getUser()
 
 $userId = $user->id
 
if(!empty($this->sidebar)) endif
 
if(!empty($this->sidebar)) else
 
else __pad5__
 
 if ( $saveOrder)
 
 $transitions = Route::_('index.php?option=com_workflow&view=transitions&workflow_id=' . $item->id . '&extension=' . $extension)
 
 $edit = Route::_('index.php?option=com_workflow&task=workflow.edit&id=' . $item->id . '&extension=' . $extension)
 
 $canEdit = $user->authorise('core.edit', $extension . '.workflow.' . $item->id)
 
 $canCheckin = $user->authorise('core.admin', 'com_workflow') || $item->checked_out == $userId || is_null($item->checked_out)
 
 $canEditOwn = $user->authorise('core.edit.own', $extension . '.workflow.' . $item->id) && $item->created_by == $userId
 
 $canChange = $user->authorise('core.edit.state', $extension . '.workflow.' . $item->id) && $canCheckin
 
 $iconClass = ''
 
if(! $canChange) elseif (! $saveOrder)
 
else __pad6__
 
 endforeach
 

Documentation des variables

◆ $canChange

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

◆ $canCheckin

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

◆ $canEdit

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

◆ $canEditOwn

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

◆ $edit

$edit = Route::_('index.php?option=com_workflow&task=workflow.edit&id=' . $item->id . '&extension=' . $extension)

◆ $extension

if (strpos( $listOrder, 'modified') !==false) if ( $saveOrder) $extension = $this->escape($this->state->get('filter.extension'))

◆ $iconClass

$iconClass = ''

◆ $listDirn

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

◆ $listOrder

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

◆ $orderingColumn

$orderingColumn = 'created'

◆ $saveOrder

$saveOrder = $listOrder == 'w.ordering'

◆ $saveOrderingUrl

$saveOrderingUrl = ''

◆ $transitions

$transitions = Route::_('index.php?option=com_workflow&view=transitions&workflow_id=' . $item->id . '&extension=' . $extension)

◆ $user

$user = Factory::getUser()

◆ $userId

$userId = $user->id

◆ $wa

$wa = $this->document->getWebAssetManager()

◆ __pad5__

else __pad5__

◆ __pad6__

else __pad6__

◆ else

if (!empty( $this->sidebar)) else
Valeur initiale :
{
echo 'col-md-12'

◆ elseif

if (! $canChange) elseif(! $saveOrder)

◆ endforeach

endforeach

◆ endif

endif

◆ if

if($canEdit|| $canEditOwn) (   $saveOrder)