<?php
// Prevent direct access
defined('_JEXEC') or die;

// Include the helper class
require_once __DIR__ . '/helper.php';

// Retrieve JSON path and access params
// $jsonPath = $params->get('json_path', 'media/com_eis/documents.json');
// $confidentialLevel = $params->get('confidential_level');
// $privateUserId = $params->get('private_user');

// Load and parse document tree
$items = ModEisAnzeigeHelper::getItems();


// TODO: Apply access filtering
// $items = ModEisAnzeigeHelper::filterByAccess($items, $confidentialLevel, $privateUserId);

// Render module layout
require JModuleHelper::getLayoutPath('mod_eis_anzeige', $params->get('layout', 'default'));
