Class humhub\models\forms\ChooseLanguage

Inheritancehumhub\models\forms\ChooseLanguage » yii\base\Model

ChooseLanguage is the model of the language select box to change language for guests.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$language string The language humhub\models\forms\ChooseLanguage

Property Details

$language public property

The language

public string $language null

Method Details

attributeLabels() public method

public void attributeLabels ( )
getSavedLanguage() public method

Returns the saved language in the cookie

public string getSavedLanguage ( )
return string

The stored language

rules() public method

public void rules ( )
save() public method (available since version 1.2)

Stores language as cookie

public boolean save ( )