public function parse($arrAttributes = null)
{
$strClass = 'select';
if ($this->multiple) {
$this->strName .= '[]';
$strClass = 'multiselect';
} elseif (is_array($this->varValue)) {
$this->varValue = $this->varValue[0];
}
// Chosen
if ($this->chosen) {
$strClass .= ' tl_chosen';
}
// Custom class
if ($this->strClass != '') {
$strClass .= ' ' . $this->strClass;
}
$this->strClass = $strClass;
return parent::parse($arrAttributes);
}