InstallTheme
in package
FinalYes
インストーラーの初期テーマ選択肢 1 件を表す値オブジェクト。
key は install フォームの select_theme に入る値(=ルート bin 名)。子ブログ(news@site 等)は
Installer が setup/bin/ の FS 走査で自動検出するため、入れ子表記は不要。ビュー描画とホワイトリスト
検証の両方で用いる。image は setup ルートからの相対パスで、各テーマの bin ディレクトリ同梱画像
(bin/<name>/<image>)に一本化する。comparison はテーマ比較表の「属性ラベル → 値」の連想配列で、
宣言に持たせることで比較表を動的生成する(宣言に無ければ表に載らない)。
Table of Contents
Properties
- $comparison : array<string|int, mixed>
- $description : string
- $hidden : bool
- $image : string
- $key : string
- $label : string
- $order : int
Methods
- __construct() : mixed
Properties
$comparison read-only
public
array<string|int, mixed>
$comparison
= []
$description read-only
public
string
$description
= ''
$hidden read-only
public
bool
$hidden
= false
$image read-only
public
string
$image
= ''
$key read-only
public
string
$key
$label read-only
public
string
$label
$order read-only
public
int
$order
= 100
Methods
__construct()
public
__construct(string $key, string $label[, string $description = '' ][, string $image = '' ][, int $order = 100 ][, bool $hidden = false ][, array<string, string> $comparison = [] ]) : mixed
Parameters
- $key : string
- $label : string
- $description : string = ''
- $image : string = ''
- $order : int = 100
- $hidden : bool = false
- $comparison : array<string, string> = []