style(legacy): format stream settings model

This commit is contained in:
jo 2022-06-09 16:50:21 +02:00 committed by Kyle Robbertze
parent 7457a29e7f
commit f936ba39ed
1 changed files with 6 additions and 3 deletions

View File

@ -36,7 +36,8 @@ class Application_Form_StreamSetting extends Zend_Form
'OSS' => _('OSS'),
'Portaudio' => _('Portaudio'),
'Pulseaudio' => _('Pulseaudio'),
'Jack' => _('Jack'), ])
'Jack' => _('Jack'),
])
->setValue(isset($setting['output_sound_device_type']) ? $setting['output_sound_device_type'] : 0)
->setDecorators(['ViewHelper']);
$this->addElement($output_sound_device_type);
@ -53,9 +54,11 @@ class Application_Form_StreamSetting extends Zend_Form
$stream_format = new Zend_Form_Element_Radio('streamFormat');
$stream_format->setLabel(_('Stream Label:'));
$stream_format->setMultiOptions([_('Artist - Title'),
$stream_format->setMultiOptions([
_('Artist - Title'),
_('Show - Artist - Title'),
_('Station name - Show name'), ]);
_('Station name - Show name'),
]);
$stream_format->setValue(Application_Model_Preference::GetStreamLabelFormat());
$stream_format->setDecorators(['ViewHelper']);
$this->addElement($stream_format);