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