/** * Function executes initialized template of the component. * * <p>Note: component must be inited by initComponent method.</p> * @return void * */ public final function showComponentTemplate() { if (!$this->__bInited) { return null; } if ($this->__template) { $this->__template->includeTemplate($this->arResult); } if (is_array($this->arResultCacheKeys)) { $arNewResult = array(); foreach ($this->arResultCacheKeys as $key) { if (array_key_exists($key, $this->arResult)) { $arNewResult[$key] = $this->arResult[$key]; } } $this->arResult = $arNewResult; } if (!empty($this->__editButtons)) { foreach ($this->__editButtons as $button) { if ($button[0] == 'AddEditAction') { $this->addEditAction($button[1], $button[2], $button[3], $button[4]); } else { $this->addDeleteAction($button[1], $button[2], $button[3], $button[4]); } } } $this->__template->endViewTarget(); $this->endResultCache(); }