public function Terminate() { if ($this->isinitialized) { foreach ($GLOBALS['hooks']['Filter_Plugin_Zbp_Terminate'] as $fpname => &$fpsignal) { $fpname(); } $this->CloseConnect(); unset($this->db); $this->isinitialized = false; } }