10a5b05ebSAndreas Gohr<?php 20a5b05ebSAndreas Gohr 30a5b05ebSAndreas Gohrnamespace dokuwiki\plugin\config\core\Setting; 40a5b05ebSAndreas Gohr 50a5b05ebSAndreas Gohr/** 60a5b05ebSAndreas Gohr * Class setting_license 70a5b05ebSAndreas Gohr */ 88c7c53b0SAndreas Gohrclass SettingLicense extends SettingMultichoice 98c7c53b0SAndreas Gohr{ 10467c1427SAndreas Gohr protected $choices = ['']; // none choosen 110a5b05ebSAndreas Gohr 120a5b05ebSAndreas Gohr /** @inheritdoc */ 13*d868eb89SAndreas Gohr public function initialize($default = null, $local = null, $protected = null) 14*d868eb89SAndreas Gohr { 150a5b05ebSAndreas Gohr global $license; 160a5b05ebSAndreas Gohr 170a5b05ebSAndreas Gohr foreach ($license as $key => $data) { 180a5b05ebSAndreas Gohr $this->choices[] = $key; 190a5b05ebSAndreas Gohr $this->lang[$this->key . '_o_' . $key] = $data['name']; // stored in setting 200a5b05ebSAndreas Gohr } 210a5b05ebSAndreas Gohr 220a5b05ebSAndreas Gohr parent::initialize($default, $local, $protected); 230a5b05ebSAndreas Gohr } 240a5b05ebSAndreas Gohr} 25