mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-07 04:22:35 +09:00
29 lines
561 B
PHP
29 lines
561 B
PHP
<?php
|
|
namespace fruithost;
|
|
|
|
class TemplateNavigation {
|
|
private $core = null;
|
|
private $entries = [];
|
|
|
|
public function __construct($core) {
|
|
$this->core = $core;
|
|
}
|
|
|
|
public function addCategory($name, $label) {
|
|
$category = new TemplateNavigationCategory($this, $name, $label);
|
|
$this->entries[$category->getID()] = $category;
|
|
}
|
|
|
|
public function getCore() {
|
|
return $this->core;
|
|
}
|
|
|
|
public function isEmpty() {
|
|
return (count($this->entries) === 0);
|
|
}
|
|
|
|
public function getEntries() {
|
|
return $this->entries;
|
|
}
|
|
}
|
|
?>
|