oxwcategorytree.php

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