blob: 8dacf8e2535a080c65057458dddedf334fb0eb30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace dokuwiki\plugin\config\core\Setting;
/**
* Class setting_license
*/
class SettingLicense extends SettingMultichoice {
protected $choices = array(''); // 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);
}
}
|