'one, two, three',
);
/**
* A Dropdown with a single value to pick
*
* @param string $name
* @param string $value
* @return string
*/
public function valueEditor($name, $value) {
$class = 'struct_'.strtolower($this->getClass());
$options = explode(',', $this->config['values']);
$options = array_map('trim', $options);
$options = array_filter($options);
$name = hsc($name);
$html = "';
return $html;
}
/**
* A dropdown that allows to pick multiple values
*
* @param string $name
* @param \string[] $values
* @return string
*/
public function multiValueEditor($name, $values) {
$class = 'struct_'.strtolower($this->getClass());
$options = explode(',', $this->config['values']);
$options = array_map('trim', $options);
$options = array_filter($options);
$name = hsc($name);
$html = " ';
$html .= ''.$this->getLang('multidropdown').'';
return $html;
}
}