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