forked from ricco381/yii2-ticket
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModule.php
More file actions
executable file
·46 lines (37 loc) · 1.27 KB
/
Module.php
File metadata and controls
executable file
·46 lines (37 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
namespace ricco\ticket;
use ricco\ticket\models\User;
use Yii;
/**
* ticket module definition class
*/
class Module extends \yii\base\Module
{
/**
* @inheritdoc
*/
public $controllerNamespace = 'ricco\ticket\controllers';
/** @var bool Уведомление на почту о тикетах */
public $mailSend = false;
/** @var string Тема email сообщения когда пользователю приходит ответ */
public $subjectAnswer = 'Ответ на тикет сайта exemple.com';
/** @var User */
public $userModel = false;
public $qq = [
'Вопрос по обмену' => 'Вопрос по обмену',
'Пополнению ЛК' => 'Пополнению ЛК',
'Вводу средств' => 'Вводу средств',
'Выводу средств' => 'Выводу средств',
'Другое' => 'Другое',
];
/** @var array Ники администраторав */
public $admin = ['admin'];
/**
* @inheritdoc
*/
public function init()
{
User::$user = ($this->userModel !== false) ? $this->userModel : Yii::$app->user->identityClass;
parent::init();
}
}