app = $app; try { if(!empty($this->app->Container)) { $this->gateway = $this->app->Container->get('SystemHealthGateway'); $this->service = $this->app->Container->get('SystemHealthService'); } } catch(Exception $e) { } if($intern) { return; } $this->app->ActionHandlerInit($this); $this->app->ActionHandler('list','SystemhealthList'); $this->app->DefaultActionHandler('list'); $this->app->ActionHandlerListen($app); } public function SystemhealthMenu() { $this->app->erp->MenuEintrag('index.php?module=systemhealth&action=list','Übersicht'); } /** * @return array */ public function getMemory() { try { return $this->service->getMemoryUsage(); } catch (Exception $e) { return []; } } /** * @param string $catgoryId * @param int $nr * @param string $target * * @return bool */ public function drawCategory($catgoryId, $nr, $target = 'TAB1') { if(empty($this->gateway)) { return false; } $category = $this->gateway->getCategoryById($catgoryId); if(empty($category)) { return false; } if($nr % 2 === 0) { $this->app->Tpl->Add($target, '