CountryService
Namespace
IO\Services
Type | Name | Description |
---|---|---|
|
||
|
||
|
Methods
public __construct($countryRepository, $sessionStorageService)
CountryService constructor.
Type |
Name |
Description |
|
||
|
public getActiveCountriesList($lang = null):array
List all active countries
Type |
Name |
Description |
|
public getActiveCountryNameMap($language):array
Get a list of names for the active countries
Type |
Name |
Description |
|
public getShippingCountryId():int
Get the ID of the current shipping country
public setShippingCountryId($shippingCountryId)
Set the ID of the current shipping country
Type |
Name |
Description |
|
public getCountryById($countryId):Country
Get a specific country by ID
Type |
Name |
Description |
|
public getCountryName($countryId, $lang = null):string
Get the name of specific country
Type |
Name |
Description |
|
||
|
Thank you for your feedback!