Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
tagcloudModule.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  * Navigation module class file.
11  */
12 class TagcloudModule extends CWebModule
13 {
14  /**
15  * @var int the number of seconds in which the cached value will expire. 0 means never expire.
16  */
17  public $cacheTime = 60;
18 
19  /**
20  * @var default CMS page with personalizedOverview widget
21  */
22  public $defaultOverviewPage = '';
23 
24  /**
25  * @var CMS pages with personalizedOverview widget per language
26  */
27  public $overviewPages = array();
28 
29  /**
30  * @var string tagsSeparator
31  */
32  public $tagsSeparator = ', ';
33 
34  /**
35  * @var string tagstyles
36  */
37  public $tagstyles = array();
38 
39  /**
40  * Import dependent classes
41  *
42  * @return void
43  */
44  public function init()
45  {
46  // import the module-level components
47  $this->setImport(
48  array(
49  'tagcloud.components.*',
50  )
51  );
52  }
53 
54  /**
55  * Translates a message to the specified language.
56  *
57  * @param string $str message
58  * @param array $params params
59  * @param string $dic dictionary
60  *
61  * @return string
62  */
63  public static function t($str = '', $params = array(), $dic = 'tagcloud')
64  {
65  return Yii::t("tagcloudModule." . $dic, $str, $params);
66  }
67 }