diff --git a/www/pages/systemhealth.php b/www/pages/systemhealth.php index 5e41a0b1..a685b840 100644 --- a/www/pages/systemhealth.php +++ b/www/pages/systemhealth.php @@ -1,1009 +1,1012 @@ -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, '