-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMetrikaModule.php
88 lines (71 loc) · 1.92 KB
/
MetrikaModule.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/**
* MetrikaModule основной класс модуля metrika
*
* @author apexwire <[email protected]>
* @link http://yupe.ru
* @copyright 2009-2013 amyLabs && Yupe! team
* @package yupe.modules.metrika
* @since 0.1
*
*/
use yupe\components\WebModule;
class MetrikaModule extends WebModule
{
const VERSION = '0.1';
public $perPage = 10;
public function getVersion()
{
return self::VERSION;
}
public function getIsInstallDefault()
{
return true;
}
public function getCategory()
{
return Yii::t('YupeModule.yupe', 'Services');
}
public function getName()
{
return Yii::t('MetrikaModule.metrika', 'Metrika');
}
public function getDescription()
{
return Yii::t('MetrikaModule.metrika', 'Accounting module for Web Navigation');
}
public function getAuthor()
{
return Yii::t('MetrikaModule.metrika', 'apexwire');
}
public function getAuthorEmail()
{
return Yii::t('MetrikaModule.metrika', '[email protected]');
}
public function getUrl()
{
return Yii::t('YupeModule.yupe', 'http://yupe.ru');
}
public function getIcon()
{
return "glyphicon glyphicon-list";
}
public function getAdminPageLink()
{
return '/metrika/metrikaBackend/index';
}
public function getNavigation()
{
return array(
array('icon' => 'glyphicon glyphicon-list', 'label' => Yii::t('MetrikaModule.metrika', 'List of links'), 'url' => array('/metrika/metrikaBackend/index')),
array('icon' => 'glyphicon glyphicon-list', 'label' => Yii::t('MetrikaModule.metrika', 'List of transitions'), 'url' => array('/metrika/metrikaBackend/transitions')),
);
}
public function init()
{
parent::init();
$this->setImport(array(
'metrika.models.*'
));
}
}