Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
modules
piwik
PiwikModule.php
1
<?php
2
3
/**
4
* Gentics Portal.Node PHP
5
* Author & Copyright (c) by Gentics Software GmbH
6
* sales@gentics.com
7
* http://www.gentics.com
8
* Licenses can be found in the LICENSE.txt file in the root-folder of this installation
9
* You must not use this software without a valid license agreement.
10
*
11
* HistoryModule
12
* This module allows user to remember pages he was visited
13
*
14
* Interaction with module performs with one widget and one function
15
* Widget:
16
* - LastVisitedPages - displays last N visited pages
17
*
18
* HistoryModule::save() function save specified page to user history
19
* HistoryModule::flushHistory() flush current user history
20
*
21
**/
22
class
PiwikModule
extends
CWebModule
23
{
24
25
/**
26
* Piwik-Token to identify
27
*
28
* @var string
29
**/
30
public
$token;
31
32
/**
33
* url to the Piwik-Service
34
*
35
* @var string
36
**/
37
public
$piwikServerURL;
38
39
/**
40
* commaseperated list of sites OR "all"
41
*
42
* @var string
43
**/
44
public
$sites =
"all"
;
45
46
/**
47
* Amount of displaying items
48
*
49
* @var string
50
**/
51
public
$count = 10;
52
53
/**
54
* How long history will be storing in cache
55
*
56
* @var string
57
**/
58
public
$cacheTime = 3600;
59
60
public
function
init()
61
{
62
parent::init();
63
}
64
65
/**
66
* Translates a message to the specified language.
67
*
68
* @param string $str message
69
* @param array $params params
70
* @param string $dic dictionary
71
*
72
* @return string
73
*/
74
public
static
function
t
($str =
''
, $params = array(), $dic =
'core'
)
75
{
76
return
Yii::t
(
"PiwikModule."
. $dic, $str, $params);
77
}
78
}
Generated on Thu Jun 20 2013 14:45:15 for Gentics Portal.Node PHP API by
1.8.1.2