2024-09-21 10:14:04 +09:00
|
|
|
<?php
|
|
|
|
|
if (!defined("__ADVDIR__"))
|
|
|
|
|
exit();
|
|
|
|
|
|
|
|
|
|
class Menu
|
|
|
|
|
{
|
|
|
|
|
public $mid;
|
|
|
|
|
public $name;
|
|
|
|
|
public $order;
|
|
|
|
|
public $url;
|
|
|
|
|
public $suburl;
|
|
|
|
|
public $icon;
|
|
|
|
|
public $gnb_grp_div;
|
|
|
|
|
public $display;
|
|
|
|
|
|
|
|
|
|
public function __construct($mid, $name, $url, $display = true, $order = 0, $icon = "", $gnb_grp_div = 0)
|
|
|
|
|
{
|
|
|
|
|
$this->display = $display;
|
|
|
|
|
$this->mid = $mid;
|
|
|
|
|
$this->name = $name;
|
|
|
|
|
$this->order = $order;
|
|
|
|
|
$this->url = $url;
|
|
|
|
|
$this->icon = $icon;
|
|
|
|
|
$this->gnb_grp_div = $gnb_grp_div;
|
2024-09-23 11:07:19 +09:00
|
|
|
$this->suburl = [];
|
2024-09-21 10:14:04 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function addSubURL($url)
|
2024-10-07 10:35:20 +09:00
|
|
|
{
|
|
|
|
|
$this->addSubFile($url); // migrate
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function addSubFile($url)
|
2024-09-21 10:14:04 +09:00
|
|
|
{
|
|
|
|
|
if (!in_array($url, $this->suburl))
|
|
|
|
|
$this->suburl[] = $url;
|
|
|
|
|
}
|
|
|
|
|
}
|