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

Public Member Functions

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

Public Attributes

 $rootfolderId
 $hostParam
 $contentTypes
 $hideParam
 $containerParam
 $containerParamValue
 $outputFormatValue
 $cacheTime
 $lang = ''
 $baseHref = ''
 $gccRequestParams
 $sorting

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 GooglesitemapsWidget.php.

Member Function Documentation

GooglesitemapsWidget::init ( )

Initializes the widget.

Returns
void

Definition at line 81 of file GooglesitemapsWidget.php.

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

renders view

Exceptions
Exception
Returns
void

Definition at line 92 of file GooglesitemapsWidget.php.

{
/*
* Get values from widget option for Googlesitemaps
* if it is set otherwise it will be taken from module
*/
$rootfolderId = "";
if(isset($this->rootfolderId)){
$rootfolderId = $this->rootfolderId;
}
$hostParam = null;
if(isset($this->hostParam)){
$hostParam = $this->hostParam;
}
$contentTypes = null;
if(isset($this->contentTypes)){
$contentTypes = $this->contentTypes;
}
$hideParam = null;
if(isset($this->hideParam)){
$hideParam = $this->hideParam;
}
$containerParam = null;
if(isset($this->containerParam)){
$containerParam = $this->containerParam;
}
$containerParamValue = null;
if(isset($this->containerParamValue)){
$containerParamValue = $this->containerParamValue;
}
$outputFormatValue = "";
if(isset($this->outputFormatValue)){
$outputFormatValue = $this->outputFormatValue;
}
$cacheTime = null;
if(isset($this->cacheTime)){
$cacheTime = $this->cacheTime;
}
$gccRequestParams = null;
if(isset($this->gccRequestParams)){
$gccRequestParams = $this->gccRequestParams;
}
$sorting = null;
if(isset($this->sorting)){
$sorting = $this->sorting;
}
if ($rootfolderId != "") {
$content = new Googlesitemaps($rootfolderId, $hostParam, $contentTypes, $hideParam, $containerParam , $containerParamValue, $outputFormatValue, $cacheTime, $gccRequestParams , $sorting);
} else {
throw new Exception('GooglesitemapsWidget error: rootfoldweId is a required parameter and can`t be blank ');
}
if (!empty($content->data)) {
$this->lang = substr(Yii::app()->language, 0, 2);
$this->render('GooglesitemapsWidget', array('contentList'=>$content->data,'lvl' => 1,'hostParam'=>$content->hostParam,'outputFormat'=>$content->outputFormatValue));
}
}

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