Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
PersonalizedContentModule.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 PersonalizedContentModule 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 array that contains list of URLs that should not be shown in navigation trees
21  */
22  public $excludeURLs = array();
23 
24  /**
25  * @var string GCC request params. Comma separated.
26  */
27  public $gccRequestParams;
28 
29  /**
30  * @var integer how many results show per page
31  */
32  public $perPage;
33 
34  /**
35  * @var string $sorting contains sorting expression
36  */
37  public $sorting;
38  /**
39  * @var whether to use arrows instead of words next, previous in the paging
40  */
41  public $enableArrowsInPaging = true;
42  /**
43  * Import dependent classes
44  *
45  * @return void
46  */
47  public function init()
48  {
49  // import the module-level components
50  $this->setImport(
51  array(
52  'personalizedContent.components.*',
53  )
54  );
55  }
56 
57  /**
58  * Translates a message to the specified language.
59  *
60  * @param string $str message
61  * @param array $params params
62  * @param string $dic dictionary
63  *
64  * @return string
65  */
66  public static function t($str = '', $params = array(), $dic = 'core')
67  {
68  return Yii::t("personalizedContentModule." . $dic, $str, $params);
69  }
70 }