2015-10-21 23:30:24 +02:00
|
|
|
<?php
|
|
|
|
|
2021-10-11 16:10:47 +02:00
|
|
|
class Application_Form_PodcastPreferences extends Zend_Form_SubForm
|
|
|
|
{
|
|
|
|
public function init()
|
|
|
|
{
|
2015-10-21 23:30:24 +02:00
|
|
|
$isPrivate = Application_Model_Preference::getStationPodcastPrivacy();
|
2021-10-11 16:10:47 +02:00
|
|
|
$stationPodcastPrivacy = new Zend_Form_Element_Radio('stationPodcastPrivacy');
|
2015-11-13 20:57:32 +01:00
|
|
|
$stationPodcastPrivacy->setLabel(_('Feed Privacy'));
|
2021-10-11 16:10:47 +02:00
|
|
|
$stationPodcastPrivacy->setMultiOptions([
|
|
|
|
_('Public'),
|
|
|
|
_('Private'),
|
|
|
|
]);
|
2015-11-17 21:20:05 +01:00
|
|
|
$stationPodcastPrivacy->setSeparator(' ');
|
2022-07-07 20:01:15 +02:00
|
|
|
$stationPodcastPrivacy->addDecorator('HtmlTag', [
|
|
|
|
'tag' => 'dd',
|
2021-10-11 16:10:47 +02:00
|
|
|
'id' => 'stationPodcastPrivacy-element',
|
2015-11-17 21:20:05 +01:00
|
|
|
'class' => 'radio-inline-list',
|
2021-10-11 16:10:47 +02:00
|
|
|
]);
|
2015-10-21 23:30:24 +02:00
|
|
|
$stationPodcastPrivacy->setValue($isPrivate);
|
|
|
|
$this->addElement($stationPodcastPrivacy);
|
|
|
|
}
|
2021-10-11 16:10:47 +02:00
|
|
|
}
|