Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
TagcloudWidget Class Reference
Inheritance diagram for TagcloudWidget:
BaseJuiWidget

Public Member Functions

 init ()
 run ()
- Public Member Functions inherited from BaseJuiWidget
 getViewFile ($viewName)

Public Attributes

 $folderIds = array()
 $lang = ''
 $usePersonalisation = true
 $overviewPage = ''
 $tagsSeparator = ', '
 $tagstyles = array()
 $limit = 10

Detailed Description

Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales.nosp@m.@gen.nosp@m.tics..nosp@m.com http://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.

Widget for viewing navigation tree

Definition at line 13 of file TagcloudWidget.php.

Member Function Documentation

TagcloudWidget::init ( )

Initializes the widget.

Returns
void

Definition at line 55 of file TagcloudWidget.php.

{
//die('this is init');
}
TagcloudWidget::run ( )

renders view

Exceptions
Exception
Returns
void

Definition at line 66 of file TagcloudWidget.php.

{
if (!empty($this->folderIds)) {
$content = new TagcloudApi();
$content->folderIds = $this->folderIds;
$content->usePersonalisation = $this->usePersonalisation;
$content->lang = substr(Yii::app()->language, 0, 2);
$content->tagstyles = !empty($this->tagstyles) ? $this->tagstyles : Yii::app()->getModule('tagcloud')->tagstyles;
$content->tagsSeparator = !empty($this->tagsSeparator) ? $this->tagsSeparator : Yii::app()->getModule('tagcloud')->tagsSeparator;
if (!empty($this->overviewPage)) {
$content->overviewPage = $this->overviewPage;
} else if (!empty(Yii::app()->getModule('tagcloud')->overviewPages[$this->lang])) {
$content->overviewPage = Yii::app()->getModule('tagcloud')->overviewPages[$this->lang];
} else {
$content->overviewPage = Yii::app()->getModule('tagcloud')->defaultOverviewPage;
}
if ($content->run($this->limit) && !empty($content->tags)) {
$this->render('TagcloudWidget', array('content'=>$content));
}
} else {
throw new Exception('TagcloudWidget error: folderIds is required parameters and can`t be blank ');
}
}

The documentation for this class was generated from the following file: