xref: /dokuwiki/lib/plugins/config/core/Setting/SettingSepchar.php (revision d4f83172d9533c4d84f450fe22ef630816b21d75)
10a5b05ebSAndreas Gohr<?php
20a5b05ebSAndreas Gohr
30a5b05ebSAndreas Gohrnamespace dokuwiki\plugin\config\core\Setting;
40a5b05ebSAndreas Gohr
50a5b05ebSAndreas Gohr/**
60a5b05ebSAndreas Gohr * Class setting_sepchar
70a5b05ebSAndreas Gohr */
88c7c53b0SAndreas Gohrclass SettingSepchar extends SettingMultichoice
98c7c53b0SAndreas Gohr{
100a5b05ebSAndreas Gohr    /** @inheritdoc */
11*d868eb89SAndreas Gohr    public function __construct($key, $param = null)
12*d868eb89SAndreas Gohr    {
130a5b05ebSAndreas Gohr        $str = '_-.';
14ff419d89SSyntaxseed        for ($i = 0; $i < strlen($str); $i++) $this->choices[] = $str[$i];
150a5b05ebSAndreas Gohr
160a5b05ebSAndreas Gohr        // call foundation class constructor
170a5b05ebSAndreas Gohr        parent::__construct($key, $param);
180a5b05ebSAndreas Gohr    }
190a5b05ebSAndreas Gohr}
20