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

Classes

  • AbstractCollection
  • AddressFormatProvider
  • CurrencyCode
  • CustomerStatusProvider
  • EditableCollection
  • EditableKeyValueCollection
  • EmptyCurrencyCode
  • EmptyDateTime
  • EmptyLanguageCode
  • IdCollection
  • KeyValueCollection
  • LanguageCode
  • StringCollection
  • YetAnotherLanguageProvider

Class YetAnotherLanguageProvider

Class YetAnotherLanguageProvider

YetAnotherLanguageProvider implements LanguageProviderInterface
Package: Shared
Category: System
Located at Shared/YetAnotherLanguageProvider.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db )

YetAnotherLanguageProvider constructor.

YetAnotherLanguageProvider constructor.

Parameters

$db
Database connection.
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.

Implementation of

LanguageProviderInterface::getIds()
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.

Implementation of

LanguageProviderInterface::getCodes()
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.

Implementation of

LanguageProviderInterface::getCodeById()
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.

Implementation of

LanguageProviderInterface::getDirectoryById()
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.

Implementation of

LanguageProviderInterface::getIdByCode()
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.

Implementation of

LanguageProviderInterface::getDirectoryByCode()
public KeyValueCollection
# getActiveCodes( )

Returns the active language codes.

Returns the active language codes.

Returns

KeyValueCollection

Throws

InvalidArgumentException
If code is not valid.

Implementation of

LanguageProviderInterface::getActiveCodes()
public string
# getIconFilenameByCode( LanguageCode $code )

Returns the icon for a specific language by a given language code.

Returns the icon for a specific language by a given language code.

Parameters

$code
The given language code

Returns

string

Throws

UnexpectedValueException
If no icon has been found.

Properties summary

protected CI_DB_query_builder $db

Database connection.

Database connection.

#
API documentation generated by ApiGen