Overview

Namespaces

  • DcGeneral
    • Clipboard
    • Contao
      • Callback
      • Compatibility
      • DataDefinition
        • Definition
      • Dca
        • Builder
          • Legacy
        • Definition
        • Palette
        • Populator
      • Event
      • View
        • Contao2BackendView
          • Event
    • Controller
    • Data
    • DataDefinition
      • Builder
      • Definition
        • Properties
        • View
          • Panel
      • ModelRelationship
      • Palette
        • Builder
          • Event
        • Condition
          • Palette
          • Property
    • EnvironmentPopulator
    • Event
    • Exception
    • Factory
      • Event
    • Panel
    • View
      • Event

Classes

  • AbstractModel
  • DCGE
  • DefaultCollection
  • DefaultConfig
  • DefaultDataProvider
  • DefaultLanguageInformation
  • DefaultLanguageInformationCollection
  • DefaultModel
  • MultiLanguageDataProvider
  • NoOpDataProvider
  • PropertyValueBag
  • TableRowsAsRecordsDataProvider

Interfaces

  • CollectionInterface
  • ConfigInterface
  • DataProviderInterface
  • LanguageInformationCollectionInterface
  • LanguageInformationInterface
  • ModelInterface
  • MultiLanguageDataProviderInterface
  • PropertyValueBagInterface
  • VersionModelInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class DefaultLanguageInformation

This class is the base implementation for LanguageInformationInterface.

DcGeneral\Data\DefaultLanguageInformation implements DcGeneral\Data\LanguageInformationInterface
Namespace: DcGeneral\Data
Package: DcGeneral\Data
Located at Data/DefaultLanguageInformation.php
Methods summary
public
# __construct( string $language, null|string $country = null )

Create a new instance.

Create a new instance.

Parameters

$language
string
$language The ISO 639 language code.
$country
null|string
$country The ISO 3166 country code.
public string
# getLanguageCode( )

Retrieve the ISO 639 language code.

Retrieve the ISO 639 language code.

Returns

string

Implementation of

DcGeneral\Data\LanguageInformationInterface::getLanguageCode()
public string
# getCountryCode( )

Retrieve the ISO 3166 country code.

Retrieve the ISO 3166 country code.

Returns

string

Implementation of

DcGeneral\Data\LanguageInformationInterface::getCountryCode()
public mixed
# getLocale( )

Retrieve the RFC 3066 locale string.

Retrieve the RFC 3066 locale string.

Returns

mixed

Implementation of

DcGeneral\Data\LanguageInformationInterface::getLocale()
Properties summary
protected string $language
#

The ISO 639 language code.

The ISO 639 language code.

protected string $country
#

The ISO 3166 country code.

The ISO 3166 country code.

contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0