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

Espaces de nommage

 Joomla\Administrator
 

Variables

 $wa = $this->document->getWebAssetManager()
 
 $app = Factory::getApplication()
 
 $user = Factory::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'
 
if(strpos($listOrder, 'publish_up') !==false) elseif(strpos($listOrder, 'publish_down') !==false) elseif(strpos($listOrder, 'modified') !==falseelse
 
if($saveOrder &&!empty($this->items)) $workflow_enabled = ComponentHelper::getParams('com_content')->get('workflow_enabled')
 
 $workflow_state = false
 
 $workflow_featured = false
 
 endif
 
 $assoc = Associations::isEnabled()
 
else __pad0__
 
 if ( $saveOrder)
 
foreach($this->items as $i=> $item) $canEdit = $user->authorise('core.edit', 'com_content.article.' . $item->id)
 
 $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || is_null($item->checked_out)
 
 $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
 
 $canEditCat = $user->authorise('core.edit', 'com_content.category.' . $item->catid)
 
 $canEditOwnCat = $user->authorise('core.edit.own', 'com_content.category.' . $item->catid) && $item->category_uid == $userId
 
 $canEditParCat = $user->authorise('core.edit', 'com_content.category.' . $item->parent_category_id)
 
 $canEditOwnParCat = $user->authorise('core.edit.own', 'com_content.category.' . $item->parent_category_id) && $item->parent_category_uid == $userId
 
 $transitions = ContentHelper::filterTransitions($this->transitions, (int) $item->stage_id, (int) $item->workflow_id)
 
 $transition_ids = ArrayHelper::getColumn($transitions, 'value')
 
 $iconClass = ''
 
if(! $canChange) elseif (! $saveOrder)
 
 $options
 
else __pad1__
 
else __pad2__
 
 $ParentCatUrl = Route::_('index.php?option=com_categories&task=category.edit&id=' . $item->parent_category_id . '&extension=com_content')
 
 $CurrentCatUrl = Route::_('index.php?option=com_categories&task=category.edit&id=' . $item->catid . '&extension=com_content')
 
 $EditCatTxt = Text::_('COM_CONTENT_EDIT_CATEGORY')
 
else __pad3__
 
 $date = $item->{$orderingColumn}
 
 endforeach
 

Documentation des variables

◆ $app

$app = Factory::getApplication()

◆ $assoc

$assoc = Associations::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 || is_null($item->checked_out)

◆ $canEdit

foreach ( $this->items as $i=> $item) $canEdit = $user->authorise('core.edit', 'com_content.article.' . $item->id)

◆ $canEditCat

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

◆ $canEditOwn

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

◆ $canEditOwnCat

$canEditOwnCat = $user->authorise('core.edit.own', 'com_content.category.' . $item->catid) && $item->category_uid == $userId

◆ $canEditOwnParCat

$canEditOwnParCat = $user->authorise('core.edit.own', 'com_content.category.' . $item->parent_category_id) && $item->parent_category_uid == $userId

◆ $canEditParCat

$canEditParCat = $user->authorise('core.edit', 'com_content.category.' . $item->parent_category_id)

◆ $CurrentCatUrl

$CurrentCatUrl = Route::_('index.php?option=com_categories&task=category.edit&id=' . $item->catid . '&extension=com_content')

◆ $date

$date = $item->{$orderingColumn}
Exemples:
C:/laragon/www/_install/Joomla_422-Stable-Full_Package_French_v1/libraries/src/HTML/HTMLHelper.php.

Référencé par Date\__construct(), LogEntry\__construct(), Log\add(), ActionlogModel\addLog(), GroupTable\check(), FieldTable\check(), HTMLHelper\date(), Joomla\Database\Query\dateAdd(), DatabaseQuery\dateAdd(), Joomla\Database\Query\day(), DatabaseQuery\day(), FeedView\display(), CategoryFeedView\display(), LinkModel\duplicateUrls(), Icon\edit(), ASN1\encode_der(), Query\explained(), CredentialRepository\formatDate(), AssociationHelper\getAssociations(), LocalAdapter\getDate(), Factory\getDate(), CalendarField\getInput(), Date\getInstance(), TagModel\getItem(), ArticlesArchiveHelper\getList(), ActionlogsModel\getListQuery(), HoursField\getPastTransition(), TemplateModel\getSafeName(), ArticlesCategoryHelper\groupByDate(), Joomla\Database\Query\hour(), DatabaseQuery\hour(), MinutesField\increment(), MonthField\increment(), DayOfMonthField\increment(), HoursField\increment(), DayOfWeekField\increment(), MinutesField\isSatisfiedBy(), MonthField\isSatisfiedBy(), HoursField\isSatisfiedBy(), DayOfWeekField\isSatisfiedBy(), DayOfMonthField\isSatisfiedBy(), InstallationApplication\loadDocument(), DelegatingPsrLogger\log(), Joomla\Database\Query\minute(), DatabaseQuery\minute(), Joomla\Database\Query\month(), DatabaseQuery\month(), PlgUserProfile\onUserAfterSave(), PlgUserProfile\onUserBeforeSave(), NewsfeedModel\prepareTable(), BannerModel\prepareTable(), ContactModel\prepareTable(), Query\processDates(), Query\processString(), WorkflowModel\publish(), Date\relative(), X509\revoke(), PlgInstallerOverride\saveOverrides(), Joomla\Database\Query\second(), DatabaseQuery\second(), WorkflowModel\setDefault(), X509\setEndDate(), User\setLastVisit(), Document\setModifiedDate(), X509\setStartDate(), AbstractField\setTimeHour(), ConsentTable\store(), NoteTable\store(), RequestTable\store(), ContactTable\store(), FilterTable\store(), LinkTable\store(), NewsfeedTable\store(), TagTable\store(), WorkflowTable\store(), CoreContent\store(), Category\store(), Content\store(), X509\timeField(), TemplateModel\validateDate(), X509\validateDate(), Joomla\Database\Query\year(), et DatabaseQuery\year().

◆ $EditCatTxt

$EditCatTxt = Text::_('COM_CONTENT_EDIT_CATEGORY')

◆ $iconClass

$iconClass = ''

◆ $listDirn

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

◆ $listOrder

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

◆ $options

$options
Valeur initiale :
= [
'task_prefix' => 'articles.'

◆ $ParentCatUrl

$ParentCatUrl = Route::_('index.php?option=com_categories&task=category.edit&id=' . $item->parent_category_id . '&extension=com_content')

◆ $saveOrder

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

◆ $transition_ids

$transition_ids = ArrayHelper::getColumn($transitions, 'value')

◆ $transitions

◆ $user

$user = Factory::getUser()

◆ $userId

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

◆ $wa

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

◆ $workflow_enabled

if ( $saveOrder &&!empty( $this->items)) $workflow_enabled = ComponentHelper::getParams('com_content')->get('workflow_enabled')

◆ $workflow_featured

$workflow_featured = false

◆ $workflow_state

$workflow_state = false

◆ __pad0__

else __pad0__

◆ __pad1__

else __pad1__

◆ __pad2__

else __pad2__

◆ __pad3__

else __pad3__

◆ else

if (Factory::getLanguage() ->isRtl()) else
Valeur initiale :
{
$orderingColumn = 'created'
$orderingColumn
Definition: administrator/components/com_workflow/tmpl/workflows/default.php:31

◆ elseif

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

◆ endforeach

endforeach

◆ endif

endif

◆ if

if($workflow_enabled) (   $saveOrder)
Valeur initiale :
=> Text::_($item->stage_title),
'tip_content' => Text::sprintf('JWORKFLOW', Text::_($item->workflow_title)),
'id' => 'workflow-' . $item->id,
'task' => 'articles.runTransition'
]
else $item
Definition: administrator/components/com_menus/tmpl/items/modal.php:165