working on configuring an item template UI.

modified db to have fields concept for templates.
This commit is contained in:
Naomi 2013-07-29 16:31:01 -04:00
parent c0206ff8f4
commit 16581088d9
24 changed files with 509 additions and 1652 deletions

View file

@ -493,11 +493,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
protected $collCcSchedules;
/**
* @var array CcFileTag[] Collection to store aggregation of CcFileTag objects.
*/
protected $collCcFileTags;
/**
* @var array CcPlayoutHistory[] Collection to store aggregation of CcPlayoutHistory objects.
*/
@ -3119,8 +3114,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$this->collCcSchedules = null;
$this->collCcFileTags = null;
$this->collCcPlayoutHistorys = null;
} // if (deep)
@ -3314,14 +3307,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
}
}
if ($this->collCcFileTags !== null) {
foreach ($this->collCcFileTags as $referrerFK) {
if (!$referrerFK->isDeleted()) {
$affectedRows += $referrerFK->save($con);
}
}
}
if ($this->collCcPlayoutHistorys !== null) {
foreach ($this->collCcPlayoutHistorys as $referrerFK) {
if (!$referrerFK->isDeleted()) {
@ -3457,14 +3442,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
}
}
if ($this->collCcFileTags !== null) {
foreach ($this->collCcFileTags as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collCcPlayoutHistorys !== null) {
foreach ($this->collCcPlayoutHistorys as $referrerFK) {
if (!$referrerFK->validate($columns)) {
@ -4397,12 +4374,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
}
}
foreach ($this->getCcFileTags() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcFileTag($relObj->copy($deepCopy));
}
}
foreach ($this->getCcPlayoutHistorys() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcPlayoutHistory($relObj->copy($deepCopy));
@ -5212,140 +5183,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this->getCcSchedules($query, $con);
}
/**
* Clears out the collCcFileTags collection
*
* This does not modify the database; however, it will remove any associated objects, causing
* them to be refetched by subsequent calls to accessor method.
*
* @return void
* @see addCcFileTags()
*/
public function clearCcFileTags()
{
$this->collCcFileTags = null; // important to set this to NULL since that means it is uninitialized
}
/**
* Initializes the collCcFileTags collection.
*
* By default this just sets the collCcFileTags collection to an empty array (like clearcollCcFileTags());
* however, you may wish to override this method in your stub class to provide setting appropriate
* to your application -- for example, setting the initial array to the values stored in database.
*
* @return void
*/
public function initCcFileTags()
{
$this->collCcFileTags = new PropelObjectCollection();
$this->collCcFileTags->setModel('CcFileTag');
}
/**
* Gets an array of CcFileTag objects which contain a foreign key that references this object.
*
* If the $criteria is not null, it is used to always fetch the results from the database.
* Otherwise the results are fetched from the database the first time, then cached.
* Next time the same method is called without $criteria, the cached collection is returned.
* If this CcFiles is new, it will return
* an empty collection or the current collection; the criteria is ignored on a new object.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @return PropelCollection|array CcFileTag[] List of CcFileTag objects
* @throws PropelException
*/
public function getCcFileTags($criteria = null, PropelPDO $con = null)
{
if(null === $this->collCcFileTags || null !== $criteria) {
if ($this->isNew() && null === $this->collCcFileTags) {
// return empty collection
$this->initCcFileTags();
} else {
$collCcFileTags = CcFileTagQuery::create(null, $criteria)
->filterByCcFiles($this)
->find($con);
if (null !== $criteria) {
return $collCcFileTags;
}
$this->collCcFileTags = $collCcFileTags;
}
}
return $this->collCcFileTags;
}
/**
* Returns the number of related CcFileTag objects.
*
* @param Criteria $criteria
* @param boolean $distinct
* @param PropelPDO $con
* @return int Count of related CcFileTag objects.
* @throws PropelException
*/
public function countCcFileTags(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
if(null === $this->collCcFileTags || null !== $criteria) {
if ($this->isNew() && null === $this->collCcFileTags) {
return 0;
} else {
$query = CcFileTagQuery::create(null, $criteria);
if($distinct) {
$query->distinct();
}
return $query
->filterByCcFiles($this)
->count($con);
}
} else {
return count($this->collCcFileTags);
}
}
/**
* Method called to associate a CcFileTag object to this object
* through the CcFileTag foreign key attribute.
*
* @param CcFileTag $l CcFileTag
* @return void
* @throws PropelException
*/
public function addCcFileTag(CcFileTag $l)
{
if ($this->collCcFileTags === null) {
$this->initCcFileTags();
}
if (!$this->collCcFileTags->contains($l)) { // only add it if the **same** object is not already associated
$this->collCcFileTags[]= $l;
$l->setCcFiles($this);
}
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcFiles is new, it will return
* an empty collection; or if this CcFiles has previously
* been saved, it will retrieve related CcFileTags from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcFiles.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcFileTag[] List of CcFileTag objects
*/
public function getCcFileTagsJoinCcTag($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcFileTagQuery::create(null, $criteria);
$query->joinWith('CcTag', $join_behavior);
return $this->getCcFileTags($query, $con);
}
/**
* Clears out the collCcPlayoutHistorys collection
*
@ -5571,11 +5408,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$o->clearAllReferences($deep);
}
}
if ($this->collCcFileTags) {
foreach ((array) $this->collCcFileTags as $o) {
$o->clearAllReferences($deep);
}
}
if ($this->collCcPlayoutHistorys) {
foreach ((array) $this->collCcPlayoutHistorys as $o) {
$o->clearAllReferences($deep);
@ -5587,7 +5419,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$this->collCcPlaylistcontentss = null;
$this->collCcBlockcontentss = null;
$this->collCcSchedules = null;
$this->collCcFileTags = null;
$this->collCcPlayoutHistorys = null;
$this->aFkOwner = null;
$this->aCcSubjsRelatedByDbEditedby = null;