/** * Instantiates the template. * It creates a {@link TDataList} control. * @param TControl parent to hold the content within the template */ public function instantiateIn($parent) { $dataList = new TDataList(); $dataList->setID(TWizard::ID_SIDEBAR_LIST); $dataList->getSelectedItemStyle()->getFont()->setBold(true); $dataList->setItemTemplate(new TWizardSideBarListItemTemplate()); $parent->getControls()->add($dataList); }