public function RestartBuffer() { $this->oAsset->setShowHeadString(false); $this->oAsset->setShowHeadScript(false); $this->buffer_man = true; ob_end_clean(); $this->buffer_man = false; $this->buffer_content_type = array(); $this->buffer_content = array(); if (function_exists("getmoduleevents")) { foreach (GetModuleEvents("main", "OnBeforeRestartBuffer", true) as $arEvent) { ExecuteModuleEventEx($arEvent); } } ob_start(array(&$this, "EndBufferContent")); }