Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
BasePersonalisationWidget.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  */
12 {
13  public function init()
14  {
15  parent::init();
16  $assetsUrl = $this->getModule()->getAssetsUrl();
17  Yii::app()->clientScript->registerCssFile($assetsUrl . '/css/dhtmlxtree.css');
18  Yii::app()->clientScript->registerCssFile($assetsUrl . '/css/style.css');
19  Yii::app()->clientScript->registerScriptFile($assetsUrl . '/js/dhtmlxcommon.js');
20  Yii::app()->clientScript->registerScriptFile($assetsUrl . '/js/dhtmlxtree.js');
21  Yii::app()->clientScript->registerScriptFile($assetsUrl . '/js/dhtmlxtree_json.js');
22  }
23 
24  /**
25  * @return PersonalisationModule
26  */
27  public function getModule()
28  {
29  return Yii::app()->getModule('personalisation');
30  }
31 }