示例#1
0
 /**
  * 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
  */
 function __construct($caption, $name, $value = null, $size = 1)
 {
     parent::__construct($caption, $name, $value, $size);
     $this->addOptionArray(Xmf_Lists::getCountryList());
 }