/**
  * Constructor
  *
  * @param string $caption
  * @param string $name
  * @param mixed  $value   Pre-selected value (or array of them).
  *                        Legal values are {@link XOOPS_MATCH_START}, {@link XOOPS_MATCH_END},
  *                        {@link XOOPS_MATCH_EQUAL}, and {@link XOOPS_MATCH_CONTAIN}
  * @param int    $size    Number of rows. "1" makes a drop-down-list
  */
 public function __construct($caption, $name, $value = null, $size = 1)
 {
     parent::__construct($caption, $name, $value, $size, false);
     $this->addOption(XOOPS_MATCH_START, _STARTSWITH);
     $this->addOption(XOOPS_MATCH_END, _ENDSWITH);
     $this->addOption(XOOPS_MATCH_EQUAL, _MATCHES);
     $this->addOption(XOOPS_MATCH_CONTAIN, _CONTAINS);
 }
 /**
  * Constructor
  *
  * @param string $caption
  * @param string $name
  * @param mixed  $value             Pre-selected value (or array of them).
  * @param int    $size              Number or rows. "1" makes a drop-down-list
  * @param bool   $theme_set_allowed Flag to use only selectable theme
  */
 public function __construct($caption, $name, $value = null, $size = 1, $theme_set_allowed = false)
 {
     parent::__construct($caption, $name, $value, $size);
     if ($theme_set_allowed === false) {
         $this->addOptionArray(XoopsLists::getThemesList());
     } else {
         $theme_arr = $GLOBALS['xoopsConfig']['theme_set_allowed'];
         foreach (array_keys($theme_arr) as $i) {
             $this->addOption($theme_arr[$i], $theme_arr[$i]);
         }
     }
 }
 /**
  * Constructor
  *
  * @param string $caption
  * @param string $name
  * @param mixed  $value   Pre-selected value (or array of them).
  *                        Legal is any name of a XOOPS_ROOT_PATH."/language/" subdirectory.
  * @param int    $size    Number of rows. "1" makes a drop-down-list.
  */
 public function __construct($caption, $name, $value = null, $size = 1)
 {
     parent::__construct($caption, $name, $value, $size);
     $this->addOptionArray(XoopsLists::getLangList());
 }
 /**
  * Constructor
  *
  * @param string $caption Caption
  * @param string $name    "name" attribute
  * @param mixed  $value   Pre-selected value (or array of them).
  *                        Legal are all 2-letter country codes (in capitals).
  * @param int    $size    Number or rows. "1" makes a drop-down-list
  */
 public function __construct($caption, $name, $value = null, $size = 1)
 {
     parent::__construct($caption, $name, $value, $size);
     //        $this->XoopsFormSelect($caption, $name, $value, $size);
     $this->addOptionArray(XoopsLists::getCountryList());
 }