OXID eShop CE  4.8.12
 All Classes Files Functions Variables Pages
oxwcategorytree.php
Go to the documentation of this file.
1 <?php
2 
7 class oxwCategoryTree extends oxWidget
8 {
16  protected $_aComponentNames = array( 'oxcmp_categories' => 1 );
17 
23  protected $_sThisTemplate = 'widget/sidebar/categorytree.tpl';
24 
30  public function render()
31  {
33 
34  if ($sTpl = $this->getViewParameter( "sWidgetType" ) ) {
35  $sTemplateName = 'widget/' . basename($sTpl) . '/categorylist.tpl';
36  if ($this->getConfig()->getTemplatePath($sTemplateName, $this->isAdmin())) {
37  $this->_sThisTemplate = $sTemplateName;
38  }
39  }
40  return $this->_sThisTemplate;
41  }
42 
48  public function getDeepLevel()
49  {
50  return $this->getViewParameter( "deepLevel" );
51  }
52 
53 }