Interface MultiLanguageDataProviderInterface
Interface MultiLanguageDataProviderInterface.
This interface describes how to interface with a multi language data
provider.
-
DcGeneral\Data\MultiLanguageDataProviderInterface
implements
DcGeneral\Data\DataProviderInterface
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
|
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
|
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
|
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()
|