Feature: Support php7.4 (#1354)

* Run CI tests against php 7.4

* Sort composer dependencies

* Remove unused Aws S3 php library

* Pin simplepie dependency to ^1.5

* Pin getid3 dependency to ^1.9

* Pin composer semver to ^3.2

* Pin php-amqplib to ^2.12

* Drop sentry logging support

* Update composer dependencies

* Move propel regenerate to Makefile

* Regenerate propel files with v1.7.0

* Pin propel orm to ^1.7

* Regenerate propel files with v1.7.2

* fix: generator_version in airtime-conf-production.php

* Replace propel/propel1 with jooola/propel1

* Regenerate propel files with v1.7.3-dev

* Fix php7.4 compatibility

Using php-cs-fixer:

    '@PhpCsFixer' => true,
    'concat_space' => ['spacing' => 'one'],
    'ordered_class_elements' => false,
    'yoda_style' => false,
    '@PHP74Migration' => true,
    'assign_null_coalescing_to_coalesce_equal' => false,
    'ternary_to_null_coalescing' => false,
    'heredoc_indentation' => false,
    '@PHP74Migration:risky' => true,
    'declare_strict_types' => false,
    'void_return' => false,
    'use_arrow_functions' => false,

* Fix pre-commit
This commit is contained in:
Jonas L 2021-10-17 17:19:53 +02:00 committed by GitHub
parent 30b3470a06
commit 5e8d8db6e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
90 changed files with 887 additions and 1310 deletions

View file

@ -340,7 +340,7 @@ class CcFiles extends BaseCcFiles
public function setDbTrackNumber($v)
{
$max = pow(2, 31) - 1;
$max = 2 ** 31 - 1;
$v = ($v > $max) ? $max : $v;
return parent::setDbTrackNumber($v);

View file

@ -1,5 +1,7 @@
<?php
/**
* This class defines the structure of the 'cc_track_types' table.
*
@ -38,9 +40,9 @@ class CcTracktypesTableMap extends TableMap
$this->setPrimaryKeyMethodInfo('cc_track_types_id_seq');
// columns
$this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null);
$this->addColumn('code', 'DbCode', 'VARCHAR', true, 255, '');
$this->addColumn('visibility', 'DbVisibility', 'BOOLEAN', true, 1, true);
$this->addColumn('type_name', 'DbTypeName', 'VARCHAR', true, 255, '');
$this->addColumn('code', 'DbCode', 'VARCHAR', true, 16, '');
$this->addColumn('visibility', 'DbVisibility', 'BOOLEAN', true, null, true);
$this->addColumn('type_name', 'DbTypeName', 'VARCHAR', true, 64, '');
$this->addColumn('description', 'DbDescription', 'VARCHAR', true, 255, '');
// validators
} // initialize()
@ -50,7 +52,6 @@ class CcTracktypesTableMap extends TableMap
*/
public function buildRelations()
{
} // buildRelations()
} // CcTracktypesTableMap

View file

@ -75,7 +75,7 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
/**
* The value for the type field.
* Note: this column has a database default value of: 'static'
* Note: this column has a database default value of: 'dynamic'
* @var string
*/
protected $type;
@ -151,7 +151,7 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
{
$this->name = '';
$this->length = '00:00:00';
$this->type = 'static';
$this->type = 'dynamic';
}
/**
@ -329,7 +329,7 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -421,7 +421,7 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
*/
public function setDbDescription($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -442,7 +442,7 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
*/
public function setDbLength($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -463,7 +463,7 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
*/
public function setDbType($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -494,7 +494,7 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
return false;
}
if ($this->type !== 'static') {
if ($this->type !== 'dynamic') {
return false;
}

View file

@ -433,7 +433,7 @@ abstract class BaseCcBlockcontents extends BaseObject implements Persistent
*/
public function setDbCliplength($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -454,7 +454,7 @@ abstract class BaseCcBlockcontents extends BaseObject implements Persistent
*/
public function setDbCuein($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -475,7 +475,7 @@ abstract class BaseCcBlockcontents extends BaseObject implements Persistent
*/
public function setDbCueout($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -202,7 +202,7 @@ abstract class BaseCcBlockcriteria extends BaseObject implements Persistent
*/
public function setDbCriteria($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -223,7 +223,7 @@ abstract class BaseCcBlockcriteria extends BaseObject implements Persistent
*/
public function setDbModifier($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -244,7 +244,7 @@ abstract class BaseCcBlockcriteria extends BaseObject implements Persistent
*/
public function setDbValue($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -265,7 +265,7 @@ abstract class BaseCcBlockcriteria extends BaseObject implements Persistent
*/
public function setDbExtra($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -91,7 +91,7 @@ abstract class BaseCcCountry extends BaseObject implements Persistent
*/
public function setDbIsoCode($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -112,7 +112,7 @@ abstract class BaseCcCountry extends BaseObject implements Persistent
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -288,18 +288,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
protected $info_url;
/**
* The value for the artwork field.
* @var string
*/
protected $artwork;
/**
* The value for the track_type field.
* @var string
*/
protected $track_type;
/**
* The value for the artist_url field.
* @var string
@ -458,6 +446,18 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
protected $description;
/**
* The value for the artwork field.
* @var string
*/
protected $artwork;
/**
* The value for the track_type field.
* @var string
*/
protected $track_type;
/**
* @var CcSubjs
*/
@ -1158,28 +1158,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this->info_url;
}
/**
* Get the [artwork] column value.
*
* @return string
*/
public function getDbArtwork()
{
return $this->artwork;
}
/**
* Get the [track_type] column value.
*
* @return string
*/
public function getDbTrackType()
{
return $this->track_type;
}
/**
* Get the [artist_url] column value.
*
@ -1455,6 +1433,28 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this->description;
}
/**
* Get the [artwork] column value.
*
* @return string
*/
public function getDbArtwork()
{
return $this->artwork;
}
/**
* Get the [track_type] column value.
*
* @return string
*/
public function getDbTrackType()
{
return $this->track_type;
}
/**
* Set the value of [id] column.
*
@ -1484,7 +1484,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1505,7 +1505,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbMime($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1526,7 +1526,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbFtype($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1572,7 +1572,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbFilepath($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1729,7 +1729,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbMd5($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1750,7 +1750,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbTrackTitle($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1763,46 +1763,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this;
} // setDbTrackTitle()
/**
* Set the value of [artwork] column.
*
* @param string $v new value
* @return CcFiles The current object (for fluent API support)
*/
public function setDbArtwork($v)
{
if ($v !== null && is_numeric($v)) {
$v = (string) $v;
}
if ($this->artwork !== $v) {
$this->artwork = $v;
$this->modifiedColumns[] = CcFilesPeer::ARTWORK;
}
return $this;
} // setDbArtwork()
/**
* Set the value of [track_type] column.
*
* @param string $v new value
* @return CcFiles The current object (for fluent API support)
*/
public function setDbTrackType($v)
{
if ($v !== null && is_numeric($v)) {
$v = (string) $v;
}
if ($this->track_type !== $v) {
$this->track_type = $v;
$this->modifiedColumns[] = CcFilesPeer::TRACK_TYPE;
}
return $this;
} // setDbTrackType()
/**
* Set the value of [artist_name] column.
*
@ -1811,7 +1771,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbArtistName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1874,7 +1834,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbFormat($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1895,7 +1855,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbLength($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1916,7 +1876,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbAlbumTitle($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1937,7 +1897,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbGenre($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1958,7 +1918,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbComments($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -1979,7 +1939,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbYear($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2042,7 +2002,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2084,7 +2044,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbRating($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2105,7 +2065,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbEncodedBy($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2126,7 +2086,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbDiscNumber($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2147,7 +2107,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbMood($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2168,7 +2128,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbLabel($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2189,7 +2149,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbComposer($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2210,7 +2170,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbEncoder($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2231,7 +2191,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbChecksum($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2252,7 +2212,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbLyrics($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2273,7 +2233,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbOrchestra($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2294,7 +2254,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbConductor($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2315,7 +2275,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbLyricist($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2336,7 +2296,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbOriginalLyricist($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2357,7 +2317,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbRadioStationName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2378,7 +2338,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbInfoUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2399,7 +2359,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbArtistUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2420,7 +2380,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbAudioSourceUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2441,7 +2401,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbRadioStationUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2462,7 +2422,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbBuyThisUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2483,7 +2443,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbIsrcNumber($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2504,7 +2464,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbCatalogNumber($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2525,7 +2485,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbOriginalArtist($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2546,7 +2506,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbCopyright($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2567,7 +2527,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbReportDatetime($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2588,7 +2548,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbReportLocation($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2609,7 +2569,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbReportOrganization($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2630,7 +2590,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbSubject($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2651,7 +2611,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbContributor($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2672,7 +2632,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbLanguage($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2768,7 +2728,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbCuein($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2789,7 +2749,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbCueout($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2947,7 +2907,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function setDbDescription($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -2960,6 +2920,48 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this;
} // setDbDescription()
/**
* Set the value of [artwork] column.
*
* @param string $v new value
* @return CcFiles The current object (for fluent API support)
*/
public function setDbArtwork($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->artwork !== $v) {
$this->artwork = $v;
$this->modifiedColumns[] = CcFilesPeer::ARTWORK;
}
return $this;
} // setDbArtwork()
/**
* Set the value of [track_type] column.
*
* @param string $v new value
* @return CcFiles The current object (for fluent API support)
*/
public function setDbTrackType($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->track_type !== $v) {
$this->track_type = $v;
$this->modifiedColumns[] = CcFilesPeer::TRACK_TYPE;
}
return $this;
} // setDbTrackType()
/**
* Indicates whether the columns in this object are only set to default values.
*

View file

@ -1925,64 +1925,6 @@ abstract class BaseCcFilesQuery extends ModelCriteria
return $this->addUsingAlias(CcFilesPeer::INFO_URL, $dbInfoUrl, $comparison);
}
/**
* Filter the query on the artwork column
*
* Example usage:
* <code>
* $query->filterByDbArtwork('fooValue'); // WHERE artwork = 'fooValue'
* $query->filterByDbArtwork('%fooValue%'); // WHERE artwork LIKE '%fooValue%'
* </code>
*
* @param string $dbArtwork The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcFilesQuery The current query, for fluid interface
*/
public function filterByDbArtwork($dbArtwork = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbArtwork)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbArtwork)) {
$dbArtwork = str_replace('*', '%', $dbArtwork);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcFilesPeer::ARTWORK, $dbArtwork, $comparison);
}
/**
* Filter the query on the track_type column
*
* Example usage:
* <code>
* $query->filterByDbTrackType('fooValue'); // WHERE track_type = 'fooValue'
* $query->filterByDbTrackType('%fooValue%'); // WHERE track_type LIKE '%fooValue%'
* </code>
*
* @param string $dbTrackType The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcFilesQuery The current query, for fluid interface
*/
public function filterByDbTrackType($dbTrackType = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbTrackType)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbTrackType)) {
$dbTrackType = str_replace('*', '%', $dbTrackType);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcFilesPeer::TRACK_TYPE, $dbTrackType, $comparison);
}
/**
* Filter the query on the artist_url column
*
@ -2739,6 +2681,64 @@ abstract class BaseCcFilesQuery extends ModelCriteria
return $this->addUsingAlias(CcFilesPeer::DESCRIPTION, $dbDescription, $comparison);
}
/**
* Filter the query on the artwork column
*
* Example usage:
* <code>
* $query->filterByDbArtwork('fooValue'); // WHERE artwork = 'fooValue'
* $query->filterByDbArtwork('%fooValue%'); // WHERE artwork LIKE '%fooValue%'
* </code>
*
* @param string $dbArtwork The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcFilesQuery The current query, for fluid interface
*/
public function filterByDbArtwork($dbArtwork = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbArtwork)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbArtwork)) {
$dbArtwork = str_replace('*', '%', $dbArtwork);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcFilesPeer::ARTWORK, $dbArtwork, $comparison);
}
/**
* Filter the query on the track_type column
*
* Example usage:
* <code>
* $query->filterByDbTrackType('fooValue'); // WHERE track_type = 'fooValue'
* $query->filterByDbTrackType('%fooValue%'); // WHERE track_type LIKE '%fooValue%'
* </code>
*
* @param string $dbTrackType The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcFilesQuery The current query, for fluid interface
*/
public function filterByDbTrackType($dbTrackType = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbTrackType)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbTrackType)) {
$dbTrackType = str_replace('*', '%', $dbTrackType);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcFilesPeer::TRACK_TYPE, $dbTrackType, $comparison);
}
/**
* Filter the query by a related CcSubjs object
*

View file

@ -194,7 +194,7 @@ abstract class BaseCcLiveLog extends BaseObject implements Persistent
*/
public function setDbState($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -113,7 +113,7 @@ abstract class BaseCcLoginAttempts extends BaseObject implements Persistent
*/
public function setDbIP($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -124,7 +124,7 @@ abstract class BaseCcMountName extends BaseObject implements Persistent
*/
public function setDbMountName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -199,7 +199,7 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
*/
public function setDirectory($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -220,7 +220,7 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
*/
public function setType($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -193,7 +193,7 @@ abstract class BaseCcPerms extends BaseObject implements Persistent
*/
public function setAction($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -235,7 +235,7 @@ abstract class BaseCcPerms extends BaseObject implements Persistent
*/
public function setType($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -298,7 +298,7 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -390,7 +390,7 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
*/
public function setDbDescription($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -411,7 +411,7 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
*/
public function setDbLength($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -558,7 +558,7 @@ abstract class BaseCcPlaylistcontents extends BaseObject implements Persistent
*/
public function setDbCliplength($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -579,7 +579,7 @@ abstract class BaseCcPlaylistcontents extends BaseObject implements Persistent
*/
public function setDbCuein($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -600,7 +600,7 @@ abstract class BaseCcPlaylistcontents extends BaseObject implements Persistent
*/
public function setDbCueout($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -176,7 +176,7 @@ abstract class BaseCcPlayoutHistoryMetaData extends BaseObject implements Persis
*/
public function setDbKey($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -197,7 +197,7 @@ abstract class BaseCcPlayoutHistoryMetaData extends BaseObject implements Persis
*/
public function setDbValue($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -141,7 +141,7 @@ abstract class BaseCcPlayoutHistoryTemplate extends BaseObject implements Persis
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -162,7 +162,7 @@ abstract class BaseCcPlayoutHistoryTemplate extends BaseObject implements Persis
*/
public function setDbType($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -249,7 +249,7 @@ abstract class BaseCcPlayoutHistoryTemplateField extends BaseObject implements P
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -270,7 +270,7 @@ abstract class BaseCcPlayoutHistoryTemplateField extends BaseObject implements P
*/
public function setDbLabel($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -291,7 +291,7 @@ abstract class BaseCcPlayoutHistoryTemplateField extends BaseObject implements P
*/
public function setDbType($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -176,7 +176,7 @@ abstract class BaseCcPref extends BaseObject implements Persistent
*/
public function setKeystr($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -197,7 +197,7 @@ abstract class BaseCcPref extends BaseObject implements Persistent
*/
public function setValstr($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -586,7 +586,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
*/
public function setDbClipLength($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -657,7 +657,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
*/
public function setDbCueIn($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -678,7 +678,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
*/
public function setDbCueOut($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -91,7 +91,7 @@ abstract class BaseCcServiceRegister extends BaseObject implements Persistent
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -112,7 +112,7 @@ abstract class BaseCcServiceRegister extends BaseObject implements Persistent
*/
public function setDbIp($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -154,7 +154,7 @@ abstract class BaseCcSess extends BaseObject implements Persistent
*/
public function setSessid($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -200,7 +200,7 @@ abstract class BaseCcSess extends BaseObject implements Persistent
*/
public function setLogin($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -460,7 +460,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -481,7 +481,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
public function setDbUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -502,7 +502,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
public function setDbGenre($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -523,7 +523,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
public function setDbDescription($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -544,7 +544,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
public function setDbColor($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -565,7 +565,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
public function setDbBackgroundColor($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -644,7 +644,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
public function setDbLiveStreamUser($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -665,7 +665,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
public function setDbLiveStreamPass($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -744,7 +744,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
public function setDbImagePath($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -457,7 +457,7 @@ abstract class BaseCcShowDays extends BaseObject implements Persistent
*/
public function setDbTimezone($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -478,7 +478,7 @@ abstract class BaseCcShowDays extends BaseObject implements Persistent
*/
public function setDbDuration($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -495,7 +495,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
*/
public function setDbDescription($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -679,7 +679,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
*/
public function setDbTimeFilled($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -175,7 +175,7 @@ abstract class BaseCcShowRebroadcast extends BaseObject implements Persistent
*/
public function setDbDayOffset($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -108,7 +108,7 @@ abstract class BaseCcStreamSetting extends BaseObject implements Persistent
*/
public function setDbKeyName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -129,7 +129,7 @@ abstract class BaseCcStreamSetting extends BaseObject implements Persistent
*/
public function setDbValue($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -150,7 +150,7 @@ abstract class BaseCcStreamSetting extends BaseObject implements Persistent
*/
public function setDbType($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -499,7 +499,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
public function setDbLogin($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -520,7 +520,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
public function setDbPass($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -541,7 +541,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
public function setDbType($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -562,7 +562,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
public function setDbFirstName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -583,7 +583,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
public function setDbLastName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -650,7 +650,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
public function setDbSkypeContact($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -671,7 +671,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
public function setDbJabberContact($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -692,7 +692,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
public function setDbEmail($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -713,7 +713,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
public function setDbCellPhone($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -217,7 +217,7 @@ abstract class BaseCcSubjsToken extends BaseObject implements Persistent
*/
public function setDbAction($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -238,7 +238,7 @@ abstract class BaseCcSubjsToken extends BaseObject implements Persistent
*/
public function setDbToken($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -1,5 +1,6 @@
<?php
/**
* Base class that represents a row from the 'cc_track_types' table.
*
@ -43,8 +44,8 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
/**
* The value for the visibility field.
* Note: this column has a database default value of: 'U'
* @var string
* Note: this column has a database default value of: true
* @var boolean
*/
protected $visibility;
@ -131,7 +132,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
/**
* Get the [visibility] column value.
*
* @return string
* @return boolean
*/
public function getDbVisibility()
{
@ -178,6 +179,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$this->modifiedColumns[] = CcTracktypesPeer::ID;
}
return $this;
} // setDbId()
@ -189,7 +191,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
*/
public function setDbCode($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -198,19 +200,28 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$this->modifiedColumns[] = CcTracktypesPeer::CODE;
}
return $this;
} // setDbCode()
/**
* Set the value of [visibility] column.
* Sets the value of the [visibility] 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 string $v new value
* @param boolean|integer|string $v The new value
* @return CcTracktypes The current object (for fluent API support)
*/
public function setDbVisibility($v)
{
if ($v !== null && is_numeric($v)) {
$v = (string) $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->visibility !== $v) {
@ -218,6 +229,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$this->modifiedColumns[] = CcTracktypesPeer::VISIBILITY;
}
return $this;
} // setDbVisibility()
@ -229,7 +241,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
*/
public function setDbTypeName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -238,6 +250,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$this->modifiedColumns[] = CcTracktypesPeer::TYPE_NAME;
}
return $this;
} // setDbTypeName()
@ -249,7 +262,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
*/
public function setDbDescription($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -258,6 +271,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$this->modifiedColumns[] = CcTracktypesPeer::DESCRIPTION;
}
return $this;
} // setDbDescription()
@ -275,7 +289,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
return false;
}
if ($this->visibility !== '1') {
if ($this->visibility !== true) {
return false;
}
@ -311,7 +325,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
$this->code = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
$this->visibility = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
$this->visibility = ($row[$startcol + 2] !== null) ? (boolean) $row[$startcol + 2] : null;
$this->type_name = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
$this->description = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
$this->resetModified();
@ -383,6 +397,9 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
}
$this->hydrate($row, 0, true); // rehydrate
if ($deep) { // also de-associate any related objects?
} // if (deep)
}
/**
@ -674,6 +691,8 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$failureMap = array_merge($failureMap, $retval);
}
$this->alreadyInValidation = false;
}
@ -740,11 +759,10 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
* Defaults to BasePeer::TYPE_PHPNAME.
* @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to true.
* @param array $alreadyDumpedObjects List of objects to skip to avoid recursion
* @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE.
*
* @return array an associative array containing the field names (as keys) and field values
*/
public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false)
public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array())
{
if (isset($alreadyDumpedObjects['CcTracktypes'][$this->getPrimaryKey()])) {
return '*RECURSION*';
@ -763,6 +781,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$result[$key] = $virtualColumn;
}
return $result;
}
@ -836,9 +855,9 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]);
if (array_key_exists($keys[1], $arr)) $this->setDbCode($arr[$keys[1]]);
if (array_key_exists($keys[3], $arr)) $this->setDbVisibility($arr[$keys[2]]);
if (array_key_exists($keys[4], $arr)) $this->setDbTypeName($arr[$keys[3]]);
if (array_key_exists($keys[5], $arr)) $this->setDbDescription($arr[$keys[4]]);
if (array_key_exists($keys[2], $arr)) $this->setDbVisibility($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setDbTypeName($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setDbDescription($arr[$keys[4]]);
}
/**
@ -922,18 +941,6 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$copyObj->setDbVisibility($this->getDbVisibility());
$copyObj->setDbTypeName($this->getDbTypeName());
$copyObj->setDbDescription($this->getDbDescription());
if ($deepCopy && !$this->startCopy) {
// important: temporarily setNew(false) because this affects the behavior of
// the getter/setter methods for fkey referrer objects.
$copyObj->setNew(false);
// store object hash to prevent cycle
$this->startCopy = true;
//unflag object copy
$this->startCopy = false;
} // if ($deepCopy)
if ($makeNew) {
$copyObj->setNew(true);
$copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value
@ -987,7 +994,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
{
$this->id = null;
$this->code = null;
$this->visibility = false;
$this->visibility = null;
$this->type_name = null;
$this->description = null;
$this->alreadyInSave = false;
@ -1011,6 +1018,11 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
*/
public function clearAllReferences($deep = false)
{
if ($deep && !$this->alreadyInClearAllReferencesDeep) {
$this->alreadyInClearAllReferencesDeep = true;
$this->alreadyInClearAllReferencesDeep = false;
} // if ($deep)
}

View file

@ -1,5 +1,6 @@
<?php
/**
* Base static class for performing query and update operations on the 'cc_track_types' table.
*
@ -57,6 +58,7 @@ abstract class BaseCcTracktypesPeer
*/
public static $instances = array();
/**
* holds an array of fieldnames
*
@ -216,7 +218,6 @@ abstract class BaseCcTracktypesPeer
return $count;
}
/**
* Selects one object from the DB.
*
@ -237,7 +238,6 @@ abstract class BaseCcTracktypesPeer
return null;
}
/**
* Selects several row from the DB.
*
@ -251,7 +251,6 @@ abstract class BaseCcTracktypesPeer
{
return CcTracktypesPeer::populateObjects(CcTracktypesPeer::doSelectStmt($criteria, $con));
}
/**
* Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement.
*
@ -282,7 +281,6 @@ abstract class BaseCcTracktypesPeer
// BasePeer returns a PDOStatement
return BasePeer::doSelect($criteria, $con);
}
/**
* Adds an object to the instance pool.
*
@ -377,7 +375,6 @@ abstract class BaseCcTracktypesPeer
*/
public static function clearRelatedInstancePool()
{
}
/**
@ -447,7 +444,6 @@ abstract class BaseCcTracktypesPeer
return $results;
}
/**
* Populates an object of the default type or an object that inherit from the default.
*
@ -634,8 +630,8 @@ abstract class BaseCcTracktypesPeer
* @throws PropelException Any exceptions caught during processing will be
* rethrown wrapped into a PropelException.
*/
public static function doDelete($values, PropelPDO $con = null)
{
public static function doDelete($values, PropelPDO $con = null)
{
if ($con === null) {
$con = Propel::getConnection(CcTracktypesPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);
}

View file

@ -1,22 +1,23 @@
<?php
/**
* Base class that represents a query for the 'cc_track_types' table.
*
*
*
* @method CcTracktypesQuery orderByDbId($order = Criteria::ASC) Order by the id column
* @method CcTracktypesQuery orderByDbCOde($order = Criteria::ASC) Order by the code column
* @method CcTracktypesQuery orderByDbCode($order = Criteria::ASC) Order by the code column
* @method CcTracktypesQuery orderByDbVisibility($order = Criteria::ASC) Order by the visibility column
* @method CcTracktypesQuery orderByDbTypeName($order = Criteria::ASC) Order by the type_name column
* @method CcTracktypesQuery orderByDbDescription($order = Criteria::ASC) Order by the description column
*
* @method CcTracktypesQuery groupByDbId() Group by the id column
* @method CcTracktypesQuery groupByDbCOde() Group by the code column
* @method CcTracktypesQuery groupByDbCode() Group by the code column
* @method CcTracktypesQuery groupByDbVisibility() Group by the visibility column
* @method CcTracktypesQuery groupByDbTypeName() Group by the type_name column
* @method CcTracktypesQuery groupByDbDescription() Group by the description column
*
* @method CcTracktypesQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
* @method CcTracktypesQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
* @method CcTracktypesQuery innerJoin($relation) Adds a INNER JOIN clause to the query
@ -25,16 +26,16 @@
* @method CcTracktypes findOneOrCreate(PropelPDO $con = null) Return the first CcTracktypes matching the query, or a new CcTracktypes object populated from the query conditions when no match is found
*
* @method CcTracktypes findOneByDbCode(string $code) Return the first CcTracktypes filtered by the code column
* @method CcTracktypes findOneByDbVisibility(string $visibility) Return the first CcTracktypes filtered by the visibility column
* @method CcTracktypes findOneByDbVisibility(boolean $visibility) Return the first CcTracktypes filtered by the visibility column
* @method CcTracktypes findOneByDbTypeName(string $type_name) Return the first CcTracktypes filtered by the type_name column
* @method CcTracktypes findOneByDbDescription(string $description) Return the first CcTracktypes filtered by the description column
*
* @method array findByDbId(int $id) Return CcTracktypes objects filtered by the id column
* @method array findByDbCode(string $code) Return CcTracktypes objects filtered by the code column
* @method array findByDbVisibility(string $visibility) Return CcTracktypes objects filtered by the visibility column
* @method array findByDbVisibility(boolean $visibility) Return CcTracktypes objects filtered by the visibility column
* @method array findByDbTypeName(string $type_name) Return CcTracktypes objects filtered by the type_name column
* @method array findByDbDescription(string $description) Return CcTracktypes objects filtered by the description column
*
* @package propel.generator.airtime.om
*/
abstract class BaseCcTracktypesQuery extends ModelCriteria
@ -306,32 +307,30 @@ abstract class BaseCcTracktypesQuery extends ModelCriteria
*
* Example usage:
* <code>
* $query->filterByDbVisibility('fooValue'); // WHERE visibility = 'fooValue'
* $query->filterByDbVisibility('%fooValue%'); // WHERE visibility LIKE '%fooValue%'
* $query->filterByDbVisibility(true); // WHERE visibility = true
* $query->filterByDbVisibility('yes'); // WHERE visibility = true
* </code>
*
* @param string $dbVisibility The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param boolean|string $dbVisibility 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 CcTracktypesQuery The current query, for fluid interface
*/
public function filterByDbVisibility($dbVisibility = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbVisibility)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbVisibility)) {
$dbVisibility = str_replace('*', '%', $dbVisibility);
$comparison = Criteria::LIKE;
}
if (is_string($dbVisibility)) {
$dbVisibility = in_array(strtolower($dbVisibility), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
}
return $this->addUsingAlias(CcTracktypesPeer::VISIBILITY, $dbVisibility, $comparison);
}
/**
* Filter the query on the first_name column
* Filter the query on the type_name column
*
* Example usage:
* <code>
@ -339,53 +338,53 @@ abstract class BaseCcTracktypesQuery extends ModelCriteria
* $query->filterByDbTypeName('%fooValue%'); // WHERE type_name LIKE '%fooValue%'
* </code>
*
* @param string $dbFirstName The value to use as filter.
* @param string $dbTypeName The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcTracktypesQuery The current query, for fluid interface
*/
public function filterByDbFirstName($dbFirstName = null, $comparison = null)
public function filterByDbTypeName($dbTypeName = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbFirstName)) {
if (is_array($dbTypeName)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbFirstName)) {
$dbFirstName = str_replace('*', '%', $dbFirstName);
} elseif (preg_match('/[\%\*]/', $dbTypeName)) {
$dbTypeName = str_replace('*', '%', $dbTypeName);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcTracktypesPeer::FIRST_NAME, $dbFirstName, $comparison);
return $this->addUsingAlias(CcTracktypesPeer::TYPE_NAME, $dbTypeName, $comparison);
}
/**
* Filter the query on the last_name column
* Filter the query on the description column
*
* Example usage:
* <code>
* $query->filterByDbLastName('fooValue'); // WHERE last_name = 'fooValue'
* $query->filterByDbLastName('%fooValue%'); // WHERE last_name LIKE '%fooValue%'
* $query->filterByDbDescription('fooValue'); // WHERE description = 'fooValue'
* $query->filterByDbDescription('%fooValue%'); // WHERE description LIKE '%fooValue%'
* </code>
*
* @param string $dbLastName The value to use as filter.
* @param string $dbDescription The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcTracktypesQuery The current query, for fluid interface
*/
public function filterByDbLastName($dbLastName = null, $comparison = null)
public function filterByDbDescription($dbDescription = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbLastName)) {
if (is_array($dbDescription)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbLastName)) {
$dbLastName = str_replace('*', '%', $dbLastName);
} elseif (preg_match('/[\%\*]/', $dbDescription)) {
$dbDescription = str_replace('*', '%', $dbDescription);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcTracktypesPeer::LAST_NAME, $dbLastName, $comparison);
return $this->addUsingAlias(CcTracktypesPeer::DESCRIPTION, $dbDescription, $comparison);
}
/**

View file

@ -354,7 +354,7 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -375,7 +375,7 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
*/
public function setDbDescription($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -396,7 +396,7 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
*/
public function setDbUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -417,7 +417,7 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
*/
public function setDbLength($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -528,7 +528,7 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
*/
public function setDbMime($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -223,7 +223,7 @@ abstract class BaseCcWebstreamMetadata extends BaseObject implements Persistent
*/
public function setDbLiquidsoapData($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -209,7 +209,7 @@ abstract class BaseCeleryTasks extends BaseObject implements Persistent
*/
public function setDbTaskId($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -255,7 +255,7 @@ abstract class BaseCeleryTasks extends BaseObject implements Persistent
*/
public function setDbName($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -299,7 +299,7 @@ abstract class BaseCeleryTasks extends BaseObject implements Persistent
*/
public function setDbStatus($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -151,7 +151,7 @@ abstract class BaseCloudFile extends BaseObject implements Persistent
*/
public function setStorageBackend($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -172,7 +172,7 @@ abstract class BaseCloudFile extends BaseObject implements Persistent
*/
public function setResourceId($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -374,7 +374,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -395,7 +395,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbTitle($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -416,7 +416,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbCreator($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -437,7 +437,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbDescription($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -458,7 +458,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbLanguage($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -479,7 +479,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbCopyright($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -500,7 +500,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbLink($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -521,7 +521,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbItunesAuthor($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -542,7 +542,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbItunesKeywords($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -563,7 +563,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbItunesSummary($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -584,7 +584,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbItunesSubtitle($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -605,7 +605,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbItunesCategory($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -626,7 +626,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
*/
public function setDbItunesExplicit($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -321,7 +321,7 @@ abstract class BasePodcastEpisodes extends BaseObject implements Persistent
*/
public function setDbDownloadUrl($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -342,7 +342,7 @@ abstract class BasePodcastEpisodes extends BaseObject implements Persistent
*/
public function setDbEpisodeGuid($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -363,7 +363,7 @@ abstract class BasePodcastEpisodes extends BaseObject implements Persistent
*/
public function setDbEpisodeTitle($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -384,7 +384,7 @@ abstract class BasePodcastEpisodes extends BaseObject implements Persistent
*/
public function setDbEpisodeDescription($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}

View file

@ -243,7 +243,7 @@ abstract class BaseThirdPartyTrackReferences extends BaseObject implements Persi
*/
public function setDbService($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -264,7 +264,7 @@ abstract class BaseThirdPartyTrackReferences extends BaseObject implements Persi
*/
public function setDbForeignId($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}
@ -333,7 +333,7 @@ abstract class BaseThirdPartyTrackReferences extends BaseObject implements Persi
*/
public function setDbStatus($v)
{
if ($v !== null && is_numeric($v)) {
if ($v !== null) {
$v = (string) $v;
}