PHP Trait omgdef\multilingual\MultilingualTrait

Modify ActiveRecord query for multilingual support
Afficher le fichier Open project: omgdef/yii2-multilingual-behavior

Méthodes publiques

Свойство Type Description
$languageField the name of the lang field of the translation table. Default to 'language'.

Méthodes publiques

Méthode Description
localized ( string $language = null, boolean $abridge = true ) Scope for querying by languages
multilingual ( ) Scope for querying by all languages

Method Details

localized() public méthode

Scope for querying by languages
public localized ( string $language = null, boolean $abridge = true )
$language string
$abridge boolean

multilingual() public méthode

Scope for querying by all languages
public multilingual ( )

Property Details

$languageField public_oe property

the name of the lang field of the translation table. Default to 'language'.
public $languageField