SettingLicense.php 578 B

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