forked from nineinchnick/yii-nfy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NfyModule.php
42 lines (39 loc) · 885 Bytes
/
NfyModule.php
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
<?php
class NfyModule extends CWebModule
{
public $defaultController = 'queue';
/**
* @var string Name of user model class.
*/
public $userClass = 'User';
/**
* @var string if not null a sound will be played along with displaying a notification
*/
public $soundUrl;
/**
* @var integer how many milliseconds to wait for new messages on the server side;
* zero or null disables long polling
*/
public $longPolling = 1000;
/**
* @var integer how many times can messages be polled in a single action call
*/
public $maxPollCount = 30;
/**
* @var array list of queue application components that will be displayed in the index action of the default controller.
*/
public $queues = array();
/**
* @inheritdoc
*/
public function getVersion()
{
return '0.9';
}
public function init()
{
$this->setImport(array(
'nfy.components.*',
));
}
}