aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/plugins/config/core/Setting/SettingLicense.php
blob: edd5a09e33c5716a42561817278c485383cb63d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace dokuwiki\plugin\config\core\Setting;

/**
 * Class setting_license
 */
class SettingLicense extends SettingMultichoice
{
    protected $choices = [''];      // none choosen

    /** @inheritdoc */
    public function initialize($default = null, $local = null, $protected = null)
    {
        global $license;

        foreach ($license as $key => $data) {
            $this->choices[] = $key;
            $this->lang[$this->key . '_o_' . $key] = $data['name']; // stored in setting
        }

        parent::initialize($default, $local, $protected);
    }
}