1<?php
2
3namespace dokuwiki\plugin\config\core\Setting;
4
5/**
6 * Class setting_license
7 */
8class SettingLicense extends SettingMultichoice
9{
10    protected $choices = [''];      // none choosen
11
12    /** @inheritdoc */
13    public function initialize($default = null, $local = null, $protected = null)
14    {
15        global $license;
16
17        foreach ($license as $key => $data) {
18            $this->choices[] = $key;
19            $this->lang[$this->key . '_o_' . $key] = $data['name']; // stored in setting
20        }
21
22        parent::initialize($default, $local, $protected);
23    }
24}
25