Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
APALinesModule.php
1 <?php
2 /**
3  * Apa lines module class
4  * Module allows gportal to import news from xml files,
5  * save date in database and get it
6  *
7  * @author Andrew Voloshin <andrew.voloshin@oberig.com>
8  *
9  */
10 class APALinesModule extends CWebModule
11 {
12  /**
13  * @var array configurations of provided channels
14  */
15  public $channels = array();
16 
17  public $total_max_age_of_news;
18  public $total_max_count_of_news;
19 
20  public $customer_number = '';
21  public $video_url = '';
22 
23  public $cacheTime = 0;
24 
25 
26  public $DefaultSize ='640x480';
27  public $VideoSize;
28  public $OriginalSize;
29  public $HiresSize;
30  public $ThumbnailSize;
31 
32  /**
33  * Initialize widget. Import like models.
34  *
35  * @return void
36  */
37  public function init()
38  {
39  // import the module-level models and components
40  $this->setImport(
41  array(
42  'apalines.components.*',
43  'apalines.models.*',
44  )
45  );
46  }
47 
48  /**
49  * Translates a message to the specified language.
50  *
51  * @param string $str message
52  * @param array $params params
53  * @param string $dic dictionary
54  *
55  * @return string
56  */
57  public static function t($str = '', $params = array(), $dic = 'core')
58  {
59  return Yii::t("APALinesModule." . $dic, $str, $params);
60  }
61 }