mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
40 lines
878 B
PHP
40 lines
878 B
PHP
<?php
|
|
|
|
/*
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
|
|
*/
|
|
|
|
/**
|
|
* Description of InOutLib
|
|
*
|
|
* @author bambi
|
|
*/
|
|
abstract class TreeMenuLib
|
|
{
|
|
protected $ci;
|
|
protected $children_config;
|
|
|
|
public function __construct($children_config)
|
|
{
|
|
$this->ci =& get_instance();
|
|
$this->children_config = $children_config;
|
|
foreach($this->children_config as $child_config)
|
|
{
|
|
$grandchildren_config = isset($child_config['children']) ? $child_config['children'] : [];
|
|
$this->ci->load->library($child_config['library'], $grandchildren_config, basename($child_config['library']));
|
|
}
|
|
}
|
|
|
|
public function getNode($name)
|
|
{
|
|
$node = array(
|
|
'name' => $name
|
|
);
|
|
|
|
return $node;
|
|
}
|
|
|
|
public abstract function getSubMenu();
|
|
}
|