/** * Creates the wizard side bar */ protected function createSideBar() { if ($this->getShowSideBar()) { if (($template = $this->getSideBarTemplate()) === null) { $template = new TWizardSideBarTemplate(); } $this->_sideBar = new TPanel(); $template->instantiateIn($this->_sideBar); $this->getControls()->add($this->_sideBar); if (($this->_sideBarDataList = $this->_sideBar->findControl(self::ID_SIDEBAR_LIST)) !== null) { $this->_sideBarDataList->attachEventHandler('OnItemCommand', array($this, 'dataListItemCommand')); $this->_sideBarDataList->attachEventHandler('OnItemDataBound', array($this, 'dataListItemDataBound')); $this->_sideBarDataList->setDataSource($this->getWizardSteps()); $this->_sideBarDataList->setSelectedItemIndex($this->getActiveStepIndex()); $this->_sideBarDataList->dataBind(); } } else { $this->_sideBar = new TPanel(); $this->getControls()->add($this->_sideBar); } }