SettingSepchar.php 410 B

123456789101112131415161718
  1. <?php
  2. namespace dokuwiki\plugin\config\core\Setting;
  3. /**
  4. * Class setting_sepchar
  5. */
  6. class SettingSepchar extends SettingMultichoice {
  7. /** @inheritdoc */
  8. public function __construct($key, $param = null) {
  9. $str = '_-.';
  10. for($i = 0; $i < strlen($str); $i++) $this->choices[] = $str[$i];
  11. // call foundation class constructor
  12. parent::__construct($key, $param);
  13. }
  14. }