18 public $folderIds = array();
29 public $usePersonalisation =
true;
34 public $overviewPage =
'';
39 public $tagsSeparator =
', ';
44 public $tagstyles = array();
68 if (!empty($this->folderIds)) {
70 $content->folderIds = $this->folderIds;
71 $content->usePersonalisation = $this->usePersonalisation;
72 $content->lang = substr(Yii::app()->language, 0, 2);
73 $content->tagstyles = !empty($this->tagstyles) ? $this->tagstyles : Yii::app()->getModule(
'tagcloud')->tagstyles;
74 $content->tagsSeparator = !empty($this->tagsSeparator) ? $this->tagsSeparator : Yii::app()->getModule(
'tagcloud')->tagsSeparator;
76 if (!empty($this->overviewPage)) {
77 $content->overviewPage = $this->overviewPage;
79 }
else if (!empty(Yii::app()->getModule(
'tagcloud')->overviewPages[$this->lang])) {
80 $content->overviewPage = Yii::app()->getModule(
'tagcloud')->overviewPages[$this->lang];
83 $content->overviewPage = Yii::app()->getModule(
'tagcloud')->defaultOverviewPage;
86 if ($content->run($this->limit) && !empty($content->tags)) {
88 $this->render(
'TagcloudWidget', array(
'content'=>$content));
92 throw new Exception(
'TagcloudWidget error: folderIds is required parameters and can`t be blank ');