getValue(); foreach ((array)$this->_multiOptions as $key => $option) { $checked = ($value == $key) ? ' checked="checked" ' : ''; if (is_array($option)) { $title = $this->_getData($option, 'title'); $description = $this->_getData($option, 'description'); $locationId = $this->_getData($option, 'locationId'); $postCode = $this->_getData($option, 'postCode'); } else { $title = $option; $description = null; } $output .= '' . "\n"; } return $output; } protected function _getData($array, $key) { return (isset($array[$key])) ? $array[$key] : null; } }