- v_front.php - API 추가 - General/GetFrontInfo - Global/GetGlobalMenu - DTO 추가 - MenuItem, MenuMulti, MenuSplit - 글로벌 메뉴 출력 방식 변경 - d_setting/GlobalMenu.php Reviewed-on: https://storage.hided.net/gitea/devsam/core/pulls/229
26 lines
515 B
PHP
26 lines
515 B
PHP
<?php
|
|
|
|
namespace sammo\DTO;
|
|
|
|
use LDTO\Attr\NullIsUndefined;
|
|
use LDTO\DTO;
|
|
|
|
class MenuItem extends DTO{
|
|
public readonly string $type;
|
|
|
|
public function __construct(
|
|
public readonly string $name,
|
|
public readonly string $url,
|
|
|
|
#[NullIsUndefined]
|
|
public ?string $icon = null,
|
|
#[NullIsUndefined]
|
|
public ?bool $newTab = false,
|
|
#[NullIsUndefined]
|
|
public ?string $condHighlightVar = null,
|
|
#[NullIsUndefined]
|
|
public ?string $condShowVar = null,
|
|
){
|
|
$this->type = 'item';
|
|
}
|
|
} |