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 layouts/joomla/searchtools/default.php

Espaces de nommage

 Joomla\Site
 

Variables

 $data = $displayData
 
 $data ['options'] = !empty($data['options']) ? $data['options'] : array()
 
 $noResultsText = ''
 
 $hideActiveFilters = false
 
 $showFilterButton = false
 
 $showSelector = false
 
 $selectorFieldName = isset($data['options']['selectorFieldName']) ? $data['options']['selectorFieldName'] : 'client_id'
 
if(isset($data['view']->filterForm) &&!empty($data['view']->filterForm)) $customOptions
 
 $data ['options'] = array_merge($customOptions, $data['options'])
 
 $filtersActiveClass = $hideActiveFilters ? '' : ' js-stools-container-filters-visible'
 
 endif
 
 if ( $data[ 'options'][ 'filterButton'])
 

Documentation des variables

◆ $customOptions

if (isset( $data[ 'view']->filterForm) &&!empty( $data[ 'view']->filterForm)) $customOptions
Valeur initiale :
= array(
'filtersHidden' => isset($data['options']['filtersHidden']) && $data['options']['filtersHidden'] ? $data['options']['filtersHidden'] : $hideActiveFilters,
'filterButton' => isset($data['options']['filterButton']) && $data['options']['filterButton'] ? $data['options']['filterButton'] : $showFilterButton,
'defaultLimit' => isset($data['options']['defaultLimit']) ? $data['options']['defaultLimit'] : JFactory::getApplication()->get('list_limit', 20),
'searchFieldSelector' => '#filter_search',
'selectorFieldName' => $selectorFieldName,
'showSelector' => $showSelector,
'orderFieldSelector' => '#list_fullordering',
'showNoResults' => !empty($noResultsText) ? true : false,
'noResultsText' => !empty($noResultsText) ? $noResultsText : '',
'formSelector' => !empty($data['options']['formSelector']) ? $data['options']['formSelector'] : '#adminForm',
)
$data
Definition: layouts/joomla/searchtools/default.php:12
$hideActiveFilters
Definition: layouts/joomla/searchtools/default.php:18
$selectorFieldName
Definition: layouts/joomla/searchtools/default.php:21
$showFilterButton
Definition: layouts/joomla/searchtools/default.php:19
$noResultsText
Definition: layouts/joomla/searchtools/default.php:17
$showSelector
Definition: layouts/joomla/searchtools/default.php:20

◆ $data [1/3]

$data = $displayData

◆ $data [2/3]

$data[ 'options'] = !empty($data['options']) ? $data['options'] : array()

◆ $data [3/3]

$data[ 'options'] = array_merge($customOptions, $data['options'])

◆ $filtersActiveClass

$filtersActiveClass = $hideActiveFilters ? '' : ' js-stools-container-filters-visible'

◆ $hideActiveFilters

$hideActiveFilters = false

◆ $noResultsText

$noResultsText = ''

◆ $selectorFieldName

$selectorFieldName = isset($data['options']['selectorFieldName']) ? $data['options']['selectorFieldName'] : 'client_id'

◆ $showFilterButton

$showFilterButton = false

◆ $showSelector

$showSelector = false

◆ endif

endif

◆ if

if($data['options']['filterButton'])