Class pheme\settings\Module

Inheritancepheme\settings\Module » yii\base\Module

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$accessRoles null|array The roles which have access to module controllers, eg. pheme\settings\Module
$controllerNamespace string The controller namespace to use pheme\settings\Module
$sourceLanguage string Source language for translation pheme\settings\Module

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() Init module pheme\settings\Module
t() Translates a message. This is just a wrapper of Yii::t pheme\settings\Module

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
registerTranslations() Registers the translation files pheme\settings\Module

Property Details

$accessRoles public property

The roles which have access to module controllers, eg. ['admin']. If set to null, there is no accessFilter applied

public null|array $accessRoles null
$controllerNamespace public property

The controller namespace to use

public string $controllerNamespace 'pheme\settings\controllers'
$sourceLanguage public property

Source language for translation

public string $sourceLanguage 'en-US'

Method Details

init() public method

Init module

public void init ( )
registerTranslations() protected method

Registers the translation files

protected void registerTranslations ( )
t() public static method

Translates a message. This is just a wrapper of Yii::t

See also \Yii::t.

public static string t ( $category, $message, $params = [], $language null )
$category
$message
$params array
$language null