dokuwiki/lib/plugins/config/core/Setting/SettingLicense.php
<?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);
}
}