| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/ttjs.cz/dev/app/classes/ |
Upload File : |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace app\classes;
/**
* Description of Modules
*
* @author maros
*/
class Modules {
private $modules = array();
public function __construct() {
$path = DOCUMENT_ROOT . "modules";
foreach (scandir($path) as $module) {
if ($module === "." || $module === "..") {
continue;
}
$this->modules[$module] = new ModuleConfig(DOCUMENT_ROOT . "modules/" . $module . "/");
}
}
/**
* @return ModuleConfig[]
*/
public function getModulesConfig($module = false) {
if ($module === false) {
return $this->modules;
}
if (key_exists($module, $this->modules)) {
return $this->modules[$module];
}
return false;
}
}