CC-1985 : Automatic rebroadcast of recorded content
added url column to cc_shows table, logic to show/hide form components for rebroadcast
This commit is contained in:
parent
20f3c49dcb
commit
e3e8f10021
16 changed files with 529 additions and 60 deletions
|
@ -37,6 +37,13 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
*/
|
||||
protected $name;
|
||||
|
||||
/**
|
||||
* The value for the url field.
|
||||
* Note: this column has a database default value of: ''
|
||||
* @var string
|
||||
*/
|
||||
protected $url;
|
||||
|
||||
/**
|
||||
* The value for the description field.
|
||||
* @var string
|
||||
|
@ -98,6 +105,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
public function applyDefaultValues()
|
||||
{
|
||||
$this->name = '';
|
||||
$this->url = '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -130,6 +138,16 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [url] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDbUrl()
|
||||
{
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [description] column value.
|
||||
*
|
||||
|
@ -200,6 +218,26 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
return $this;
|
||||
} // setDbName()
|
||||
|
||||
/**
|
||||
* Set the value of [url] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return CcShow The current object (for fluent API support)
|
||||
*/
|
||||
public function setDbUrl($v)
|
||||
{
|
||||
if ($v !== null) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->url !== $v || $this->isNew()) {
|
||||
$this->url = $v;
|
||||
$this->modifiedColumns[] = CcShowPeer::URL;
|
||||
}
|
||||
|
||||
return $this;
|
||||
} // setDbUrl()
|
||||
|
||||
/**
|
||||
* Set the value of [description] column.
|
||||
*
|
||||
|
@ -274,6 +312,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($this->url !== '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
// otherwise, everything was equal, so return TRUE
|
||||
return true;
|
||||
} // hasOnlyDefaultValues()
|
||||
|
@ -298,9 +340,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
|
||||
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
|
||||
$this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
|
||||
$this->description = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
|
||||
$this->color = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
|
||||
$this->background_color = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
|
||||
$this->url = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
|
||||
$this->description = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
|
||||
$this->color = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
|
||||
$this->background_color = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
@ -309,7 +352,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
$this->ensureConsistency();
|
||||
}
|
||||
|
||||
return $startcol + 5; // 5 = CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 6; // 6 = CcShowPeer::NUM_COLUMNS - CcShowPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating CcShow object", $e);
|
||||
|
@ -687,12 +730,15 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
return $this->getDbName();
|
||||
break;
|
||||
case 2:
|
||||
return $this->getDbDescription();
|
||||
return $this->getDbUrl();
|
||||
break;
|
||||
case 3:
|
||||
return $this->getDbColor();
|
||||
return $this->getDbDescription();
|
||||
break;
|
||||
case 4:
|
||||
return $this->getDbColor();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getDbBackgroundColor();
|
||||
break;
|
||||
default:
|
||||
|
@ -720,9 +766,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
$result = array(
|
||||
$keys[0] => $this->getDbId(),
|
||||
$keys[1] => $this->getDbName(),
|
||||
$keys[2] => $this->getDbDescription(),
|
||||
$keys[3] => $this->getDbColor(),
|
||||
$keys[4] => $this->getDbBackgroundColor(),
|
||||
$keys[2] => $this->getDbUrl(),
|
||||
$keys[3] => $this->getDbDescription(),
|
||||
$keys[4] => $this->getDbColor(),
|
||||
$keys[5] => $this->getDbBackgroundColor(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
|
@ -761,12 +808,15 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
$this->setDbName($value);
|
||||
break;
|
||||
case 2:
|
||||
$this->setDbDescription($value);
|
||||
$this->setDbUrl($value);
|
||||
break;
|
||||
case 3:
|
||||
$this->setDbColor($value);
|
||||
$this->setDbDescription($value);
|
||||
break;
|
||||
case 4:
|
||||
$this->setDbColor($value);
|
||||
break;
|
||||
case 5:
|
||||
$this->setDbBackgroundColor($value);
|
||||
break;
|
||||
} // switch()
|
||||
|
@ -795,9 +845,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
|
||||
if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]);
|
||||
if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]);
|
||||
if (array_key_exists($keys[2], $arr)) $this->setDbDescription($arr[$keys[2]]);
|
||||
if (array_key_exists($keys[3], $arr)) $this->setDbColor($arr[$keys[3]]);
|
||||
if (array_key_exists($keys[4], $arr)) $this->setDbBackgroundColor($arr[$keys[4]]);
|
||||
if (array_key_exists($keys[2], $arr)) $this->setDbUrl($arr[$keys[2]]);
|
||||
if (array_key_exists($keys[3], $arr)) $this->setDbDescription($arr[$keys[3]]);
|
||||
if (array_key_exists($keys[4], $arr)) $this->setDbColor($arr[$keys[4]]);
|
||||
if (array_key_exists($keys[5], $arr)) $this->setDbBackgroundColor($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -811,6 +862,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
|
||||
if ($this->isColumnModified(CcShowPeer::ID)) $criteria->add(CcShowPeer::ID, $this->id);
|
||||
if ($this->isColumnModified(CcShowPeer::NAME)) $criteria->add(CcShowPeer::NAME, $this->name);
|
||||
if ($this->isColumnModified(CcShowPeer::URL)) $criteria->add(CcShowPeer::URL, $this->url);
|
||||
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::BACKGROUND_COLOR)) $criteria->add(CcShowPeer::BACKGROUND_COLOR, $this->background_color);
|
||||
|
@ -876,6 +928,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
public function copyInto($copyObj, $deepCopy = false)
|
||||
{
|
||||
$copyObj->setDbName($this->name);
|
||||
$copyObj->setDbUrl($this->url);
|
||||
$copyObj->setDbDescription($this->description);
|
||||
$copyObj->setDbColor($this->color);
|
||||
$copyObj->setDbBackgroundColor($this->background_color);
|
||||
|
@ -1472,6 +1525,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
|||
{
|
||||
$this->id = null;
|
||||
$this->name = null;
|
||||
$this->url = null;
|
||||
$this->description = null;
|
||||
$this->color = null;
|
||||
$this->background_color = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue