Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Interfaces

  • AddressFormatProviderInterface
  • CustomerStatusProviderInterface
  • IdInterface
  • LanguageProviderInterface

Interface LanguageProviderInterface

Interface LanguageProviderInterface

Direct known implementers

YetAnotherLanguageProvider

Package: Shared\Interfaces
Category: System
Located at Shared/Interfaces/LanguageProviderInterface.inc.php

Methods summary

public IdCollection
# getIds( )

Returns the language IDs.

Returns the language IDs.

Returns

IdCollection

Throws

UnexpectedValueException
If no ID has been found.
InvalidArgumentException
If ID is not valid.
public KeyValueCollection
# getCodes( )

Returns the language codes.

Returns the language codes.

Returns

KeyValueCollection

Throws

UnexpectedValueException
If no code has been found.
InvalidArgumentException
If code is not valid.
public LanguageCode
# getCodeById( IdType $id )

Returns the language code from a specific language, selected by the language ID.

Returns the language code from a specific language, selected by the language ID.

Parameters

$id
Language ID.

Returns

LanguageCode

Throws

UnexpectedValueException
If no code has been found.
InvalidArgumentException
If code is not valid.
public string
# getDirectoryById( IdType $id )

Returns the directory from the a specific language, selected by the language ID.

Returns the directory from the a specific language, selected by the language ID.

Parameters

$id
Language ID.

Returns

string

Throws

UnexpectedValueException
If no directory has been found.
InvalidArgumentException
If code is not valid.
public integer
# getIdByCode( LanguageCode $code )

Returns the ID from the a specific language, selected by the language code.

Returns the ID from the a specific language, selected by the language code.

Parameters

$code
Language code.

Returns

integer

Throws

UnexpectedValueException
If no ID has been found.
public string
# getDirectoryByCode( LanguageCode $code )

Returns the directory from the a specific language, selected by the language code.

Returns the directory from the a specific language, selected by the language code.

Parameters

$code
Language code.

Returns

string

Throws

UnexpectedValueException
If no directory has been found.
public KeyValueCollection
# getActiveCodes( )

Returns the active language codes.

Returns the active language codes.

Returns

KeyValueCollection

Throws

InvalidArgumentException
If code is not valid.
API documentation generated by ApiGen