[ 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      {
  13          $str = '_-.';
  14          for ($i = 0; $i < strlen($str); $i++) $this->choices[] = $str[$i];
  15  
  16          // call foundation class constructor
  17          parent::__construct($key, $param);
  18      }
  19  }