Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
modules
updates
UpdatesModule.php
1
<?php
2
/**
3
* Gentics Portal.Node PHP
4
* Author & Copyright (c) by Gentics Software GmbH
5
* sales@gentics.com
6
* http://www.gentics.com
7
* Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8
* You must not use this software without a valid license agreement.
9
*
10
*
11
*/
12
class
UpdatesModule
extends
CWebModule
13
{
14
public
$currentVersion;
15
16
/**
17
* Model initial method
18
*
19
* @return void
20
*/
21
public
function
init
()
22
{
23
$this->setImport(
24
array(
25
'updates.components.*'
,
26
'updates.models.*'
27
)
28
);
29
}
30
31
32
/**
33
* Translates a message to the specified language.
34
*
35
* @param string $str message
36
* @param array $params params
37
* @param string $dic dictionary
38
*
39
* @return string
40
*/
41
public
static
function
t
($str =
''
, $params = array(), $dic =
'language'
)
42
{
43
return
Yii::t
(
"UpdatesModule."
. $dic, $str, $params);
44
}
45
46
private
$_assetsUrl;
47
48
/**
49
* Returns path for assets
50
*
51
* @return string
52
*/
53
public
function
getAssetsUrl
()
54
{
55
if
(!$this->_assetsUrl) {
56
$this->_assetsUrl = Yii::app()->assetManager->publish(Yii::getPathOfAlias(
'updates.views.asset'
),
true
);
57
}
58
return
$this->_assetsUrl;
59
}
60
}
Generated on Thu Feb 6 2014 15:47:54 for Gentics Portal.Node PHP API by
1.8.1.2