‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Country\CountryFilter Class Reference

Public Member Functions

 __construct (protected array $excludeCountries=[], protected array $onlyCountries=[])
 
string[] getExcludeCountries ()
 
$this setExcludeCountries (array $excludeCountries)
 
string[] getOnlyCountries ()
 
$this setOnlyCountries (array $onlyCountries)
 

Detailed Description

Filter object to limit countries to a subset of all countries.

Definition at line 23 of file CountryFilter.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Country\CountryFilter::__construct ( protected array  $excludeCountries = [],
protected array  $onlyCountries = [] 
)
Parameters
string[]$excludeCountries
string[]$onlyCountries

Definition at line 29 of file CountryFilter.php.

Member Function Documentation

◆ getExcludeCountries()

string [] TYPO3\CMS\Core\Country\CountryFilter::getExcludeCountries ( )
Returns
‪string[]

Definition at line 34 of file CountryFilter.php.

◆ getOnlyCountries()

string [] TYPO3\CMS\Core\Country\CountryFilter::getOnlyCountries ( )
Returns
‪string[]

Definition at line 52 of file CountryFilter.php.

◆ setExcludeCountries()

$this TYPO3\CMS\Core\Country\CountryFilter::setExcludeCountries ( array  $excludeCountries)
Parameters
string[]$excludeCountries
Returns
‪$this

Definition at line 43 of file CountryFilter.php.

◆ setOnlyCountries()

$this TYPO3\CMS\Core\Country\CountryFilter::setOnlyCountries ( array  $onlyCountries)
Parameters
string[]$onlyCountries
Returns
‪$this

Definition at line 61 of file CountryFilter.php.