[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/plugins/config/core/Setting/ -> SettingSepchar.php (source)

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