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

Interface MultiLanguageDataProviderInterface

Interface MultiLanguageDataProviderInterface.

This interface describes how to interface with a multi language data provider.

DcGeneral\Data\MultiLanguageDataProviderInterface implements DcGeneral\Data\DataProviderInterface

Direct known implementers

DcGeneral\Data\MultiLanguageDataProvider
Namespace: DcGeneral\Data
Package: DcGeneral\Data
Located at Data/MultiLanguageDataProviderInterface.php
Methods summary
public DcGeneral\Data\LanguageInformationCollectionInterface|null
# getLanguages( mixed $mixID )

Get all available languages of a certain record.

Get all available languages of a certain record.

Parameters

$mixID
mixed
$mixID The ID of the record to retrieve.

Returns

DcGeneral\Data\LanguageInformationCollectionInterface|null
public DcGeneral\Data\LanguageInformationInterface|null
# getFallbackLanguage( mixed $mixID )

Get the fallback language of a certain record.

Get the fallback language of a certain record.

Parameters

$mixID
mixed
$mixID The ID of the record to retrieve.

Returns

DcGeneral\Data\LanguageInformationInterface|null
public DcGeneral\Data\DataProviderInterface
# setCurrentLanguage( string $strLanguage )

Set the current working language for the whole data provider.

Set the current working language for the whole data provider.

Parameters

$strLanguage
string
$strLanguage The new language, use short tag "2 chars like de, fr etc.".

Returns

DcGeneral\Data\DataProviderInterface
public string
# getCurrentLanguage( )

Get the current working language.

Get the current working language.

Returns

string
Short tag for the current working language like de or fr etc.
Methods inherited from DcGeneral\Data\DataProviderInterface
delete(), fetch(), fetchAll(), fieldExists(), getActiveVersion(), getCount(), getEmptyCollection(), getEmptyConfig(), getEmptyModel(), getFilterOptions(), getVersion(), getVersions(), isUniqueValue(), resetFallback(), sameModels(), save(), saveEach(), saveVersion(), setBaseConfig(), setVersionActive()
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0