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/components/com_fields/views/fields/tmpl/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 __pad0__
 
else null
 
 $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
 
if($canChange && $saveOrder) endif
 
else __pad1__
 
else __pad2__
 

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

Référencé par ContactRouter\__construct(), ContentRouter\__construct(), NewsfeedsRouter\__construct(), LogEntry\__construct(), CategoryNode\__construct(), ContentViewArticle\_prepareDocument(), NewsfeedsViewNewsfeed\_prepareDocument(), ContactViewContact\_prepareDocument(), Log\add(), InstallationModelLanguages\addCategory(), JGoogleEmbedAnalytics\addEvent(), ContactRouterRulesLegacy\build(), ContentRouterRulesLegacy\build(), NewsfeedsRouterRulesLegacy\build(), CategoryView\commonCategoryDisplay(), JHtmlIcon\create(), JGoogleEmbedAnalytics\createEvent(), CategoryFeedView\display(), ContactViewFeatured\display(), Log\findLoggers(), SimplePie_Source\get_categories(), SimplePie_Item\get_categories(), SimplePie\get_categories(), SimplePie_Item\get_enclosures(), User\getAuthorisedCategories(), NewsfeedsRouter\getCategoryId(), ContactRouter\getCategoryId(), ContentRouter\getCategoryId(), RouteHelper\getCategoryRoute(), NewsfeedsRouter\getCategorySegment(), ContactRouter\getCategorySegment(), ContentRouter\getCategorySegment(), FOFUtilsUpdateCollection\getCategoryUpdateSource(), JLinkedinGroups\getDiscussions(), ContentModelCategory\getItems(), ModArticlesCategoriesHelper\getList(), ModArticlesCategoryHelper\getList(), RouteHelper\getRoute(), ModPopularHelper\getTitle(), ModLatestHelper\getTitle(), JLinkedinGroups\getUserPosts(), RssParser\handleCategory(), DelegatingPsrLogger\log(), PlgSampledataBlog\onAjaxSampledataApplyStep1(), NewsfeedsRouterRulesLegacy\parse(), ContactRouterRulesLegacy\parse(), ContentRouterRulesLegacy\parse(), NewsfeedsViewCategory\prepareDocument(), ContactViewCategory\prepareDocument(), ContentViewCategory\prepareDocument(), RssParser\processFeedEntry(), FinderIndexerAdapter\translateState(), et ComponentAdapter\uninstall().

◆ $component

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

◆ $context

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

◆ $listDirn

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

◆ $listOrder

else $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')

◆ __pad0__

else __pad0__

◆ __pad1__

else __pad1__

◆ __pad2__

else __pad2__

◆ endif

endif

◆ if

if($saveOrder)

◆ null

else null