/** * Initialize module * * @param string $module Module name * * @since 1.0.0 * @author Dennis Eichhorn */ public function initModule($module) { if (is_array($module)) { foreach ($module as $m) { $this->running[$m] = \phpOMS\Module\ModuleFactory::getInstance($m, $this->app); } } else { $this->running[$module] = \phpOMS\Module\ModuleFactory::getInstance($module, $this->app); } }
/* * Statistics */ $panelStatView = new \Web\Views\Panel\PanelView($this->l11n, $this->request, $this->response); $panelStatView->setTemplate('/Web/Templates/Panel/BoxFull'); $panelStatView->setTitle($this->l11n->lang[35]['General']); $this->addView('stats', $panelStatView); $statTableView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response); $statTableView->setTemplate('/Web/Templates/Lists/AssocList'); $statTableView->setElements([[$this->l11n->lang[35]['Surplus'], '+2 ' . $this->l11n->lang[35]['hours']], [$this->l11n->lang[35]['Work'], '12.5 / 160 ' . $this->l11n->lang[35]['hours']], [$this->l11n->lang[35]['Vacation'], '20 / 28 ' . $this->l11n->lang[35]['days']], [$this->l11n->lang[35]['Sick'], '2 ' . $this->l11n->lang[35]['days']]]); $this->getView('stats')->addView('stat::table', $statTableView); ?> <div class="b-7" id="i3-2-1"> <?php if (($clocking = \phpOMS\Module\ModuleFactory::getInstance('Clocking')) !== null) { $clocking->getBackendUserClocking($this->l11n, $this->response, $this->request); } ?> <div class="b b-5 c3-2 c3" id="i3-2-5"> <h1><?php echo $this->l11n->lang[35]['Planning']; ?> </h1> <div class="bc-1"> <button><?php echo $this->l11n->lang[35]['New']; ?> </button> </div>