Custom auto playlist (#2)

This commit is contained in:
Thomas Göttgens 2024-02-13 14:16:51 +01:00 committed by GitHub
parent 26fbd1224a
commit 3f9c244ab3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
44 changed files with 848 additions and 22 deletions

View File

@ -0,0 +1,37 @@
# pylint: disable=invalid-name
from django.db import migrations
from ._migrations import legacy_migration_factory
UP = """
ALTER TABLE cc_show ADD COLUMN override_intro_playlist boolean default 'f' NOT NULL;
ALTER TABLE cc_show ADD COLUMN intro_playlist_id integer DEFAULT NULL;
ALTER TABLE cc_show ADD CONSTRAINT cc_playlist_intro_playlist_fkey FOREIGN KEY (intro_playlist_id) REFERENCES cc_playlist (id) ON DELETE SET NULL;
ALTER TABLE cc_show ADD COLUMN override_outro_playlist boolean default 'f' NOT NULL;
ALTER TABLE cc_show ADD COLUMN outro_playlist_id integer DEFAULT NULL;
ALTER TABLE cc_show ADD CONSTRAINT cc_playlist_outro_playlist_fkey FOREIGN KEY (outro_playlist_id) REFERENCES cc_playlist (id) ON DELETE SET NULL;
"""
DOWN = """
ALTER TABLE cc_show DROP COLUMN IF EXISTS override_intro_playlist;
ALTER TABLE cc_show DROP COLUMN IF EXISTS intro_playlist_id;
ALTER TABLE cc_show DROP CONSTRAINT IF EXISTS cc_playlist_intro_playlist_fkey;
ALTER TABLE cc_show DROP COLUMN IF EXISTS override_outro_playlist;
ALTER TABLE cc_show DROP COLUMN IF EXISTS outro_playlist_id;
ALTER TABLE cc_show DROP CONSTRAINT IF EXISTS cc_playlist_outro_playlist_fkey;
"""
class Migration(migrations.Migration):
dependencies = [
("legacy", "0045_add_sessions_table"),
]
operations = [
migrations.RunPython(
code=legacy_migration_factory(
target="46",
sql=UP,
)
)
]

View File

@ -1,2 +1,2 @@
# The schema version is defined using the migration file prefix number
LEGACY_SCHEMA_VERSION = "45"
LEGACY_SCHEMA_VERSION = "46"

View File

@ -126,6 +126,10 @@ CREATE TABLE "cc_show"
"has_autoplaylist" BOOLEAN DEFAULT 'f' NOT NULL,
"autoplaylist_id" INTEGER,
"autoplaylist_repeat" BOOLEAN DEFAULT 'f' NOT NULL,
"override_intro_playlist" BOOLEAN DEFAULT 'f' NOT NULL,
"intro_playlist_id" INTEGER,
"override_outro_playlist" BOOLEAN DEFAULT 'f' NOT NULL,
"outro_playlist_id" INTEGER,
PRIMARY KEY ("id")
);
@ -718,6 +722,16 @@ ALTER TABLE "cc_show" ADD CONSTRAINT "cc_playlist_autoplaylist_fkey"
REFERENCES "cc_playlist" ("id")
ON DELETE SET NULL;
ALTER TABLE "cc_show" ADD CONSTRAINT "cc_playlist_intro_playlist_fkey"
FOREIGN KEY ("intro_playlist_id")
REFERENCES "cc_playlist" ("id")
ON DELETE SET NULL;
ALTER TABLE "cc_show" ADD CONSTRAINT "cc_playlist_outro_playlist_fkey"
FOREIGN KEY ("outro_playlist_id")
REFERENCES "cc_playlist" ("id")
ON DELETE SET NULL;
ALTER TABLE "cc_show_instances" ADD CONSTRAINT "cc_show_fkey"
FOREIGN KEY ("show_id")
REFERENCES "cc_show" ("id")

View File

@ -69,6 +69,28 @@ class Show(models.Model):
auto_playlist_enabled = models.BooleanField(db_column="has_autoplaylist")
auto_playlist_repeat = models.BooleanField(db_column="autoplaylist_repeat")
intro_playlist = models.ForeignKey(
"schedule.Playlist",
on_delete=models.DO_NOTHING,
blank=True,
null=True,
db_column="intro_playlist_id",
related_name="intro_playlist",
)
override_intro_playlist = models.BooleanField(db_column="override_intro_playlist")
outro_playlist = models.ForeignKey(
"schedule.Playlist",
on_delete=models.DO_NOTHING,
blank=True,
null=True,
db_column="outro_playlist_id",
related_name="outro_playlist",
)
override_outro_playlist = models.BooleanField(db_column="override_outro_playlist")
hosts = models.ManyToManyField( # type: ignore[var-annotated]
"core.User",
through="ShowHost",

View File

@ -21,6 +21,10 @@ class ShowSerializer(serializers.ModelSerializer):
"auto_playlist",
"auto_playlist_enabled",
"auto_playlist_repeat",
"intro_playlist",
"override_intro_playlist",
"outro_playlist",
"override_outro_playlist",
]

View File

@ -6409,6 +6409,16 @@ components:
type: boolean
auto_playlist_repeat:
type: boolean
intro_playlist:
type: integer
nullable: true
override_intro_playlist:
type: boolean
outro_playlist:
type: integer
nullable: true
override_outro_playlist:
type: boolean
PatchedShowDays:
type: object
properties:
@ -7241,6 +7251,16 @@ components:
type: boolean
auto_playlist_repeat:
type: boolean
intro_playlist:
type: integer
nullable: true
override_intro_playlist:
type: boolean
outro_playlist:
type: integer
nullable: true
override_outro_playlist:
type: boolean
required:
- auto_playlist_enabled
- auto_playlist_repeat
@ -7249,6 +7269,8 @@ components:
- linked
- live_enabled
- name
- override_intro_playlist
- override_outro_playlist
ShowDays:
type: object
properties:

View File

@ -80,7 +80,7 @@
"js/airtime/preferences/musicdirs.js": "81eb5dbc292144fe8762ebcae47372a5",
"js/airtime/preferences/preferences.js": "af842763a466c9ea5b9d697db424e08f",
"js/airtime/preferences/streamsetting.js": "60bb2f4f750594afc330c1f8c2037b91",
"js/airtime/schedule/add-show.js": "6d44396fd42dc3da7d64740564089f4c",
"js/airtime/schedule/add-show.js": "7b3f5e248e958f7d23d728c3b2c9658e",
"js/airtime/schedule/full-calendar-functions.js": "6854ef2c1863250c4f2494d5cfedf394",
"js/airtime/schedule/schedule.js": "14e2073b1543cb404460317999850c17",
"js/airtime/showbuilder/builder.js": "b5addaf98002c1673e4f1c93997b8dae",

View File

@ -33,8 +33,17 @@ class AutoPlaylistManager
// call the addPlaylist to show function and don't check for user permission to avoid call to non-existant user object
$sid = $si->getShowId();
$playlistrepeat = new Application_Model_Show($sid);
$introplaylistid = Application_Model_Preference::GetIntroPlaylist();
$outroplaylistid = Application_Model_Preference::GetOutroPlaylist();
if ($playlistrepeat->getHasOverrideIntroPlaylist()) {
$introplaylistid = $playlistrepeat->getIntroPlaylistId();
} else {
$introplaylistid = Application_Model_Preference::GetIntroPlaylist();
}
if ($playlistrepeat->getHasOverrideOutroPlaylist()) {
$outroplaylistid = $playlistrepeat->getOutroPlaylistId();
} else {
$outroplaylistid = Application_Model_Preference::GetOutroPlaylist();
}
// we want to check and see if we need to repeat this process until the show is 100% scheduled
// so we create a while loop and break it immediately if repeat until full isn't enabled

View File

@ -34,6 +34,36 @@ class Application_Form_AddShowAutoPlaylist extends Zend_Form_SubForm
'class' => 'input_text',
'decorators' => ['ViewHelper'],
]);
// Add override intro playlist checkbox element
$this->addElement('checkbox', 'add_show_override_intro_playlist', [
'label' => _('Override Intro Playlist ?'),
'required' => false,
'class' => 'input_text',
'decorators' => ['ViewHelper'],
]);
$introPlaylistSelect = new Zend_Form_Element_Select('add_show_intro_playlist_id');
$introPlaylistSelect->setLabel(_('Select Intro Playlist'));
$introPlaylistSelect->setMultiOptions(Application_Model_Library::getPlaylistNames(true));
$introPlaylistSelect->setValue(null);
$introPlaylistSelect->setDecorators(['ViewHelper']);
$this->addElement($introPlaylistSelect);
// Add override outro playlist checkbox element
$this->addElement('checkbox', 'add_show_override_outro_playlist', [
'label' => _('Override Outro Playlist ?'),
'required' => false,
'class' => 'input_text',
'decorators' => ['ViewHelper'],
]);
$outroPlaylistSelect = new Zend_Form_Element_Select('add_show_outro_playlist_id');
$outroPlaylistSelect->setLabel(_('Select Outro Playlist'));
$outroPlaylistSelect->setMultiOptions(Application_Model_Library::getPlaylistNames(true));
$outroPlaylistSelect->setValue(null);
$outroPlaylistSelect->setDecorators(['ViewHelper']);
$this->addElement($outroPlaylistSelect);
}
public function disable()

View File

@ -169,6 +169,58 @@ class Application_Model_Show
$show->setDbAutoPlaylistId($playlistid);
}
public function getHasOverrideIntroPlaylist()
{
$show = CcShowQuery::create()->findPK($this->_showId);
return $show->getDbOverrideIntroPlaylist();
}
public function setHasOverrideIntroPlaylist($value)
{
$show = CcShowQuery::create()->findPK($this->_showId);
$show->setDbOverrideIntroPlaylist($value);
}
public function getIntroPlaylistId()
{
$show = CcShowQuery::create()->findPK($this->_showId);
return $show->getDbIntroPlaylistId();
}
public function setIntroPlaylistId($playlistid)
{
$show = CcShowQuery::create()->findPK($this->_showId);
$show->setDbIntroPlaylistId($playlistid);
}
public function getHasOverrideOutroPlaylist()
{
$show = CcShowQuery::create()->findPK($this->_showId);
return $show->getDbOverrideOutroPlaylist();
}
public function setHasOverrideOutroPlaylist($value)
{
$show = CcShowQuery::create()->findPK($this->_showId);
$show->setDbOverrideOutroPlaylist($value);
}
public function getOutroPlaylistId()
{
$show = CcShowQuery::create()->findPK($this->_showId);
return $show->getDbOutroPlaylistId();
}
public function setOutroPlaylistId($playlistid)
{
$show = CcShowQuery::create()->findPK($this->_showId);
$show->setDbOutroPlaylistId($playlistid);
}
public function getHosts()
{
$sql = <<<'SQL'

View File

@ -327,6 +327,10 @@ class CcShow extends BaseCcShow
$info['has_autoplaylist'] = $this->getDbHasAutoPlaylist();
$info['autoplaylist_id'] = $this->getDbAutoPlaylistId();
$info['autoplaylist_repeat'] = $this->getDbAutoPlaylistRepeat();
$info['override_intro_playlist'] = $this->getDbOverrideIntroPlaylist();
$info['intro_playlist_id'] = $this->getDbIntroPlaylistId();
$info['override_outro_playlist'] = $this->getDbOverrideOutroPlaylist();
$info['outro_playlist_id'] = $this->getDbOutroPlaylistId();
return $info;
}

View File

@ -56,6 +56,8 @@ class CcPlaylistTableMap extends TableMap
{
$this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('creator_id' => 'id', ), 'CASCADE', null);
$this->addRelation('CcShow', 'CcShow', RelationMap::ONE_TO_MANY, array('id' => 'autoplaylist_id', ), 'SET NULL', null, 'CcShows');
$this->addRelation('CcShow', 'CcShow', RelationMap::ONE_TO_MANY, array('id' => 'intro_playlist_id', ), 'SET NULL', null, 'CcShows');
$this->addRelation('CcShow', 'CcShow', RelationMap::ONE_TO_MANY, array('id' => 'outro_playlist_id', ), 'SET NULL', null, 'CcShows');
$this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'playlist_id', ), 'CASCADE', null, 'CcPlaylistcontentss');
} // buildRelations()

View File

@ -56,6 +56,10 @@ class CcShowTableMap extends TableMap
$this->addColumn('has_autoplaylist', 'DbHasAutoPlaylist', 'BOOLEAN', true, null, false);
$this->addForeignKey('autoplaylist_id', 'DbAutoPlaylistId', 'INTEGER', 'cc_playlist', 'id', false, null, null);
$this->addColumn('autoplaylist_repeat', 'DbAutoPlaylistRepeat', 'BOOLEAN', true, null, false);
$this->addColumn('override_intro_playlist', 'DbOverrideIntroPlaylist', 'BOOLEAN', true, null, false);
$this->addForeignKey('intro_playlist_id', 'DbIntroPlaylistId', 'INTEGER', 'cc_playlist', 'id', false, null, null);
$this->addColumn('override_outro_playlist', 'DbOverrideOutroPlaylist', 'BOOLEAN', true, null, false);
$this->addForeignKey('outro_playlist_id', 'DbOutroPlaylistId', 'INTEGER', 'cc_playlist', 'id', false, null, null);
// validators
} // initialize()
@ -65,6 +69,8 @@ class CcShowTableMap extends TableMap
public function buildRelations()
{
$this->addRelation('CcPlaylist', 'CcPlaylist', RelationMap::MANY_TO_ONE, array('autoplaylist_id' => 'id', ), 'SET NULL', null);
$this->addRelation('CcPlaylist', 'CcPlaylist', RelationMap::MANY_TO_ONE, array('intro_playlist_id' => 'id', ), 'SET NULL', null);
$this->addRelation('CcPlaylist', 'CcPlaylist', RelationMap::MANY_TO_ONE, array('outro_playlist_id' => 'id', ), 'SET NULL', null);
$this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null, 'CcShowInstancess');
$this->addRelation('CcShowDays', 'CcShowDays', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null, 'CcShowDayss');
$this->addRelation('CcShowRebroadcast', 'CcShowRebroadcast', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null, 'CcShowRebroadcasts');

View File

@ -141,6 +141,32 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
protected $autoplaylist_repeat;
/**
* The value for the override_intro_playlist field.
* Note: this column has a database default value of: false
* @var boolean
*/
protected $override_intro_playlist;
/**
* The value for the intro_playlist_id field.
* @var int
*/
protected $intro_playlist_id;
/**
* The value for the override_outro_playlist field.
* Note: this column has a database default value of: false
* @var boolean
*/
protected $override_outro_playlist;
/**
* The value for the outro_playlist_id field.
* @var int
*/
protected $outro_playlist_id;
/**
* @var CcPlaylist
*/
@ -232,6 +258,8 @@ abstract class BaseCcShow extends BaseObject implements Persistent
$this->image_path = '';
$this->has_autoplaylist = false;
$this->autoplaylist_repeat = false;
$this->override_intro_playlist = false;
$this->override_outro_playlist = false;
}
/**
@ -431,6 +459,51 @@ abstract class BaseCcShow extends BaseObject implements Persistent
return $this->autoplaylist_repeat;
}
/**
* Get the [override_intro_playlist] column value.
*
* @return boolean
*/
public function getDbOverrideIntroPlaylist()
{
return $this->override_intro_playlist;
}
/**
* Get the [intro_playlist_id] column value.
*
* @return int
*/
public function getDbIntroPlaylistId()
{
return $this->intro_playlist_id;
}
/**
* Get the [override_outro_playlist] column value.
*
* @return boolean
*/
public function getDbOverrideOutroPlaylist()
{
return $this->override_outro_playlist;
}
/**
* Get the [outro_playlist_id] column value.
*
* @return int
*/
public function getDbOutroPlaylistId()
{
return $this->outro_playlist_id;
}
/**
* Set the value of [id] column.
*
@ -840,6 +913,101 @@ abstract class BaseCcShow extends BaseObject implements Persistent
return $this;
} // setDbAutoPlaylistRepeat()
/**
* Sets the value of the [override_intro_playlist] column.
* Non-boolean arguments are converted using the following rules:
* * 1, '1', 'true', 'on', and 'yes' are converted to boolean true
* * 0, '0', 'false', 'off', and 'no' are converted to boolean false
* Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
*
* @param boolean|integer|string $v The new value
* @return CcShow The current object (for fluent API support)
*/
public function setDbOverrideIntroPlaylist($v)
{
if ($v !== null) {
if (is_string($v)) {
$v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
} else {
$v = (boolean) $v;
}
}
if ($this->override_intro_playlist !== $v) {
$this->override_intro_playlist = $v;
$this->modifiedColumns[] = CcShowPeer::OVERRIDE_INTRO_PLAYLIST;
}
}
/**
* Set the value of [intro_playlist_id] column.
*
* @param int $v new value
* @return CcShow The current object (for fluent API support)
*/
public function setDbIntroPlaylistId($v)
{
if ($v !== null && is_numeric($v)) {
$v = (int) $v;
}
if ($this->intro_playlist_id !== $v) {
$this->intro_playlist_id = $v;
$this->modifiedColumns[] = CcShowPeer::INTRO_PLAYLIST_ID;
}
return $this;
} // setDbIntroPlaylistId()
/**
* Sets the value of the [override_outro_playlist] column.
* Non-boolean arguments are converted using the following rules:
* * 1, '1', 'true', 'on', and 'yes' are converted to boolean true
* * 0, '0', 'false', 'off', and 'no' are converted to boolean false
* Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
*
* @param boolean|integer|string $v The new value
* @return CcShow The current object (for fluent API support)
*/
public function setDbOverrideOutroPlaylist($v)
{
if ($v !== null) {
if (is_string($v)) {
$v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
} else {
$v = (boolean) $v;
}
}
if ($this->override_outro_playlist !== $v) {
$this->override_outro_playlist = $v;
$this->modifiedColumns[] = CcShowPeer::OVERRIDE_OUTRO_PLAYLIST;
}
}
/**
* Set the value of [outro_playlist_id] column.
*
* @param int $v new value
* @return CcShow The current object (for fluent API support)
*/
public function setDbOutroPlaylistId($v)
{
if ($v !== null && is_numeric($v)) {
$v = (int) $v;
}
if ($this->outro_playlist_id !== $v) {
$this->outro_playlist_id = $v;
$this->modifiedColumns[] = CcShowPeer::OUTRO_PLAYLIST_ID;
}
return $this;
} // setDbOutroPlaylistId()
/**
* Indicates whether the columns in this object are only set to default values.
*
@ -890,6 +1058,14 @@ abstract class BaseCcShow extends BaseObject implements Persistent
return false;
}
if ($this->override_intro_playlist !== false) {
return false;
}
if ($this->override_outro_playlist !== false) {
return false;
}
// otherwise, everything was equal, so return true
return true;
} // hasOnlyDefaultValues()
@ -929,6 +1105,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
$this->has_autoplaylist = ($row[$startcol + 14] !== null) ? (boolean) $row[$startcol + 14] : null;
$this->autoplaylist_id = ($row[$startcol + 15] !== null) ? (int) $row[$startcol + 15] : null;
$this->autoplaylist_repeat = ($row[$startcol + 16] !== null) ? (boolean) $row[$startcol + 16] : null;
$this->override_intro_playlist = ($row[$startcol + 17] !== null) ? (boolean) $row[$startcol + 17] : null;
$this->intro_playlist_id = ($row[$startcol + 18] !== null) ? (int) $row[$startcol + 18] : null;
$this->override_outro_playlist = ($row[$startcol + 19] !== null) ? (boolean) $row[$startcol + 19] : null;
$this->outro_playlist_id = ($row[$startcol + 20] !== null) ? (int) $row[$startcol + 20] : null;
$this->resetModified();
$this->setNew(false);
@ -938,7 +1118,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
}
$this->postHydrate($row, $startcol, $rehydrate);
return $startcol + 17; // 17 = CcShowPeer::NUM_HYDRATE_COLUMNS.
return $startcol + 21; // 21 = CcShowPeer::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) {
throw new PropelException("Error populating CcShow object", $e);
@ -1303,6 +1483,18 @@ abstract class BaseCcShow extends BaseObject implements Persistent
if ($this->isColumnModified(CcShowPeer::AUTOPLAYLIST_REPEAT)) {
$modifiedColumns[':p' . $index++] = '"autoplaylist_repeat"';
}
if ($this->isColumnModified(CcShowPeer::OVERRIDE_INTRO_PLAYLIST)) {
$modifiedColumns[':p' . $index++] = '"override_intro_playlist"';
}
if ($this->isColumnModified(CcShowPeer::INTRO_PLAYLIST_ID)) {
$modifiedColumns[':p' . $index++] = '"intro_playlist_id"';
}
if ($this->isColumnModified(CcShowPeer::OVERRIDE_OUTRO_PLAYLIST)) {
$modifiedColumns[':p' . $index++] = '"override_outro_playlist"';
}
if ($this->isColumnModified(CcShowPeer::OUTRO_PLAYLIST_ID)) {
$modifiedColumns[':p' . $index++] = '"outro_playlist_id"';
}
$sql = sprintf(
'INSERT INTO "cc_show" (%s) VALUES (%s)',
@ -1365,6 +1557,18 @@ abstract class BaseCcShow extends BaseObject implements Persistent
case '"autoplaylist_repeat"':
$stmt->bindValue($identifier, $this->autoplaylist_repeat, PDO::PARAM_BOOL);
break;
case '"override_intro_playlist"':
$stmt->bindValue($identifier, $this->override_intro_playlist, PDO::PARAM_BOOL);
break;
case '"intro_playlist_id"':
$stmt->bindValue($identifier, $this->intro_playlist_id, PDO::PARAM_INT);
break;
case '"override_outro_playlist"':
$stmt->bindValue($identifier, $this->override_outro_playlist, PDO::PARAM_BOOL);
break;
case '"outro_playlist_id"':
$stmt->bindValue($identifier, $this->outro_playlist_id, PDO::PARAM_INT);
break;
}
}
$stmt->execute();
@ -1587,6 +1791,18 @@ abstract class BaseCcShow extends BaseObject implements Persistent
case 16:
return $this->getDbAutoPlaylistRepeat();
break;
case 17:
return $this->getDbOverrideIntroPlaylist();
break;
case 18:
return $this->getDbIntroPlaylistId();
break;
case 19:
return $this->getDbOverrideOutroPlaylist();
break;
case 20:
return $this->getDbOutroPlaylistId();
break;
default:
return null;
break;
@ -1633,6 +1849,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
$keys[14] => $this->getDbHasAutoPlaylist(),
$keys[15] => $this->getDbAutoPlaylistId(),
$keys[16] => $this->getDbAutoPlaylistRepeat(),
$keys[17] => $this->getDbOverrideIntroPlaylist(),
$keys[18] => $this->getDbIntroPlaylistId(),
$keys[19] => $this->getDbOverrideOutroPlaylist(),
$keys[20] => $this->getDbOutroPlaylistId(),
);
$virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) {
@ -1740,6 +1960,18 @@ abstract class BaseCcShow extends BaseObject implements Persistent
case 16:
$this->setDbAutoPlaylistRepeat($value);
break;
case 17:
$this->setDbOverrideIntroPlaylist($value);
break;
case 18:
$this->setDbIntroPlaylistId($value);
break;
case 19:
$this->setDbOverrideOutroPlaylist($value);
break;
case 20:
$this->setDbOutroPlaylistId($value);
break;
} // switch()
}
@ -1781,6 +2013,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
if (array_key_exists($keys[14], $arr)) $this->setDbHasAutoPlaylist($arr[$keys[14]]);
if (array_key_exists($keys[15], $arr)) $this->setDbAutoPlaylistId($arr[$keys[15]]);
if (array_key_exists($keys[16], $arr)) $this->setDbAutoPlaylistRepeat($arr[$keys[16]]);
if (array_key_exists($keys[17], $arr)) $this->setDbOverrideIntroPlaylist($arr[$keys[17]]);
if (array_key_exists($keys[18], $arr)) $this->setDbIntroPlaylistId($arr[$keys[18]]);
if (array_key_exists($keys[19], $arr)) $this->setDbOverrideOutroPlaylist($arr[$keys[19]]);
if (array_key_exists($keys[20], $arr)) $this->setDbOutroPlaylistId($arr[$keys[20]]);
}
/**
@ -1809,6 +2045,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
if ($this->isColumnModified(CcShowPeer::HAS_AUTOPLAYLIST)) $criteria->add(CcShowPeer::HAS_AUTOPLAYLIST, $this->has_autoplaylist);
if ($this->isColumnModified(CcShowPeer::AUTOPLAYLIST_ID)) $criteria->add(CcShowPeer::AUTOPLAYLIST_ID, $this->autoplaylist_id);
if ($this->isColumnModified(CcShowPeer::AUTOPLAYLIST_REPEAT)) $criteria->add(CcShowPeer::AUTOPLAYLIST_REPEAT, $this->autoplaylist_repeat);
if ($this->isColumnModified(CcShowPeer::OVERRIDE_INTRO_PLAYLIST)) $criteria->add(CcShowPeer::OVERRIDE_INTRO_PLAYLIST, $this->override_intro_playlist);
if ($this->isColumnModified(CcShowPeer::INTRO_PLAYLIST_ID)) $criteria->add(CcShowPeer::INTRO_PLAYLIST_ID, $this->intro_playlist_id);
if ($this->isColumnModified(CcShowPeer::OVERRIDE_OUTRO_PLAYLIST)) $criteria->add(CcShowPeer::OVERRIDE_OUTRO_PLAYLIST, $this->override_outro_playlist);
if ($this->isColumnModified(CcShowPeer::OUTRO_PLAYLIST_ID)) $criteria->add(CcShowPeer::OUTRO_PLAYLIST_ID, $this->outro_playlist_id);
return $criteria;
}
@ -1888,6 +2128,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
$copyObj->setDbHasAutoPlaylist($this->getDbHasAutoPlaylist());
$copyObj->setDbAutoPlaylistId($this->getDbAutoPlaylistId());
$copyObj->setDbAutoPlaylistRepeat($this->getDbAutoPlaylistRepeat());
$copyObj->setDbOverrideIntroPlaylist($this->getDbOverrideIntroPlaylist());
$copyObj->setDbIntroPlaylistId($this->getDbIntroPlaylistId());
$copyObj->setDbOverrideOutroPlaylist($this->getDbOverrideOutroPlaylist());
$copyObj->setDbOutroPlaylistId($this->getDbOutroPlaylistId());
if ($deepCopy && !$this->startCopy) {
// important: temporarily setNew(false) because this affects the behavior of
@ -3044,6 +3288,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
$this->has_autoplaylist = null;
$this->autoplaylist_id = null;
$this->autoplaylist_repeat = null;
$this->override_intro_playlist = null;
$this->intro_playlist_id = null;
$this->override_outro_playlist = null;
$this->outro_playlist_id = null;
$this->alreadyInSave = false;
$this->alreadyInValidation = false;
$this->alreadyInClearAllReferencesDeep = false;

View File

@ -24,13 +24,13 @@ abstract class BaseCcShowPeer
const TM_CLASS = 'CcShowTableMap';
/** The total number of columns. */
const NUM_COLUMNS = 17;
const NUM_COLUMNS = 21;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
/** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */
const NUM_HYDRATE_COLUMNS = 17;
const NUM_HYDRATE_COLUMNS = 21;
/** the column name for the id field */
const ID = 'cc_show.id';
@ -83,6 +83,18 @@ abstract class BaseCcShowPeer
/** the column name for the autoplaylist_repeat field */
const AUTOPLAYLIST_REPEAT = 'cc_show.autoplaylist_repeat';
/** the column name for the override_intro_playlist field */
const OVERRIDE_INTRO_PLAYLIST = 'cc_show.override_intro_playlist';
/** the column name for the intro_playlist_id field */
const INTRO_PLAYLIST_ID = 'cc_show.intro_playlist_id';
/** the column name for the override_outro_playlist field */
const OVERRIDE_OUTRO_PLAYLIST = 'cc_show.override_outro_playlist';
/** the column name for the outro_playlist_id field */
const OUTRO_PLAYLIST_ID = 'cc_show.outro_playlist_id';
/** The default string format for model objects of the related table **/
const DEFAULT_STRING_FORMAT = 'YAML';
@ -102,12 +114,12 @@ abstract class BaseCcShowPeer
* e.g. CcShowPeer::$fieldNames[CcShowPeer::TYPE_PHPNAME][0] = 'Id'
*/
protected static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbUrl', 'DbGenre', 'DbDescription', 'DbColor', 'DbBackgroundColor', 'DbLiveStreamUsingAirtimeAuth', 'DbLiveStreamUsingCustomAuth', 'DbLiveStreamUser', 'DbLiveStreamPass', 'DbLinked', 'DbIsLinkable', 'DbImagePath', 'DbHasAutoPlaylist', 'DbAutoPlaylistId', 'DbAutoPlaylistRepeat', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbUrl', 'dbGenre', 'dbDescription', 'dbColor', 'dbBackgroundColor', 'dbLiveStreamUsingAirtimeAuth', 'dbLiveStreamUsingCustomAuth', 'dbLiveStreamUser', 'dbLiveStreamPass', 'dbLinked', 'dbIsLinkable', 'dbImagePath', 'dbHasAutoPlaylist', 'dbAutoPlaylistId', 'dbAutoPlaylistRepeat', ),
BasePeer::TYPE_COLNAME => array (CcShowPeer::ID, CcShowPeer::NAME, CcShowPeer::URL, CcShowPeer::GENRE, CcShowPeer::DESCRIPTION, CcShowPeer::COLOR, CcShowPeer::BACKGROUND_COLOR, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, CcShowPeer::LIVE_STREAM_USER, CcShowPeer::LIVE_STREAM_PASS, CcShowPeer::LINKED, CcShowPeer::IS_LINKABLE, CcShowPeer::IMAGE_PATH, CcShowPeer::HAS_AUTOPLAYLIST, CcShowPeer::AUTOPLAYLIST_ID, CcShowPeer::AUTOPLAYLIST_REPEAT, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'URL', 'GENRE', 'DESCRIPTION', 'COLOR', 'BACKGROUND_COLOR', 'LIVE_STREAM_USING_AIRTIME_AUTH', 'LIVE_STREAM_USING_CUSTOM_AUTH', 'LIVE_STREAM_USER', 'LIVE_STREAM_PASS', 'LINKED', 'IS_LINKABLE', 'IMAGE_PATH', 'HAS_AUTOPLAYLIST', 'AUTOPLAYLIST_ID', 'AUTOPLAYLIST_REPEAT', ),
BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'url', 'genre', 'description', 'color', 'background_color', 'live_stream_using_airtime_auth', 'live_stream_using_custom_auth', 'live_stream_user', 'live_stream_pass', 'linked', 'is_linkable', 'image_path', 'has_autoplaylist', 'autoplaylist_id', 'autoplaylist_repeat', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, )
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbUrl', 'DbGenre', 'DbDescription', 'DbColor', 'DbBackgroundColor', 'DbLiveStreamUsingAirtimeAuth', 'DbLiveStreamUsingCustomAuth', 'DbLiveStreamUser', 'DbLiveStreamPass', 'DbLinked', 'DbIsLinkable', 'DbImagePath', 'DbHasAutoPlaylist', 'DbAutoPlaylistId', 'DbAutoPlaylistRepeat', 'DbOverrideIntroPlaylist', 'DbIntroPlaylistId', 'DbOverrideOutroPlaylist', 'DbOutroPlaylistId',),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbUrl', 'dbGenre', 'dbDescription', 'dbColor', 'dbBackgroundColor', 'dbLiveStreamUsingAirtimeAuth', 'dbLiveStreamUsingCustomAuth', 'dbLiveStreamUser', 'dbLiveStreamPass', 'dbLinked', 'dbIsLinkable', 'dbImagePath', 'dbHasAutoPlaylist', 'dbAutoPlaylistId', 'dbAutoPlaylistRepeat', 'dbOverrideIntroPlaylist', 'dbIntroPlaylistId', 'dbOverrideOutroPlaylist', 'dbOutroPlaylistId',),
BasePeer::TYPE_COLNAME => array (CcShowPeer::ID, CcShowPeer::NAME, CcShowPeer::URL, CcShowPeer::GENRE, CcShowPeer::DESCRIPTION, CcShowPeer::COLOR, CcShowPeer::BACKGROUND_COLOR, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, CcShowPeer::LIVE_STREAM_USER, CcShowPeer::LIVE_STREAM_PASS, CcShowPeer::LINKED, CcShowPeer::IS_LINKABLE, CcShowPeer::IMAGE_PATH, CcShowPeer::HAS_AUTOPLAYLIST, CcShowPeer::AUTOPLAYLIST_ID, CcShowPeer::AUTOPLAYLIST_REPEAT, CCShowPeer::OVERRIDE_INTRO_PLAYLIST, CCShowPeer::INTRO_PLAYLIST_ID, CCShowPeer::OVERRIDE_OUTRO_PLAYLIST, CCShowPeer::OUTRO_PLAYLIST_ID, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'URL', 'GENRE', 'DESCRIPTION', 'COLOR', 'BACKGROUND_COLOR', 'LIVE_STREAM_USING_AIRTIME_AUTH', 'LIVE_STREAM_USING_CUSTOM_AUTH', 'LIVE_STREAM_USER', 'LIVE_STREAM_PASS', 'LINKED', 'IS_LINKABLE', 'IMAGE_PATH', 'HAS_AUTOPLAYLIST', 'AUTOPLAYLIST_ID', 'AUTOPLAYLIST_REPEAT', 'OVERRIDE_INTRO_PLAYLIST', 'INTRO_PLAYLIST_ID', 'OVERRIDE_OUTRO_PLAYLIST', 'OUTRO_PLAYLIST_ID',),
BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'url', 'genre', 'description', 'color', 'background_color', 'live_stream_using_airtime_auth', 'live_stream_using_custom_auth', 'live_stream_user', 'live_stream_pass', 'linked', 'is_linkable', 'image_path', 'has_autoplaylist', 'autoplaylist_id', 'autoplaylist_repeat', 'override_intro_playlist', 'intro_playlist_id', 'override_outro_playlist', 'outro_playlist_id',),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, )
);
/**
@ -117,12 +129,12 @@ abstract class BaseCcShowPeer
* e.g. CcShowPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
protected static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbUrl' => 2, 'DbGenre' => 3, 'DbDescription' => 4, 'DbColor' => 5, 'DbBackgroundColor' => 6, 'DbLiveStreamUsingAirtimeAuth' => 7, 'DbLiveStreamUsingCustomAuth' => 8, 'DbLiveStreamUser' => 9, 'DbLiveStreamPass' => 10, 'DbLinked' => 11, 'DbIsLinkable' => 12, 'DbImagePath' => 13, 'DbHasAutoPlaylist' => 14, 'DbAutoPlaylistId' => 15, 'DbAutoPlaylistRepeat' => 16, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbUrl' => 2, 'dbGenre' => 3, 'dbDescription' => 4, 'dbColor' => 5, 'dbBackgroundColor' => 6, 'dbLiveStreamUsingAirtimeAuth' => 7, 'dbLiveStreamUsingCustomAuth' => 8, 'dbLiveStreamUser' => 9, 'dbLiveStreamPass' => 10, 'dbLinked' => 11, 'dbIsLinkable' => 12, 'dbImagePath' => 13, 'dbHasAutoPlaylist' => 14, 'dbAutoPlaylistId' => 15, 'dbAutoPlaylistRepeat' => 16, ),
BasePeer::TYPE_COLNAME => array (CcShowPeer::ID => 0, CcShowPeer::NAME => 1, CcShowPeer::URL => 2, CcShowPeer::GENRE => 3, CcShowPeer::DESCRIPTION => 4, CcShowPeer::COLOR => 5, CcShowPeer::BACKGROUND_COLOR => 6, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH => 7, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH => 8, CcShowPeer::LIVE_STREAM_USER => 9, CcShowPeer::LIVE_STREAM_PASS => 10, CcShowPeer::LINKED => 11, CcShowPeer::IS_LINKABLE => 12, CcShowPeer::IMAGE_PATH => 13, CcShowPeer::HAS_AUTOPLAYLIST => 14, CcShowPeer::AUTOPLAYLIST_ID => 15, CcShowPeer::AUTOPLAYLIST_REPEAT => 16, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'URL' => 2, 'GENRE' => 3, 'DESCRIPTION' => 4, 'COLOR' => 5, 'BACKGROUND_COLOR' => 6, 'LIVE_STREAM_USING_AIRTIME_AUTH' => 7, 'LIVE_STREAM_USING_CUSTOM_AUTH' => 8, 'LIVE_STREAM_USER' => 9, 'LIVE_STREAM_PASS' => 10, 'LINKED' => 11, 'IS_LINKABLE' => 12, 'IMAGE_PATH' => 13, 'HAS_AUTOPLAYLIST' => 14, 'AUTOPLAYLIST_ID' => 15, 'AUTOPLAYLIST_REPEAT' => 16, ),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'url' => 2, 'genre' => 3, 'description' => 4, 'color' => 5, 'background_color' => 6, 'live_stream_using_airtime_auth' => 7, 'live_stream_using_custom_auth' => 8, 'live_stream_user' => 9, 'live_stream_pass' => 10, 'linked' => 11, 'is_linkable' => 12, 'image_path' => 13, 'has_autoplaylist' => 14, 'autoplaylist_id' => 15, 'autoplaylist_repeat' => 16, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, )
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbUrl' => 2, 'DbGenre' => 3, 'DbDescription' => 4, 'DbColor' => 5, 'DbBackgroundColor' => 6, 'DbLiveStreamUsingAirtimeAuth' => 7, 'DbLiveStreamUsingCustomAuth' => 8, 'DbLiveStreamUser' => 9, 'DbLiveStreamPass' => 10, 'DbLinked' => 11, 'DbIsLinkable' => 12, 'DbImagePath' => 13, 'DbHasAutoPlaylist' => 14, 'DbAutoPlaylistId' => 15, 'DbAutoPlaylistRepeat' => 16, 'DbOverrideIntroPlaylist' => 17, 'DbIntroPlaylistId' => 18, 'DbOverrideOutroPlaylist' => 19, 'DbOutroPlaylistId' => 20, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbUrl' => 2, 'dbGenre' => 3, 'dbDescription' => 4, 'dbColor' => 5, 'dbBackgroundColor' => 6, 'dbLiveStreamUsingAirtimeAuth' => 7, 'dbLiveStreamUsingCustomAuth' => 8, 'dbLiveStreamUser' => 9, 'dbLiveStreamPass' => 10, 'dbLinked' => 11, 'dbIsLinkable' => 12, 'dbImagePath' => 13, 'dbHasAutoPlaylist' => 14, 'dbAutoPlaylistId' => 15, 'dbAutoPlaylistRepeat' => 16, 'dbOverrideIntroPlaylist' => 17, 'dbIntroPlaylistId' => 18, 'dbOverrideOutroPlaylist' => 19, 'dbOutroPlaylistId' => 20, ),
BasePeer::TYPE_COLNAME => array (CcShowPeer::ID => 0, CcShowPeer::NAME => 1, CcShowPeer::URL => 2, CcShowPeer::GENRE => 3, CcShowPeer::DESCRIPTION => 4, CcShowPeer::COLOR => 5, CcShowPeer::BACKGROUND_COLOR => 6, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH => 7, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH => 8, CcShowPeer::LIVE_STREAM_USER => 9, CcShowPeer::LIVE_STREAM_PASS => 10, CcShowPeer::LINKED => 11, CcShowPeer::IS_LINKABLE => 12, CcShowPeer::IMAGE_PATH => 13, CcShowPeer::HAS_AUTOPLAYLIST => 14, CcShowPeer::AUTOPLAYLIST_ID => 15, CcShowPeer::AUTOPLAYLIST_REPEAT => 16, CcShowPeer::OVERRIDE_INTRO_PLAYLIST => 17, CcShowPeer::INTRO_PLAYLIST_ID => 18, CcShowPeer::OVERRIDE_OUTRO_PLAYLIST => 19, CcShowPeer::OUTRO_PLAYLIST_ID => 20, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'URL' => 2, 'GENRE' => 3, 'DESCRIPTION' => 4, 'COLOR' => 5, 'BACKGROUND_COLOR' => 6, 'LIVE_STREAM_USING_AIRTIME_AUTH' => 7, 'LIVE_STREAM_USING_CUSTOM_AUTH' => 8, 'LIVE_STREAM_USER' => 9, 'LIVE_STREAM_PASS' => 10, 'LINKED' => 11, 'IS_LINKABLE' => 12, 'IMAGE_PATH' => 13, 'HAS_AUTOPLAYLIST' => 14, 'AUTOPLAYLIST_ID' => 15, 'AUTOPLAYLIST_REPEAT' => 16, 'OVERRIDE_INTRO_PLAYLIST' => 17, 'INTRO_PLAYLIST_ID' => 18, 'OVERRIDE_OUTRO_PLAYLIST' => 19, 'OUTRO_PLAYLIST_ID' => 20,),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'url' => 2, 'genre' => 3, 'description' => 4, 'color' => 5, 'background_color' => 6, 'live_stream_using_airtime_auth' => 7, 'live_stream_using_custom_auth' => 8, 'live_stream_user' => 9, 'live_stream_pass' => 10, 'linked' => 11, 'is_linkable' => 12, 'image_path' => 13, 'has_autoplaylist' => 14, 'autoplaylist_id' => 15, 'autoplaylist_repeat' => 16, 'override_intro_playlist' => 17, 'intro_playlist_id' => 18, 'override_outro_playlist' => 19, 'outro_playlist_id' => 20,),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, )
);
/**
@ -213,6 +225,10 @@ abstract class BaseCcShowPeer
$criteria->addSelectColumn(CcShowPeer::HAS_AUTOPLAYLIST);
$criteria->addSelectColumn(CcShowPeer::AUTOPLAYLIST_ID);
$criteria->addSelectColumn(CcShowPeer::AUTOPLAYLIST_REPEAT);
$criteria->addSelectColumn(CcShowPeer::OVERRIDE_INTRO_PLAYLIST);
$criteria->addSelectColumn(CcShowPeer::INTRO_PLAYLIST_ID);
$criteria->addSelectColumn(CcShowPeer::OVERRIDE_OUTRO_PLAYLIST);
$criteria->addSelectColumn(CcShowPeer::OUTRO_PLAYLIST_ID);
} else {
$criteria->addSelectColumn($alias . '.id');
$criteria->addSelectColumn($alias . '.name');
@ -231,6 +247,10 @@ abstract class BaseCcShowPeer
$criteria->addSelectColumn($alias . '.has_autoplaylist');
$criteria->addSelectColumn($alias . '.autoplaylist_id');
$criteria->addSelectColumn($alias . '.autoplaylist_repeat');
$criteria->addSelectColumn($alias . '.override_intro_playlist');
$criteria->addSelectColumn($alias . '.intro_playlist_id');
$criteria->addSelectColumn($alias . '.override_outro_playlist');
$criteria->addSelectColumn($alias . '.outro_playlist_id');
}
}
@ -581,6 +601,8 @@ abstract class BaseCcShowPeer
}
$criteria->addJoin(CcShowPeer::AUTOPLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$criteria->addJoin(CcShowPeer::INTRO_PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$criteria->addJoin(CcShowPeer::OUTRO_PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$stmt = BasePeer::doCount($criteria, $con);
@ -618,6 +640,8 @@ abstract class BaseCcShowPeer
CcPlaylistPeer::addSelectColumns($criteria);
$criteria->addJoin(CcShowPeer::AUTOPLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$criteria->addJoin(CcShowPeer::INTRO_PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$criteria->addJoin(CcShowPeer::OUTRO_PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$stmt = BasePeer::doSelect($criteria, $con);
$results = array();
@ -699,6 +723,8 @@ abstract class BaseCcShowPeer
}
$criteria->addJoin(CcShowPeer::AUTOPLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$criteria->addJoin(CcShowPeer::INTRO_PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$criteria->addJoin(CcShowPeer::OUTRO_PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$stmt = BasePeer::doCount($criteria, $con);
@ -738,6 +764,8 @@ abstract class BaseCcShowPeer
$startcol3 = $startcol2 + CcPlaylistPeer::NUM_HYDRATE_COLUMNS;
$criteria->addJoin(CcShowPeer::AUTOPLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$criteria->addJoin(CcShowPeer::INTRO_PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$criteria->addJoin(CcShowPeer::OUTRO_PLAYLIST_ID, CcPlaylistPeer::ID, $join_behavior);
$stmt = BasePeer::doSelect($criteria, $con);
$results = array();

View File

@ -23,6 +23,10 @@
* @method CcShowQuery orderByDbHasAutoPlaylist($order = Criteria::ASC) Order by the has_autoplaylist column
* @method CcShowQuery orderByDbAutoPlaylistId($order = Criteria::ASC) Order by the autoplaylist_id column
* @method CcShowQuery orderByDbAutoPlaylistRepeat($order = Criteria::ASC) Order by the autoplaylist_repeat column
* @method CcShowQuery orderByDbOverrideIntroPlaylist($order = Criteria::ASC) Order by the override_intro_playlist column
* @method CcShowQuery orderByDbIntroPlaylistId($order = Criteria::ASC) Order by the intro_playlist_id column
* @method CcShowQuery orderByDbOverrideOutroPlaylist($order = Criteria::ASC) Order by the override_outro_playlist column
* @method CcShowQuery orderByDbOutroPlaylistId($order = Criteria::ASC) Order by the outro_playlist_id column
*
* @method CcShowQuery groupByDbId() Group by the id column
* @method CcShowQuery groupByDbName() Group by the name column
@ -41,6 +45,10 @@
* @method CcShowQuery groupByDbHasAutoPlaylist() Group by the has_autoplaylist column
* @method CcShowQuery groupByDbAutoPlaylistId() Group by the autoplaylist_id column
* @method CcShowQuery groupByDbAutoPlaylistRepeat() Group by the autoplaylist_repeat column
* @method CcShowQuery groupByDbOverrideIntroPlaylist() Group by the override_intro_playlist column
* @method CcShowQuery groupByDbIntroPlaylistId() Group by the intro_playlist_id column
* @method CcShowQuery groupByDbOverrideOutroPlaylist() Group by the override_outro_playlist column
* @method CcShowQuery groupByDbOutroPlaylistId() Group by the outro_playlist_id column
*
* @method CcShowQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
* @method CcShowQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
@ -85,6 +93,10 @@
* @method CcShow findOneByDbHasAutoPlaylist(boolean $has_autoplaylist) Return the first CcShow filtered by the has_autoplaylist column
* @method CcShow findOneByDbAutoPlaylistId(int $autoplaylist_id) Return the first CcShow filtered by the autoplaylist_id column
* @method CcShow findOneByDbAutoPlaylistRepeat(boolean $autoplaylist_repeat) Return the first CcShow filtered by the autoplaylist_repeat column
* @method CcShow findOneByDbOverrideIntroPlaylist(boolean $override_intro_playlist) Return the first CcShow filtered by the override_intro_playlist column
* @method CcShow findOneByDbIntroPlaylistId(int $intro_playlist_id) Return the first CcShow filtered by the intro_playlist_id column
* @method CcShow findOneByDbOverrideOutroPlaylist(boolean $override_outro_playlist) Return the first CcShow filtered by the override_outro_playlist column
* @method CcShow findOneByDbOutroPlaylistId(int $outro_playlist_id) Return the first CcShow filtered by the outro_playlist_id column
*
* @method array findByDbId(int $id) Return CcShow objects filtered by the id column
* @method array findByDbName(string $name) Return CcShow objects filtered by the name column
@ -103,6 +115,10 @@
* @method array findByDbHasAutoPlaylist(boolean $has_autoplaylist) Return CcShow objects filtered by the has_autoplaylist column
* @method array findByDbAutoPlaylistId(int $autoplaylist_id) Return CcShow objects filtered by the autoplaylist_id column
* @method array findByDbAutoPlaylistRepeat(boolean $autoplaylist_repeat) Return CcShow objects filtered by the autoplaylist_repeat column
* @method array findByDbOverrideIntroPlaylist(boolean $override_intro_playlist) Return CcShow objects filtered by the override_intro_playlist column
* @method array findByDbIntroPlaylistId(int $intro_playlist_id) Return CcShow objects filtered by the intro_playlist_id column
* @method array findByDbOverrideOutroPlaylist(boolean $override_outro_playlist) Return CcShow objects filtered by the override_outro_playlist column
* @method array findByDbOutroPlaylistId(int $outro_playlist_id) Return CcShow objects filtered by the outro_playlist_id column
*
* @package propel.generator.airtime.om
*/
@ -210,7 +226,7 @@ abstract class BaseCcShowQuery extends ModelCriteria
*/
protected function findPkSimple($key, $con)
{
$sql = 'SELECT "id", "name", "url", "genre", "description", "color", "background_color", "live_stream_using_airtime_auth", "live_stream_using_custom_auth", "live_stream_user", "live_stream_pass", "linked", "is_linkable", "image_path", "has_autoplaylist", "autoplaylist_id", "autoplaylist_repeat" FROM "cc_show" WHERE "id" = :p0';
$sql = 'SELECT "id", "name", "url", "genre", "description", "color", "background_color", "live_stream_using_airtime_auth", "live_stream_using_custom_auth", "live_stream_user", "live_stream_pass", "linked", "is_linkable", "image_path", "has_autoplaylist", "autoplaylist_id", "autoplaylist_repeat", "override_intro_playlist", "intro_playlist_id", "override_outro_playlist", "outro_playlist_id" FROM "cc_show" WHERE "id" = :p0';
try {
$stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
@ -808,6 +824,148 @@ abstract class BaseCcShowQuery extends ModelCriteria
return $this->addUsingAlias(CcShowPeer::AUTOPLAYLIST_REPEAT, $dbAutoPlaylistRepeat, $comparison);
}
/**
* Filter the query on the override_intro_playlist column
*
* Example usage:
* <code>
* $query->filterByDbOverrideIntroPlaylist(true); // WHERE override_intro_playlist = true
* $query->filterByDbOverrideIntroPlaylist('yes'); // WHERE override_intro_playlist = true
* </code>
*
* @param boolean|string $dbOverrideIntroPlaylist The value to use as filter.
* Non-boolean arguments are converted using the following rules:
* * 1, '1', 'true', 'on', and 'yes' are converted to boolean true
* * 0, '0', 'false', 'off', and 'no' are converted to boolean false
* Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcShowQuery The current query, for fluid interface
*/
public function filterByDbOverrideIntroPlaylist($dbOverrideIntroPlaylist = null, $comparison = null)
{
if (is_string($dbOverrideIntroPlaylist)) {
$dbOverrideIntroPlaylist = in_array(strtolower($dbOverrideIntroPlaylist), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
}
return $this->addUsingAlias(CcShowPeer::OVERRIDE_INTRO_PLAYLIST, $dbOverrideIntroPlaylist, $comparison);
}
/**
* Filter the query on the intro_playlist_id column
*
* Example usage:
* <code>
* $query->filterByDbIntroPlaylistId(1234); // WHERE intro_playlist_id = 1234
* $query->filterByDbIntroPlaylistId(array(12, 34)); // WHERE intro_playlist_id IN (12, 34)
* $query->filterByDbIntroPlaylistId(array('min' => 12)); // WHERE intro_playlist_id >= 12
* $query->filterByDbIntroPlaylistId(array('max' => 12)); // WHERE intro_playlist_id <= 12
* </code>
*
* @see filterByCcPlaylist()
*
* @param mixed $dbIntroPlaylistId The value to use as filter.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcShowQuery The current query, for fluid interface
*/
public function filterByDbIntroPlaylistId($dbIntroPlaylistId = null, $comparison = null)
{
if (is_array($dbIntroPlaylistId)) {
$useMinMax = false;
if (isset($dbIntroPlaylistId['min'])) {
$this->addUsingAlias(CcShowPeer::INTRO_PLAYLIST_ID, $dbIntroPlaylistId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbIntroPlaylistId['max'])) {
$this->addUsingAlias(CcShowPeer::INTRO_PLAYLIST_ID, $dbIntroPlaylistId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcShowPeer::INTRO_PLAYLIST_ID, $dbIntroPlaylistId, $comparison);
}
/**
* Filter the query on the override_outro_playlist column
*
* Example usage:
* <code>
* $query->filterByDbOverrideOutroPlaylist(true); // WHERE override_outro_playlist = true
* $query->filterByDbOverrideOutroPlaylist('yes'); // WHERE override_outro_playlist = true
* </code>
*
* @param boolean|string $dbOverrideOutroPlaylist The value to use as filter.
* Non-boolean arguments are converted using the following rules:
* * 1, '1', 'true', 'on', and 'yes' are converted to boolean true
* * 0, '0', 'false', 'off', and 'no' are converted to boolean false
* Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcShowQuery The current query, for fluid interface
*/
public function filterByDbOverrideOutroPlaylist($dbOverrideOutroPlaylist = null, $comparison = null)
{
if (is_string($dbOverrideOutroPlaylist)) {
$dbOverrideOutroPlaylist = in_array(strtolower($dbOverrideOutroPlaylist), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
}
return $this->addUsingAlias(CcShowPeer::OVERRIDE_OUTRO_PLAYLIST, $dbOverrideOutroPlaylist, $comparison);
}
/**
* Filter the query on the outro_playlist_id column
*
* Example usage:
* <code>
* $query->filterByDbOutroPlaylistId(1234); // WHERE outro_playlist_id = 1234
* $query->filterByDbOutroPlaylistId(array(12, 34)); // WHERE outro_playlist_id IN (12, 34)
* $query->filterByDbOutroPlaylistId(array('min' => 12)); // WHERE outro_playlist_id >= 12
* $query->filterByDbOutroPlaylistId(array('max' => 12)); // WHERE outro_playlist_id <= 12
* </code>
*
* @see filterByCcPlaylist()
*
* @param mixed $dbOutroPlaylistId The value to use as filter.
* Use scalar values for equality.
* Use array values for in_array() equivalent.
* Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcShowQuery The current query, for fluid interface
*/
public function filterByDbOutroPlaylistId($dbOutroPlaylistId = null, $comparison = null)
{
if (is_array($dbOutroPlaylistId)) {
$useMinMax = false;
if (isset($dbOutroPlaylistId['min'])) {
$this->addUsingAlias(CcShowPeer::OUTRO_PLAYLIST_ID, $dbOutroPlaylistId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbOutroPlaylistId['max'])) {
$this->addUsingAlias(CcShowPeer::OUTRO_PLAYLIST_ID, $dbOutroPlaylistId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcShowPeer::OUTRO_PLAYLIST_ID, $dbOutroPlaylistId, $comparison);
}
/**
* Filter the query by a related CcPlaylist object
*

View File

@ -164,6 +164,10 @@ class Application_Service_ShowFormService
'add_show_has_autoplaylist' => $this->ccShow->getDbHasAutoPlaylist() ? 1 : 0,
'add_show_autoplaylist_id' => $this->ccShow->getDbAutoPlaylistId(),
'add_show_autoplaylist_repeat' => $this->ccShow->getDbAutoPlaylistRepeat(),
'add_show_override_intro_playlist' => $this->ccShow->getDbOverrideIntroPlaylist() ? 1 : 0,
'add_show_intro_playlist_id' => $this->ccShow->getDbIntroPlaylistId(),
'add_show_override_outro_playlist' => $this->ccShow->getDbOverrideOutroPlaylist() ? 1 : 0,
'add_show_outro_playlist_id' => $this->ccShow->getDbOutroPlaylistId(),
]
);
}

View File

@ -1667,6 +1667,14 @@ SQL;
if ($showData['add_show_autoplaylist_id'] != '') {
$ccShow->setDbAutoPlaylistId($showData['add_show_autoplaylist_id']);
}
$ccShow->setDbOverrideIntroPlaylist($showData['add_show_override_intro_playlist'] == 1);
$ccShow->setDbOverrideOutroPlaylist($showData['add_show_override_outro_playlist'] == 1);
if ($showData['add_show_intro_playlist_id'] != '') {
$ccShow->setDbIntroPlaylistId($showData['add_show_intro_playlist_id']);
}
if ($showData['add_show_outro_playlist_id'] != '') {
$ccShow->setDbOutroPlaylistId($showData['add_show_outro_playlist_id']);
}
// Here a user has edited a show and linked it.
// We need to grab the existing show instances ids and fill their content

View File

@ -19,6 +19,7 @@
</dt>
<dd>
<?php echo $this->element->getElement('add_show_autoplaylist_id') ?>
</dd>
</div>
<div id="add_show_autoplaylist_repeat">
<dt id="add_show_autoplaylist_repeat_label">
@ -30,7 +31,42 @@
<?php echo $this->element->getElement('add_show_autoplaylist_repeat') ?>
</dd>
</div>
<hr/>
<dt id="add_show_override_intro_playlist_label">
<label for="add_show_override_intro_playlist_label">
<?php echo $this->element->getElement('add_show_override_intro_playlist')->getLabel() ?>
</label>
</dt>
<dd>
<?php echo $this->element->getElement('add_show_override_intro_playlist') ?>
</dd>
<div id="add_show_override_intro_playlist_dropdown">
<dt id="add_show_intro_playlist_id">
<label for="add_show_intro_playlist_id" class="required">
<?php echo $this->element->getElement('add_show_intro_playlist_id')->getLabel() ?>
</label>
</dt>
<dd>
<?php echo $this->element->getElement('add_show_intro_playlist_id') ?>
</dd>
</div>
<dt id="add_show_override_outro_playlist_label">
<label for="add_show_override_outro_playlist_label">
<?php echo $this->element->getElement('add_show_override_outro_playlist')->getLabel() ?>
</label>
</dt>
<dd>
<?php echo $this->element->getElement('add_show_override_outro_playlist') ?>
</dd>
<div id="add_show_override_outro_playlist_dropdown">
<dt id="add_show_outro_playlist_id">
<label for="add_show_outro_playlist_id" class="required">
<?php echo $this->element->getElement('add_show_outro_playlist_id')->getLabel() ?>
</label>
</dt>
<dd>
<?php echo $this->element->getElement('add_show_outro_playlist_id') ?>
</dd>
</div>
</dl>
</fieldset>

View File

@ -294,6 +294,18 @@ function setAddShowEvents(form) {
$("#add_show_playlist_dropdown").show();
}
if (!form.find("#add_show_override_intro_playlist").attr("checked")) {
form.find("#add_show_override_intro_playlist_dropdown").hide();
} else {
$("#add_show_override_intro_playlist_dropdown").show();
}
if (!form.find("#add_show_override_outro_playlist").attr("checked")) {
form.find("#add_show_override_outro_playlist_dropdown").hide();
} else {
$("#add_show_override_outro_playlist_dropdown").show();
}
if (!form.find("#add_show_repeats").attr("checked")) {
form.find("#schedule-show-when > fieldset:last").hide();
$("#add_show_rebroadcast_relative").hide();
@ -328,6 +340,16 @@ function setAddShowEvents(form) {
form.find("#add_show_autoplaylist_repeat").toggle();
});
form.find("#add_show_override_intro_playlist").click(function () {
$(this).blur();
form.find("#add_show_override_intro_playlist_dropdown").toggle();
});
form.find("#add_show_override_outro_playlist").click(function () {
$(this).blur();
form.find("#add_show_override_outro_playlist_dropdown").toggle();
});
form.find("#add_show_repeats").click(function () {
$(this).blur();
form.find("#schedule-show-when > fieldset:last").toggle();

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2014-01-05"

View File

@ -77,6 +77,10 @@ class ShowServiceDbTest extends Zend_Test_PHPUnit_DatabaseTestCase
'add_show_has_autoplaylist' => 0,
'add_show_autoplaylist_id' => null,
'add_show_autoplaylist_repeat' => 0,
'add_show_override_intro_playlist' => 0,
'add_show_intro_playlist_id' => null,
'add_show_override_outro_playlist' => 0,
'add_show_outro_playlist_id' => null,
];
$showService->setCcShow($data);

View File

@ -16,3 +16,7 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "2"
first_show: "2044-01-30"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "2"
first_show: "2044-01-30"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "1"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "2"
first_show: "2044-01-01"

View File

@ -16,6 +16,10 @@ cc_show:
has_autoplaylist: false
autoplaylist_id: null
autoplaylist_repeat: false
override_intro_playlist: false
intro_playlist_id: null
override_outro_playlist: false
outro_playlist_id: null
cc_show_days:
- id: "2"
first_show: "2044-01-01"

View File

@ -21,6 +21,10 @@ class ShowServiceData
'add_show_has_autoplaylist' => false,
'add_show_autoplaylist_repeat' => false,
'add_show_autoplaylist_id' => null,
'add_show_override_intro_playlist' => false,
'add_show_intro_playlist_id' => null,
'add_show_override_outro_playlist' => false,
'add_show_outro_playlist_id' => null,
'add_show_repeats' => 0,
'add_show_linked' => 0,
'add_show_repeat_type' => 0,
@ -99,6 +103,10 @@ class ShowServiceData
'add_show_has_autoplaylist' => false,
'add_show_autoplaylist_repeat' => false,
'add_show_autoplaylist_id' => null,
'add_show_override_intro_playlist' => false,
'add_show_intro_playlist_id' => null,
'add_show_override_outro_playlist' => false,
'add_show_outro_playlist_id' => null,
'add_show_repeats' => 1,
'add_show_linked' => 0,
'add_show_repeat_type' => 0,
@ -177,6 +185,10 @@ class ShowServiceData
'add_show_has_autoplaylist' => false,
'add_show_autoplaylist_repeat' => false,
'add_show_autoplaylist_id' => null,
'add_show_override_intro_playlist' => false,
'add_show_intro_playlist_id' => null,
'add_show_override_outro_playlist' => false,
'add_show_outro_playlist_id' => null,
'add_show_repeats' => 1,
'add_show_linked' => 0,
'add_show_repeat_type' => 0,
@ -266,6 +278,10 @@ class ShowServiceData
'add_show_has_autoplaylist' => false,
'add_show_autoplaylist_repeat' => false,
'add_show_autoplaylist_id' => null,
'add_show_override_intro_playlist' => false,
'add_show_intro_playlist_id' => null,
'add_show_override_outro_playlist' => false,
'add_show_outro_playlist_id' => null,
'add_show_repeats' => 0,
'add_show_linked' => 0,
'add_show_no_end' => 0,
@ -295,6 +311,10 @@ class ShowServiceData
'add_show_has_autoplaylist' => false,
'add_show_autoplaylist_repeat' => false,
'add_show_autoplaylist_id' => null,
'add_show_override_intro_playlist' => false,
'add_show_intro_playlist_id' => null,
'add_show_override_outro_playlist' => false,
'add_show_outro_playlist_id' => null,
'add_show_repeats' => 1,
'add_show_linked' => 0,
'add_show_repeat_type' => 0,
@ -374,6 +394,10 @@ class ShowServiceData
'add_show_has_autoplaylist' => false,
'add_show_autoplaylist_repeat' => false,
'add_show_autoplaylist_id' => null,
'add_show_override_intro_playlist' => false,
'add_show_intro_playlist_id' => null,
'add_show_override_outro_playlist' => false,
'add_show_outro_playlist_id' => null,
'add_show_repeats' => 0,
'add_show_linked' => 0,
'add_show_repeat_type' => 0,
@ -452,6 +476,10 @@ class ShowServiceData
'add_show_has_autoplaylist' => false,
'add_show_autoplaylist_repeat' => false,
'add_show_autoplaylist_id' => null,
'add_show_override_intro_playlist' => false,
'add_show_intro_playlist_id' => null,
'add_show_override_outro_playlist' => false,
'add_show_outro_playlist_id' => null,
'add_show_repeats' => 1,
'add_show_linked' => 0,
'add_show_repeat_type' => 0,