%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/recepty.varak.net/lib/plugins/config/core/Setting/
Upload File :
Create Path :
Current File : /www/varak.net/recepty.varak.net/lib/plugins/config/core/Setting/SettingLicense.php

<?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);
    }
}

Zerion Mini Shell 1.0