oxwcategorytree.php

Go to the documentation of this file.
00001 <?php
00002 
00007 class oxwCategoryTree extends oxWidget
00008 {
00016     protected $_aComponentNames = array( 'oxcmp_categories' => 1 );
00017 
00023     protected $_sThisTemplate = 'widget/sidebar/categorytree.tpl';
00024 
00030     public function render()
00031     {
00032         parent::render();
00033 
00034         if ($sTpl = $this->getViewParameter( "sWidgetType" ) ) {
00035             $sTemplateName = 'widget/' . basename($sTpl) . '/categorylist.tpl';
00036             if ($this->getConfig()->getTemplatePath($sTemplateName, $this->isAdmin())) {
00037                 $this->_sThisTemplate = $sTemplateName;
00038             }
00039         }
00040         return $this->_sThisTemplate;
00041     }
00042 
00048     public function getDeepLevel()
00049     {
00050         return $this->getViewParameter( "deepLevel" );
00051     }
00052 
00053 }