CC-3224: "On-the-fly" stream rebroadcasting
- removed "Allow override" checkbox from show live stream section. - removed "auto enable live stream" checkbox from stream setting page. - implemented authentication functionality of live dj source connection.
This commit is contained in:
parent
efee025691
commit
540f262a77
14 changed files with 49 additions and 171 deletions
|
@ -1022,6 +1022,7 @@ class ApiController extends Zend_Controller_Action
|
||||||
}elseif($djtype == "dj"){
|
}elseif($djtype == "dj"){
|
||||||
//check against show dj auth
|
//check against show dj auth
|
||||||
$showInfo = Application_Model_Show::GetCurrentShow();
|
$showInfo = Application_Model_Show::GetCurrentShow();
|
||||||
|
// there is current playing show
|
||||||
if(isset($showInfo[0]['id'])){
|
if(isset($showInfo[0]['id'])){
|
||||||
$current_show_id = $showInfo[0]['id'];
|
$current_show_id = $showInfo[0]['id'];
|
||||||
$CcShow = CcShowQuery::create()->findPK($current_show_id);
|
$CcShow = CcShowQuery::create()->findPK($current_show_id);
|
||||||
|
@ -1035,21 +1036,28 @@ class ApiController extends Zend_Controller_Action
|
||||||
$hosts_ids = $show->getHostsIds();
|
$hosts_ids = $show->getHostsIds();
|
||||||
|
|
||||||
// check against hosts auth
|
// check against hosts auth
|
||||||
foreach( $hosts_ids as $host){
|
if($CcShow->getDbLiveStreamUsingAirtimeAuth()){
|
||||||
$h = new Application_Model_User($host['subjs_id']);
|
foreach( $hosts_ids as $host){
|
||||||
if($username == $h->getLogin() && md5($password) == $h->getPassword()){
|
$h = new Application_Model_User($host['subjs_id']);
|
||||||
$this->view->msg = true;
|
if($username == $h->getLogin() && md5($password) == $h->getPassword()){
|
||||||
return;
|
$this->view->msg = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check against custom auth
|
// check against custom auth
|
||||||
if($username == $custom_user && $password == $custom_pass){
|
if($CcShow->getDbLiveStreamUsingCustomAuth()){
|
||||||
$this->view->msg = true;
|
if($username == $custom_user && $password == $custom_pass){
|
||||||
}else{
|
$this->view->msg = true;
|
||||||
|
}else{
|
||||||
|
$this->view->msg = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
$this->view->msg = false;
|
$this->view->msg = false;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
// no show is currently playing
|
||||||
$this->view->msg = false;
|
$this->view->msg = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,7 +208,6 @@ class PreferenceController extends Zend_Controller_Action
|
||||||
|
|
||||||
// this goes into cc_pref table
|
// this goes into cc_pref table
|
||||||
Application_Model_Preference::SetStreamLabelFormat($values['streamFormat']);
|
Application_Model_Preference::SetStreamLabelFormat($values['streamFormat']);
|
||||||
Application_Model_Preference::SetLiveSteamAutoEnable($values["auto_enable_live_stream"]);
|
|
||||||
Application_Model_Preference::SetLiveSteamMasterUsername($values["master_username"]);
|
Application_Model_Preference::SetLiveSteamMasterUsername($values["master_username"]);
|
||||||
Application_Model_Preference::SetLiveSteamMasterPassword($values["master_password"]);
|
Application_Model_Preference::SetLiveSteamMasterPassword($values["master_password"]);
|
||||||
|
|
||||||
|
|
|
@ -6,12 +6,6 @@ class Application_Form_AddShowLiveStream extends Zend_Form_SubForm
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$allow_live_stream = new Zend_Form_Element_Checkbox("allow_live_stream_override");
|
|
||||||
$allow_live_stream->setLabel("Allow Live Stream Override")
|
|
||||||
->setRequired(false)
|
|
||||||
->setDecorators(array('ViewHelper'));
|
|
||||||
$this->addElement($allow_live_stream);
|
|
||||||
|
|
||||||
$description1 = "This follows the same security pattern for the shows: if no users are explicitly set for the show, then anyone with a valid airtime login can connect to the stream, otherwise if there are users assigned to the show, then only those users can connect.";
|
$description1 = "This follows the same security pattern for the shows: if no users are explicitly set for the show, then anyone with a valid airtime login can connect to the stream, otherwise if there are users assigned to the show, then only those users can connect.";
|
||||||
$cb_airtime_auth = new Zend_Form_Element_Checkbox("cb_airtime_auth");
|
$cb_airtime_auth = new Zend_Form_Element_Checkbox("cb_airtime_auth");
|
||||||
$cb_airtime_auth->setLabel("Connect using Airtime username & password")
|
$cb_airtime_auth->setLabel("Connect using Airtime username & password")
|
||||||
|
|
|
@ -9,14 +9,6 @@ class Application_Form_LiveStreamingPreferences extends Zend_Form_SubForm
|
||||||
array('ViewScript', array('viewScript' => 'form/preferences_livestream.phtml'))
|
array('ViewScript', array('viewScript' => 'form/preferences_livestream.phtml'))
|
||||||
));
|
));
|
||||||
|
|
||||||
//enable Auto-enable for all shows
|
|
||||||
$auto_enable = new Zend_Form_Element_Checkbox('auto_enable_live_stream');
|
|
||||||
$auto_enable->setLabel('Auto-enable for all shows')
|
|
||||||
->setRequired(false)
|
|
||||||
->setValue(Application_Model_Preference::GetLiveSteamAutoEnable())
|
|
||||||
->setDecorators(array('ViewHelper'));
|
|
||||||
$this->addElement($auto_enable);
|
|
||||||
|
|
||||||
//Master username
|
//Master username
|
||||||
$master_username = new Zend_Form_Element_Text('master_username');
|
$master_username = new Zend_Form_Element_Text('master_username');
|
||||||
$master_username->setAttrib('autocomplete', 'off')
|
$master_username->setAttrib('autocomplete', 'off')
|
||||||
|
|
|
@ -699,20 +699,6 @@ class Application_Model_Preference
|
||||||
return $val;
|
return $val;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* $value should be 1 or 0
|
|
||||||
*/
|
|
||||||
public static function SetLiveSteamAutoEnable($value){
|
|
||||||
self::SetValue("live_stream_auto_enable", $value, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function GetLiveSteamAutoEnable(){
|
|
||||||
if(self::GetValue("live_stream_auto_enable") == Null){
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return self::GetValue("live_stream_auto_enable");
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function SetLiveSteamMasterUsername($value){
|
public static function SetLiveSteamMasterUsername($value){
|
||||||
self::SetValue("live_stream_master_username", $value, false);
|
self::SetValue("live_stream_master_username", $value, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -795,7 +795,6 @@ class Application_Model_Show {
|
||||||
}else{
|
}else{
|
||||||
$ccShow = CcShowQuery::create()->findPK($this->_showId);
|
$ccShow = CcShowQuery::create()->findPK($this->_showId);
|
||||||
$info['custom_username'] = $ccShow->getDbLiveStreamUser();
|
$info['custom_username'] = $ccShow->getDbLiveStreamUser();
|
||||||
$info['allow_live_stream_override'] = $ccShow->getDbAllowLiveStream();
|
|
||||||
$info['cb_airtime_auth'] = $ccShow->getDbLiveStreamUsingAirtimeAuth();
|
$info['cb_airtime_auth'] = $ccShow->getDbLiveStreamUsingAirtimeAuth();
|
||||||
$info['cb_custom_auth'] = $ccShow->getDbLiveStreamUsingCustomAuth();
|
$info['cb_custom_auth'] = $ccShow->getDbLiveStreamUsingCustomAuth();
|
||||||
$info['custom_username'] = $ccShow->getDbLiveStreamUser();
|
$info['custom_username'] = $ccShow->getDbLiveStreamUser();
|
||||||
|
@ -991,7 +990,6 @@ class Application_Model_Show {
|
||||||
$ccShow->setDbGenre($data['add_show_genre']);
|
$ccShow->setDbGenre($data['add_show_genre']);
|
||||||
$ccShow->setDbColor($data['add_show_color']);
|
$ccShow->setDbColor($data['add_show_color']);
|
||||||
$ccShow->setDbBackgroundColor($data['add_show_background_color']);
|
$ccShow->setDbBackgroundColor($data['add_show_background_color']);
|
||||||
$ccShow->setDbAllowLiveStream($data['allow_live_stream_override'] == 1?true:false);
|
|
||||||
$ccShow->setDbLiveStreamUsingAirtimeAuth($data['cb_airtime_auth'] == 1?true:false);
|
$ccShow->setDbLiveStreamUsingAirtimeAuth($data['cb_airtime_auth'] == 1?true:false);
|
||||||
$ccShow->setDbLiveStreamUsingCustomAuth($data['cb_custom_auth'] == 1?true:false);
|
$ccShow->setDbLiveStreamUsingCustomAuth($data['cb_custom_auth'] == 1?true:false);
|
||||||
$ccShow->setDbLiveStreamUser($data['custom_username']);
|
$ccShow->setDbLiveStreamUser($data['custom_username']);
|
||||||
|
|
|
@ -45,7 +45,6 @@ class CcShowTableMap extends TableMap {
|
||||||
$this->addColumn('DESCRIPTION', 'DbDescription', 'VARCHAR', false, 512, null);
|
$this->addColumn('DESCRIPTION', 'DbDescription', 'VARCHAR', false, 512, null);
|
||||||
$this->addColumn('COLOR', 'DbColor', 'VARCHAR', false, 6, null);
|
$this->addColumn('COLOR', 'DbColor', 'VARCHAR', false, 6, null);
|
||||||
$this->addColumn('BACKGROUND_COLOR', 'DbBackgroundColor', 'VARCHAR', false, 6, null);
|
$this->addColumn('BACKGROUND_COLOR', 'DbBackgroundColor', 'VARCHAR', false, 6, null);
|
||||||
$this->addColumn('ALLOW_LIVE_STREAM', 'DbAllowLiveStream', 'BOOLEAN', false, null, null);
|
|
||||||
$this->addColumn('LIVE_STREAM_USING_AIRTIME_AUTH', 'DbLiveStreamUsingAirtimeAuth', 'BOOLEAN', false, null, null);
|
$this->addColumn('LIVE_STREAM_USING_AIRTIME_AUTH', 'DbLiveStreamUsingAirtimeAuth', 'BOOLEAN', false, null, null);
|
||||||
$this->addColumn('LIVE_STREAM_USING_CUSTOM_AUTH', 'DbLiveStreamUsingCustomAuth', 'BOOLEAN', false, null, null);
|
$this->addColumn('LIVE_STREAM_USING_CUSTOM_AUTH', 'DbLiveStreamUsingCustomAuth', 'BOOLEAN', false, null, null);
|
||||||
$this->addColumn('LIVE_STREAM_USER', 'DbLiveStreamUser', 'VARCHAR', false, 255, null);
|
$this->addColumn('LIVE_STREAM_USER', 'DbLiveStreamUser', 'VARCHAR', false, 255, null);
|
||||||
|
|
|
@ -69,12 +69,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
protected $background_color;
|
protected $background_color;
|
||||||
|
|
||||||
/**
|
|
||||||
* The value for the allow_live_stream field.
|
|
||||||
* @var boolean
|
|
||||||
*/
|
|
||||||
protected $allow_live_stream;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the live_stream_using_airtime_auth field.
|
* The value for the live_stream_using_airtime_auth field.
|
||||||
* @var boolean
|
* @var boolean
|
||||||
|
@ -226,16 +220,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
return $this->background_color;
|
return $this->background_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the [allow_live_stream] column value.
|
|
||||||
*
|
|
||||||
* @return boolean
|
|
||||||
*/
|
|
||||||
public function getDbAllowLiveStream()
|
|
||||||
{
|
|
||||||
return $this->allow_live_stream;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [live_stream_using_airtime_auth] column value.
|
* Get the [live_stream_using_airtime_auth] column value.
|
||||||
*
|
*
|
||||||
|
@ -416,26 +400,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
return $this;
|
return $this;
|
||||||
} // setDbBackgroundColor()
|
} // setDbBackgroundColor()
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the value of [allow_live_stream] column.
|
|
||||||
*
|
|
||||||
* @param boolean $v new value
|
|
||||||
* @return CcShow The current object (for fluent API support)
|
|
||||||
*/
|
|
||||||
public function setDbAllowLiveStream($v)
|
|
||||||
{
|
|
||||||
if ($v !== null) {
|
|
||||||
$v = (boolean) $v;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->allow_live_stream !== $v) {
|
|
||||||
$this->allow_live_stream = $v;
|
|
||||||
$this->modifiedColumns[] = CcShowPeer::ALLOW_LIVE_STREAM;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
} // setDbAllowLiveStream()
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [live_stream_using_airtime_auth] column.
|
* Set the value of [live_stream_using_airtime_auth] column.
|
||||||
*
|
*
|
||||||
|
@ -567,11 +531,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$this->description = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
|
$this->description = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
|
||||||
$this->color = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
|
$this->color = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
|
||||||
$this->background_color = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
|
$this->background_color = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
|
||||||
$this->allow_live_stream = ($row[$startcol + 7] !== null) ? (boolean) $row[$startcol + 7] : null;
|
$this->live_stream_using_airtime_auth = ($row[$startcol + 7] !== null) ? (boolean) $row[$startcol + 7] : null;
|
||||||
$this->live_stream_using_airtime_auth = ($row[$startcol + 8] !== null) ? (boolean) $row[$startcol + 8] : null;
|
$this->live_stream_using_custom_auth = ($row[$startcol + 8] !== null) ? (boolean) $row[$startcol + 8] : null;
|
||||||
$this->live_stream_using_custom_auth = ($row[$startcol + 9] !== null) ? (boolean) $row[$startcol + 9] : null;
|
$this->live_stream_user = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
|
||||||
$this->live_stream_user = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
|
$this->live_stream_pass = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
|
||||||
$this->live_stream_pass = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
|
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
@ -580,7 +543,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$this->ensureConsistency();
|
$this->ensureConsistency();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $startcol + 12; // 12 = CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS).
|
return $startcol + 11; // 11 = CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating CcShow object", $e);
|
throw new PropelException("Error populating CcShow object", $e);
|
||||||
|
@ -973,18 +936,15 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
return $this->getDbBackgroundColor();
|
return $this->getDbBackgroundColor();
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
return $this->getDbAllowLiveStream();
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
return $this->getDbLiveStreamUsingAirtimeAuth();
|
return $this->getDbLiveStreamUsingAirtimeAuth();
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 8:
|
||||||
return $this->getDbLiveStreamUsingCustomAuth();
|
return $this->getDbLiveStreamUsingCustomAuth();
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 9:
|
||||||
return $this->getDbLiveStreamUser();
|
return $this->getDbLiveStreamUser();
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 10:
|
||||||
return $this->getDbLiveStreamPass();
|
return $this->getDbLiveStreamPass();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -1017,11 +977,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$keys[4] => $this->getDbDescription(),
|
$keys[4] => $this->getDbDescription(),
|
||||||
$keys[5] => $this->getDbColor(),
|
$keys[5] => $this->getDbColor(),
|
||||||
$keys[6] => $this->getDbBackgroundColor(),
|
$keys[6] => $this->getDbBackgroundColor(),
|
||||||
$keys[7] => $this->getDbAllowLiveStream(),
|
$keys[7] => $this->getDbLiveStreamUsingAirtimeAuth(),
|
||||||
$keys[8] => $this->getDbLiveStreamUsingAirtimeAuth(),
|
$keys[8] => $this->getDbLiveStreamUsingCustomAuth(),
|
||||||
$keys[9] => $this->getDbLiveStreamUsingCustomAuth(),
|
$keys[9] => $this->getDbLiveStreamUser(),
|
||||||
$keys[10] => $this->getDbLiveStreamUser(),
|
$keys[10] => $this->getDbLiveStreamPass(),
|
||||||
$keys[11] => $this->getDbLiveStreamPass(),
|
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
@ -1075,18 +1034,15 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$this->setDbBackgroundColor($value);
|
$this->setDbBackgroundColor($value);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
$this->setDbAllowLiveStream($value);
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
$this->setDbLiveStreamUsingAirtimeAuth($value);
|
$this->setDbLiveStreamUsingAirtimeAuth($value);
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 8:
|
||||||
$this->setDbLiveStreamUsingCustomAuth($value);
|
$this->setDbLiveStreamUsingCustomAuth($value);
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 9:
|
||||||
$this->setDbLiveStreamUser($value);
|
$this->setDbLiveStreamUser($value);
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 10:
|
||||||
$this->setDbLiveStreamPass($value);
|
$this->setDbLiveStreamPass($value);
|
||||||
break;
|
break;
|
||||||
} // switch()
|
} // switch()
|
||||||
|
@ -1120,11 +1076,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
if (array_key_exists($keys[4], $arr)) $this->setDbDescription($arr[$keys[4]]);
|
if (array_key_exists($keys[4], $arr)) $this->setDbDescription($arr[$keys[4]]);
|
||||||
if (array_key_exists($keys[5], $arr)) $this->setDbColor($arr[$keys[5]]);
|
if (array_key_exists($keys[5], $arr)) $this->setDbColor($arr[$keys[5]]);
|
||||||
if (array_key_exists($keys[6], $arr)) $this->setDbBackgroundColor($arr[$keys[6]]);
|
if (array_key_exists($keys[6], $arr)) $this->setDbBackgroundColor($arr[$keys[6]]);
|
||||||
if (array_key_exists($keys[7], $arr)) $this->setDbAllowLiveStream($arr[$keys[7]]);
|
if (array_key_exists($keys[7], $arr)) $this->setDbLiveStreamUsingAirtimeAuth($arr[$keys[7]]);
|
||||||
if (array_key_exists($keys[8], $arr)) $this->setDbLiveStreamUsingAirtimeAuth($arr[$keys[8]]);
|
if (array_key_exists($keys[8], $arr)) $this->setDbLiveStreamUsingCustomAuth($arr[$keys[8]]);
|
||||||
if (array_key_exists($keys[9], $arr)) $this->setDbLiveStreamUsingCustomAuth($arr[$keys[9]]);
|
if (array_key_exists($keys[9], $arr)) $this->setDbLiveStreamUser($arr[$keys[9]]);
|
||||||
if (array_key_exists($keys[10], $arr)) $this->setDbLiveStreamUser($arr[$keys[10]]);
|
if (array_key_exists($keys[10], $arr)) $this->setDbLiveStreamPass($arr[$keys[10]]);
|
||||||
if (array_key_exists($keys[11], $arr)) $this->setDbLiveStreamPass($arr[$keys[11]]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1143,7 +1098,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
if ($this->isColumnModified(CcShowPeer::DESCRIPTION)) $criteria->add(CcShowPeer::DESCRIPTION, $this->description);
|
if ($this->isColumnModified(CcShowPeer::DESCRIPTION)) $criteria->add(CcShowPeer::DESCRIPTION, $this->description);
|
||||||
if ($this->isColumnModified(CcShowPeer::COLOR)) $criteria->add(CcShowPeer::COLOR, $this->color);
|
if ($this->isColumnModified(CcShowPeer::COLOR)) $criteria->add(CcShowPeer::COLOR, $this->color);
|
||||||
if ($this->isColumnModified(CcShowPeer::BACKGROUND_COLOR)) $criteria->add(CcShowPeer::BACKGROUND_COLOR, $this->background_color);
|
if ($this->isColumnModified(CcShowPeer::BACKGROUND_COLOR)) $criteria->add(CcShowPeer::BACKGROUND_COLOR, $this->background_color);
|
||||||
if ($this->isColumnModified(CcShowPeer::ALLOW_LIVE_STREAM)) $criteria->add(CcShowPeer::ALLOW_LIVE_STREAM, $this->allow_live_stream);
|
|
||||||
if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH)) $criteria->add(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, $this->live_stream_using_airtime_auth);
|
if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH)) $criteria->add(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, $this->live_stream_using_airtime_auth);
|
||||||
if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH)) $criteria->add(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, $this->live_stream_using_custom_auth);
|
if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH)) $criteria->add(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, $this->live_stream_using_custom_auth);
|
||||||
if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USER)) $criteria->add(CcShowPeer::LIVE_STREAM_USER, $this->live_stream_user);
|
if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_USER)) $criteria->add(CcShowPeer::LIVE_STREAM_USER, $this->live_stream_user);
|
||||||
|
@ -1215,7 +1169,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$copyObj->setDbDescription($this->description);
|
$copyObj->setDbDescription($this->description);
|
||||||
$copyObj->setDbColor($this->color);
|
$copyObj->setDbColor($this->color);
|
||||||
$copyObj->setDbBackgroundColor($this->background_color);
|
$copyObj->setDbBackgroundColor($this->background_color);
|
||||||
$copyObj->setDbAllowLiveStream($this->allow_live_stream);
|
|
||||||
$copyObj->setDbLiveStreamUsingAirtimeAuth($this->live_stream_using_airtime_auth);
|
$copyObj->setDbLiveStreamUsingAirtimeAuth($this->live_stream_using_airtime_auth);
|
||||||
$copyObj->setDbLiveStreamUsingCustomAuth($this->live_stream_using_custom_auth);
|
$copyObj->setDbLiveStreamUsingCustomAuth($this->live_stream_using_custom_auth);
|
||||||
$copyObj->setDbLiveStreamUser($this->live_stream_user);
|
$copyObj->setDbLiveStreamUser($this->live_stream_user);
|
||||||
|
@ -1818,7 +1771,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$this->description = null;
|
$this->description = null;
|
||||||
$this->color = null;
|
$this->color = null;
|
||||||
$this->background_color = null;
|
$this->background_color = null;
|
||||||
$this->allow_live_stream = null;
|
|
||||||
$this->live_stream_using_airtime_auth = null;
|
$this->live_stream_using_airtime_auth = null;
|
||||||
$this->live_stream_using_custom_auth = null;
|
$this->live_stream_using_custom_auth = null;
|
||||||
$this->live_stream_user = null;
|
$this->live_stream_user = null;
|
||||||
|
|
|
@ -26,7 +26,7 @@ abstract class BaseCcShowPeer {
|
||||||
const TM_CLASS = 'CcShowTableMap';
|
const TM_CLASS = 'CcShowTableMap';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 12;
|
const NUM_COLUMNS = 11;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/** The number of lazy-loaded columns. */
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
@ -52,9 +52,6 @@ abstract class BaseCcShowPeer {
|
||||||
/** the column name for the BACKGROUND_COLOR field */
|
/** the column name for the BACKGROUND_COLOR field */
|
||||||
const BACKGROUND_COLOR = 'cc_show.BACKGROUND_COLOR';
|
const BACKGROUND_COLOR = 'cc_show.BACKGROUND_COLOR';
|
||||||
|
|
||||||
/** the column name for the ALLOW_LIVE_STREAM field */
|
|
||||||
const ALLOW_LIVE_STREAM = 'cc_show.ALLOW_LIVE_STREAM';
|
|
||||||
|
|
||||||
/** the column name for the LIVE_STREAM_USING_AIRTIME_AUTH field */
|
/** the column name for the LIVE_STREAM_USING_AIRTIME_AUTH field */
|
||||||
const LIVE_STREAM_USING_AIRTIME_AUTH = 'cc_show.LIVE_STREAM_USING_AIRTIME_AUTH';
|
const LIVE_STREAM_USING_AIRTIME_AUTH = 'cc_show.LIVE_STREAM_USING_AIRTIME_AUTH';
|
||||||
|
|
||||||
|
@ -83,12 +80,12 @@ abstract class BaseCcShowPeer {
|
||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbUrl', 'DbGenre', 'DbDescription', 'DbColor', 'DbBackgroundColor', 'DbAllowLiveStream', 'DbLiveStreamUsingAirtimeAuth', 'DbLiveStreamUsingCustomAuth', 'DbLiveStreamUser', 'DbLiveStreamPass', ),
|
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbUrl', 'DbGenre', 'DbDescription', 'DbColor', 'DbBackgroundColor', 'DbLiveStreamUsingAirtimeAuth', 'DbLiveStreamUsingCustomAuth', 'DbLiveStreamUser', 'DbLiveStreamPass', ),
|
||||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbUrl', 'dbGenre', 'dbDescription', 'dbColor', 'dbBackgroundColor', 'dbAllowLiveStream', 'dbLiveStreamUsingAirtimeAuth', 'dbLiveStreamUsingCustomAuth', 'dbLiveStreamUser', 'dbLiveStreamPass', ),
|
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbUrl', 'dbGenre', 'dbDescription', 'dbColor', 'dbBackgroundColor', 'dbLiveStreamUsingAirtimeAuth', 'dbLiveStreamUsingCustomAuth', 'dbLiveStreamUser', 'dbLiveStreamPass', ),
|
||||||
BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::URL, self::GENRE, self::DESCRIPTION, self::COLOR, self::BACKGROUND_COLOR, self::ALLOW_LIVE_STREAM, self::LIVE_STREAM_USING_AIRTIME_AUTH, self::LIVE_STREAM_USING_CUSTOM_AUTH, self::LIVE_STREAM_USER, self::LIVE_STREAM_PASS, ),
|
BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::URL, self::GENRE, self::DESCRIPTION, self::COLOR, self::BACKGROUND_COLOR, self::LIVE_STREAM_USING_AIRTIME_AUTH, self::LIVE_STREAM_USING_CUSTOM_AUTH, self::LIVE_STREAM_USER, self::LIVE_STREAM_PASS, ),
|
||||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'URL', 'GENRE', 'DESCRIPTION', 'COLOR', 'BACKGROUND_COLOR', 'ALLOW_LIVE_STREAM', 'LIVE_STREAM_USING_AIRTIME_AUTH', 'LIVE_STREAM_USING_CUSTOM_AUTH', 'LIVE_STREAM_USER', 'LIVE_STREAM_PASS', ),
|
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', ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'url', 'genre', 'description', 'color', 'background_color', 'allow_live_stream', 'live_stream_using_airtime_auth', 'live_stream_using_custom_auth', 'live_stream_user', 'live_stream_pass', ),
|
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', ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -98,12 +95,12 @@ abstract class BaseCcShowPeer {
|
||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
private static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbUrl' => 2, 'DbGenre' => 3, 'DbDescription' => 4, 'DbColor' => 5, 'DbBackgroundColor' => 6, 'DbAllowLiveStream' => 7, 'DbLiveStreamUsingAirtimeAuth' => 8, 'DbLiveStreamUsingCustomAuth' => 9, 'DbLiveStreamUser' => 10, 'DbLiveStreamPass' => 11, ),
|
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, ),
|
||||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbUrl' => 2, 'dbGenre' => 3, 'dbDescription' => 4, 'dbColor' => 5, 'dbBackgroundColor' => 6, 'dbAllowLiveStream' => 7, 'dbLiveStreamUsingAirtimeAuth' => 8, 'dbLiveStreamUsingCustomAuth' => 9, 'dbLiveStreamUser' => 10, 'dbLiveStreamPass' => 11, ),
|
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, ),
|
||||||
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::URL => 2, self::GENRE => 3, self::DESCRIPTION => 4, self::COLOR => 5, self::BACKGROUND_COLOR => 6, self::ALLOW_LIVE_STREAM => 7, self::LIVE_STREAM_USING_AIRTIME_AUTH => 8, self::LIVE_STREAM_USING_CUSTOM_AUTH => 9, self::LIVE_STREAM_USER => 10, self::LIVE_STREAM_PASS => 11, ),
|
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::URL => 2, self::GENRE => 3, self::DESCRIPTION => 4, self::COLOR => 5, self::BACKGROUND_COLOR => 6, self::LIVE_STREAM_USING_AIRTIME_AUTH => 7, self::LIVE_STREAM_USING_CUSTOM_AUTH => 8, self::LIVE_STREAM_USER => 9, self::LIVE_STREAM_PASS => 10, ),
|
||||||
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'URL' => 2, 'GENRE' => 3, 'DESCRIPTION' => 4, 'COLOR' => 5, 'BACKGROUND_COLOR' => 6, 'ALLOW_LIVE_STREAM' => 7, 'LIVE_STREAM_USING_AIRTIME_AUTH' => 8, 'LIVE_STREAM_USING_CUSTOM_AUTH' => 9, 'LIVE_STREAM_USER' => 10, 'LIVE_STREAM_PASS' => 11, ),
|
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, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'url' => 2, 'genre' => 3, 'description' => 4, 'color' => 5, 'background_color' => 6, 'allow_live_stream' => 7, 'live_stream_using_airtime_auth' => 8, 'live_stream_using_custom_auth' => 9, 'live_stream_user' => 10, 'live_stream_pass' => 11, ),
|
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, ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -182,7 +179,6 @@ abstract class BaseCcShowPeer {
|
||||||
$criteria->addSelectColumn(CcShowPeer::DESCRIPTION);
|
$criteria->addSelectColumn(CcShowPeer::DESCRIPTION);
|
||||||
$criteria->addSelectColumn(CcShowPeer::COLOR);
|
$criteria->addSelectColumn(CcShowPeer::COLOR);
|
||||||
$criteria->addSelectColumn(CcShowPeer::BACKGROUND_COLOR);
|
$criteria->addSelectColumn(CcShowPeer::BACKGROUND_COLOR);
|
||||||
$criteria->addSelectColumn(CcShowPeer::ALLOW_LIVE_STREAM);
|
|
||||||
$criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH);
|
$criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH);
|
||||||
$criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH);
|
$criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH);
|
||||||
$criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USER);
|
$criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_USER);
|
||||||
|
@ -195,7 +191,6 @@ abstract class BaseCcShowPeer {
|
||||||
$criteria->addSelectColumn($alias . '.DESCRIPTION');
|
$criteria->addSelectColumn($alias . '.DESCRIPTION');
|
||||||
$criteria->addSelectColumn($alias . '.COLOR');
|
$criteria->addSelectColumn($alias . '.COLOR');
|
||||||
$criteria->addSelectColumn($alias . '.BACKGROUND_COLOR');
|
$criteria->addSelectColumn($alias . '.BACKGROUND_COLOR');
|
||||||
$criteria->addSelectColumn($alias . '.ALLOW_LIVE_STREAM');
|
|
||||||
$criteria->addSelectColumn($alias . '.LIVE_STREAM_USING_AIRTIME_AUTH');
|
$criteria->addSelectColumn($alias . '.LIVE_STREAM_USING_AIRTIME_AUTH');
|
||||||
$criteria->addSelectColumn($alias . '.LIVE_STREAM_USING_CUSTOM_AUTH');
|
$criteria->addSelectColumn($alias . '.LIVE_STREAM_USING_CUSTOM_AUTH');
|
||||||
$criteria->addSelectColumn($alias . '.LIVE_STREAM_USER');
|
$criteria->addSelectColumn($alias . '.LIVE_STREAM_USER');
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
* @method CcShowQuery orderByDbDescription($order = Criteria::ASC) Order by the description column
|
* @method CcShowQuery orderByDbDescription($order = Criteria::ASC) Order by the description column
|
||||||
* @method CcShowQuery orderByDbColor($order = Criteria::ASC) Order by the color column
|
* @method CcShowQuery orderByDbColor($order = Criteria::ASC) Order by the color column
|
||||||
* @method CcShowQuery orderByDbBackgroundColor($order = Criteria::ASC) Order by the background_color column
|
* @method CcShowQuery orderByDbBackgroundColor($order = Criteria::ASC) Order by the background_color column
|
||||||
* @method CcShowQuery orderByDbAllowLiveStream($order = Criteria::ASC) Order by the allow_live_stream column
|
|
||||||
* @method CcShowQuery orderByDbLiveStreamUsingAirtimeAuth($order = Criteria::ASC) Order by the live_stream_using_airtime_auth column
|
* @method CcShowQuery orderByDbLiveStreamUsingAirtimeAuth($order = Criteria::ASC) Order by the live_stream_using_airtime_auth column
|
||||||
* @method CcShowQuery orderByDbLiveStreamUsingCustomAuth($order = Criteria::ASC) Order by the live_stream_using_custom_auth column
|
* @method CcShowQuery orderByDbLiveStreamUsingCustomAuth($order = Criteria::ASC) Order by the live_stream_using_custom_auth column
|
||||||
* @method CcShowQuery orderByDbLiveStreamUser($order = Criteria::ASC) Order by the live_stream_user column
|
* @method CcShowQuery orderByDbLiveStreamUser($order = Criteria::ASC) Order by the live_stream_user column
|
||||||
|
@ -26,7 +25,6 @@
|
||||||
* @method CcShowQuery groupByDbDescription() Group by the description column
|
* @method CcShowQuery groupByDbDescription() Group by the description column
|
||||||
* @method CcShowQuery groupByDbColor() Group by the color column
|
* @method CcShowQuery groupByDbColor() Group by the color column
|
||||||
* @method CcShowQuery groupByDbBackgroundColor() Group by the background_color column
|
* @method CcShowQuery groupByDbBackgroundColor() Group by the background_color column
|
||||||
* @method CcShowQuery groupByDbAllowLiveStream() Group by the allow_live_stream column
|
|
||||||
* @method CcShowQuery groupByDbLiveStreamUsingAirtimeAuth() Group by the live_stream_using_airtime_auth column
|
* @method CcShowQuery groupByDbLiveStreamUsingAirtimeAuth() Group by the live_stream_using_airtime_auth column
|
||||||
* @method CcShowQuery groupByDbLiveStreamUsingCustomAuth() Group by the live_stream_using_custom_auth column
|
* @method CcShowQuery groupByDbLiveStreamUsingCustomAuth() Group by the live_stream_using_custom_auth column
|
||||||
* @method CcShowQuery groupByDbLiveStreamUser() Group by the live_stream_user column
|
* @method CcShowQuery groupByDbLiveStreamUser() Group by the live_stream_user column
|
||||||
|
@ -62,7 +60,6 @@
|
||||||
* @method CcShow findOneByDbDescription(string $description) Return the first CcShow filtered by the description column
|
* @method CcShow findOneByDbDescription(string $description) Return the first CcShow filtered by the description column
|
||||||
* @method CcShow findOneByDbColor(string $color) Return the first CcShow filtered by the color column
|
* @method CcShow findOneByDbColor(string $color) Return the first CcShow filtered by the color column
|
||||||
* @method CcShow findOneByDbBackgroundColor(string $background_color) Return the first CcShow filtered by the background_color column
|
* @method CcShow findOneByDbBackgroundColor(string $background_color) Return the first CcShow filtered by the background_color column
|
||||||
* @method CcShow findOneByDbAllowLiveStream(boolean $allow_live_stream) Return the first CcShow filtered by the allow_live_stream column
|
|
||||||
* @method CcShow findOneByDbLiveStreamUsingAirtimeAuth(boolean $live_stream_using_airtime_auth) Return the first CcShow filtered by the live_stream_using_airtime_auth column
|
* @method CcShow findOneByDbLiveStreamUsingAirtimeAuth(boolean $live_stream_using_airtime_auth) Return the first CcShow filtered by the live_stream_using_airtime_auth column
|
||||||
* @method CcShow findOneByDbLiveStreamUsingCustomAuth(boolean $live_stream_using_custom_auth) Return the first CcShow filtered by the live_stream_using_custom_auth column
|
* @method CcShow findOneByDbLiveStreamUsingCustomAuth(boolean $live_stream_using_custom_auth) Return the first CcShow filtered by the live_stream_using_custom_auth column
|
||||||
* @method CcShow findOneByDbLiveStreamUser(string $live_stream_user) Return the first CcShow filtered by the live_stream_user column
|
* @method CcShow findOneByDbLiveStreamUser(string $live_stream_user) Return the first CcShow filtered by the live_stream_user column
|
||||||
|
@ -75,7 +72,6 @@
|
||||||
* @method array findByDbDescription(string $description) Return CcShow objects filtered by the description column
|
* @method array findByDbDescription(string $description) Return CcShow objects filtered by the description column
|
||||||
* @method array findByDbColor(string $color) Return CcShow objects filtered by the color column
|
* @method array findByDbColor(string $color) Return CcShow objects filtered by the color column
|
||||||
* @method array findByDbBackgroundColor(string $background_color) Return CcShow objects filtered by the background_color column
|
* @method array findByDbBackgroundColor(string $background_color) Return CcShow objects filtered by the background_color column
|
||||||
* @method array findByDbAllowLiveStream(boolean $allow_live_stream) Return CcShow objects filtered by the allow_live_stream column
|
|
||||||
* @method array findByDbLiveStreamUsingAirtimeAuth(boolean $live_stream_using_airtime_auth) Return CcShow objects filtered by the live_stream_using_airtime_auth column
|
* @method array findByDbLiveStreamUsingAirtimeAuth(boolean $live_stream_using_airtime_auth) Return CcShow objects filtered by the live_stream_using_airtime_auth column
|
||||||
* @method array findByDbLiveStreamUsingCustomAuth(boolean $live_stream_using_custom_auth) Return CcShow objects filtered by the live_stream_using_custom_auth column
|
* @method array findByDbLiveStreamUsingCustomAuth(boolean $live_stream_using_custom_auth) Return CcShow objects filtered by the live_stream_using_custom_auth column
|
||||||
* @method array findByDbLiveStreamUser(string $live_stream_user) Return CcShow objects filtered by the live_stream_user column
|
* @method array findByDbLiveStreamUser(string $live_stream_user) Return CcShow objects filtered by the live_stream_user column
|
||||||
|
@ -338,23 +334,6 @@ abstract class BaseCcShowQuery extends ModelCriteria
|
||||||
return $this->addUsingAlias(CcShowPeer::BACKGROUND_COLOR, $dbBackgroundColor, $comparison);
|
return $this->addUsingAlias(CcShowPeer::BACKGROUND_COLOR, $dbBackgroundColor, $comparison);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Filter the query on the allow_live_stream column
|
|
||||||
*
|
|
||||||
* @param boolean|string $dbAllowLiveStream The value to use as filter.
|
|
||||||
* Accepts strings ('false', 'off', '-', 'no', 'n', and '0' are false, the rest is true)
|
|
||||||
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
|
||||||
*
|
|
||||||
* @return CcShowQuery The current query, for fluid interface
|
|
||||||
*/
|
|
||||||
public function filterByDbAllowLiveStream($dbAllowLiveStream = null, $comparison = null)
|
|
||||||
{
|
|
||||||
if (is_string($dbAllowLiveStream)) {
|
|
||||||
$allow_live_stream = in_array(strtolower($dbAllowLiveStream), array('false', 'off', '-', 'no', 'n', '0')) ? false : true;
|
|
||||||
}
|
|
||||||
return $this->addUsingAlias(CcShowPeer::ALLOW_LIVE_STREAM, $dbAllowLiveStream, $comparison);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the query on the live_stream_using_airtime_auth column
|
* Filter the query on the live_stream_using_airtime_auth column
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<dl>
|
<dl>
|
||||||
<dt id="allow_live_stream_override-label">
|
|
||||||
<label class="optional" for="allow_live_stream_override">
|
|
||||||
<?php echo $this->element->getElement('allow_live_stream_override')->getLabel() ?>
|
|
||||||
</label>
|
|
||||||
</dt>
|
|
||||||
<dd id="allow_live_stream_override-element">
|
|
||||||
<?php echo $this->element->getElement('allow_live_stream_override') ?>
|
|
||||||
</dd>
|
|
||||||
<dt id="cb_airtime_auth_override-label">
|
<dt id="cb_airtime_auth_override-label">
|
||||||
<label class="optional" for="cb_airtime_auth">
|
<label class="optional" for="cb_airtime_auth">
|
||||||
<?php echo $this->element->getElement('cb_airtime_auth')->getLabel() ?>
|
<?php echo $this->element->getElement('cb_airtime_auth')->getLabel() ?>
|
||||||
|
|
|
@ -1,20 +1,6 @@
|
||||||
<fieldset class="padded stream-setting-global" style="margin-top: 15px">
|
<fieldset class="padded stream-setting-global" style="margin-top: 15px">
|
||||||
<legend>Input Stream Settings</legend>
|
<legend>Input Stream Settings</legend>
|
||||||
<dl class="zend_form">
|
<dl class="zend_form">
|
||||||
<dt id="auto_enable_live_stream-label">
|
|
||||||
<label class="optional" for="auto_enable_live_stream"><?php echo $this->element->getElement('auto_enable_live_stream')->getLabel() ?> :
|
|
||||||
</label>
|
|
||||||
</dt>
|
|
||||||
<dd id="auto_enable_live_stream-element">
|
|
||||||
<?php echo $this->element->getElement('auto_enable_live_stream') ?>
|
|
||||||
<?php if($this->element->getElement('auto_enable_live_stream')->hasErrors()) : ?>
|
|
||||||
<ul class='errors'>
|
|
||||||
<?php foreach($this->element->getElement('auto_enable_live_stream')->getMessages() as $error): ?>
|
|
||||||
<li><?php echo $error; ?></li>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
|
||||||
<?php endif; ?>
|
|
||||||
</dd>
|
|
||||||
<dt id="master_username-label">
|
<dt id="master_username-label">
|
||||||
<label class="optional" for="master_username"><?php echo $this->element->getElement('master_username')->getLabel() ?> :
|
<label class="optional" for="master_username"><?php echo $this->element->getElement('master_username')->getLabel() ?> :
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -146,7 +146,6 @@
|
||||||
<column name="description" phpName="DbDescription" type="VARCHAR" size="512" required="false"/>
|
<column name="description" phpName="DbDescription" type="VARCHAR" size="512" required="false"/>
|
||||||
<column name="color" phpName="DbColor" type="VARCHAR" size="6" required="false"/>
|
<column name="color" phpName="DbColor" type="VARCHAR" size="6" required="false"/>
|
||||||
<column name="background_color" phpName="DbBackgroundColor" type="VARCHAR" size="6" required="false"/>
|
<column name="background_color" phpName="DbBackgroundColor" type="VARCHAR" size="6" required="false"/>
|
||||||
<column name="allow_live_stream" phpName="DbAllowLiveStream" type="BOOLEAN" required="false"/>
|
|
||||||
<column name="live_stream_using_airtime_auth" phpName="DbLiveStreamUsingAirtimeAuth" type="BOOLEAN" required="false"/>
|
<column name="live_stream_using_airtime_auth" phpName="DbLiveStreamUsingAirtimeAuth" type="BOOLEAN" required="false"/>
|
||||||
<column name="live_stream_using_custom_auth" phpName="DbLiveStreamUsingCustomAuth" type="BOOLEAN" required="false"/>
|
<column name="live_stream_using_custom_auth" phpName="DbLiveStreamUsingCustomAuth" type="BOOLEAN" required="false"/>
|
||||||
<column name="live_stream_user" phpName="DbLiveStreamUser" type="VARCHAR" size="255" required="false"/>
|
<column name="live_stream_user" phpName="DbLiveStreamUser" type="VARCHAR" size="255" required="false"/>
|
||||||
|
|
|
@ -178,7 +178,6 @@ CREATE TABLE "cc_show"
|
||||||
"description" VARCHAR(512),
|
"description" VARCHAR(512),
|
||||||
"color" VARCHAR(6),
|
"color" VARCHAR(6),
|
||||||
"background_color" VARCHAR(6),
|
"background_color" VARCHAR(6),
|
||||||
"allow_live_stream" BOOLEAN,
|
|
||||||
"live_stream_using_airtime_auth" BOOLEAN,
|
"live_stream_using_airtime_auth" BOOLEAN,
|
||||||
"live_stream_using_custom_auth" BOOLEAN,
|
"live_stream_using_custom_auth" BOOLEAN,
|
||||||
"live_stream_user" VARCHAR(255),
|
"live_stream_user" VARCHAR(255),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue