CC-84: Smart Playlists
- introducing smart-block
This commit is contained in:
parent
722e470f6f
commit
1f3cbd8aba
56 changed files with 12502 additions and 734 deletions
|
@ -60,6 +60,12 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
*/
|
||||
protected $playlist_id;
|
||||
|
||||
/**
|
||||
* The value for the set_number field.
|
||||
* @var int
|
||||
*/
|
||||
protected $set_number;
|
||||
|
||||
/**
|
||||
* @var CcPlaylist
|
||||
*/
|
||||
|
@ -139,6 +145,16 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
return $this->playlist_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [set_number] column value.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getDbSetNumber()
|
||||
{
|
||||
return $this->set_number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of [id] column.
|
||||
*
|
||||
|
@ -263,6 +279,26 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
return $this;
|
||||
} // setDbPlaylistId()
|
||||
|
||||
/**
|
||||
* Set the value of [set_number] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @return CcPlaylistcriteria The current object (for fluent API support)
|
||||
*/
|
||||
public function setDbSetNumber($v)
|
||||
{
|
||||
if ($v !== null) {
|
||||
$v = (int) $v;
|
||||
}
|
||||
|
||||
if ($this->set_number !== $v) {
|
||||
$this->set_number = $v;
|
||||
$this->modifiedColumns[] = CcPlaylistcriteriaPeer::SET_NUMBER;
|
||||
}
|
||||
|
||||
return $this;
|
||||
} // setDbSetNumber()
|
||||
|
||||
/**
|
||||
* Indicates whether the columns in this object are only set to default values.
|
||||
*
|
||||
|
@ -301,6 +337,7 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
$this->value = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
|
||||
$this->extra = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
|
||||
$this->playlist_id = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null;
|
||||
$this->set_number = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null;
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
@ -309,7 +346,7 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
$this->ensureConsistency();
|
||||
}
|
||||
|
||||
return $startcol + 6; // 6 = CcPlaylistcriteriaPeer::NUM_COLUMNS - CcPlaylistcriteriaPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 7; // 7 = CcPlaylistcriteriaPeer::NUM_COLUMNS - CcPlaylistcriteriaPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating CcPlaylistcriteria object", $e);
|
||||
|
@ -654,6 +691,9 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
case 5:
|
||||
return $this->getDbPlaylistId();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getDbSetNumber();
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
|
@ -684,6 +724,7 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
$keys[3] => $this->getDbValue(),
|
||||
$keys[4] => $this->getDbExtra(),
|
||||
$keys[5] => $this->getDbPlaylistId(),
|
||||
$keys[6] => $this->getDbSetNumber(),
|
||||
);
|
||||
if ($includeForeignObjects) {
|
||||
if (null !== $this->aCcPlaylist) {
|
||||
|
@ -738,6 +779,9 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
case 5:
|
||||
$this->setDbPlaylistId($value);
|
||||
break;
|
||||
case 6:
|
||||
$this->setDbSetNumber($value);
|
||||
break;
|
||||
} // switch()
|
||||
}
|
||||
|
||||
|
@ -768,6 +812,7 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
if (array_key_exists($keys[3], $arr)) $this->setDbValue($arr[$keys[3]]);
|
||||
if (array_key_exists($keys[4], $arr)) $this->setDbExtra($arr[$keys[4]]);
|
||||
if (array_key_exists($keys[5], $arr)) $this->setDbPlaylistId($arr[$keys[5]]);
|
||||
if (array_key_exists($keys[6], $arr)) $this->setDbSetNumber($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -785,6 +830,7 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
if ($this->isColumnModified(CcPlaylistcriteriaPeer::VALUE)) $criteria->add(CcPlaylistcriteriaPeer::VALUE, $this->value);
|
||||
if ($this->isColumnModified(CcPlaylistcriteriaPeer::EXTRA)) $criteria->add(CcPlaylistcriteriaPeer::EXTRA, $this->extra);
|
||||
if ($this->isColumnModified(CcPlaylistcriteriaPeer::PLAYLIST_ID)) $criteria->add(CcPlaylistcriteriaPeer::PLAYLIST_ID, $this->playlist_id);
|
||||
if ($this->isColumnModified(CcPlaylistcriteriaPeer::SET_NUMBER)) $criteria->add(CcPlaylistcriteriaPeer::SET_NUMBER, $this->set_number);
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
|
@ -851,6 +897,7 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
$copyObj->setDbValue($this->value);
|
||||
$copyObj->setDbExtra($this->extra);
|
||||
$copyObj->setDbPlaylistId($this->playlist_id);
|
||||
$copyObj->setDbSetNumber($this->set_number);
|
||||
|
||||
$copyObj->setNew(true);
|
||||
$copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value
|
||||
|
@ -954,6 +1001,7 @@ abstract class BaseCcPlaylistcriteria extends BaseObject implements Persistent
|
|||
$this->value = null;
|
||||
$this->extra = null;
|
||||
$this->playlist_id = null;
|
||||
$this->set_number = null;
|
||||
$this->alreadyInSave = false;
|
||||
$this->alreadyInValidation = false;
|
||||
$this->clearAllReferences();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue