setModelAlias($modelAlias); } if ($criteria instanceof Criteria) { $query->mergeWith($criteria); } return $query; } /** * Find object by primary key * Use instance pooling to avoid a database query if the object exists * * $obj = $c->findPk(12, $con); * * @param mixed $key Primary key to use for the query * @param PropelPDO $con an optional connection object * * @return CcFiles|array|mixed the result, formatted by the current formatter */ public function findPk($key, $con = null) { if ((null !== ($obj = CcFilesPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) { // the object is alredy in the instance pool return $obj; } else { // the object has not been requested yet, or the formatter is not an object formatter $criteria = $this->isKeepQuery() ? clone $this : $this; $stmt = $criteria ->filterByPrimaryKey($key) ->getSelectStatement($con); return $criteria->getFormatter()->init($criteria)->formatOne($stmt); } } /** * Find objects by primary key * * $objs = $c->findPks(array(12, 56, 832), $con); * * @param array $keys Primary keys to use for the query * @param PropelPDO $con an optional connection object * * @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter */ public function findPks($keys, $con = null) { $criteria = $this->isKeepQuery() ? clone $this : $this; return $this ->filterByPrimaryKeys($keys) ->find($con); } /** * Filter the query by primary key * * @param mixed $key Primary key to use for the query * * @return CcFilesQuery The current query, for fluid interface */ public function filterByPrimaryKey($key) { return $this->addUsingAlias(CcFilesPeer::ID, $key, Criteria::EQUAL); } /** * Filter the query by a list of primary keys * * @param array $keys The list of primary key to use for the query * * @return CcFilesQuery The current query, for fluid interface */ public function filterByPrimaryKeys($keys) { return $this->addUsingAlias(CcFilesPeer::ID, $keys, Criteria::IN); } /** * Filter the query on the id column * * @param int|array $dbId The value to use as filter. * Accepts an associative array('min' => $minValue, 'max' => $maxValue) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByDbId($dbId = null, $comparison = null) { if (is_array($dbId) && null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(CcFilesPeer::ID, $dbId, $comparison); } /** * Filter the query on the gunid column * * @param string|array $gunid The value to use as filter. * Accepts an associative array('min' => $minValue, 'max' => $maxValue) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByGunid($gunid = null, $comparison = null) { if (is_array($gunid)) { $useMinMax = false; if (isset($gunid['min'])) { $this->addUsingAlias(CcFilesPeer::GUNID, $gunid['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($gunid['max'])) { $this->addUsingAlias(CcFilesPeer::GUNID, $gunid['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(CcFilesPeer::GUNID, $gunid, $comparison); } /** * Filter the query on the name column * * @param string $name 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 filterByName($name = null, $comparison = null) { if (null === $comparison) { if (is_array($name)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $name)) { $name = str_replace('*', '%', $name); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::NAME, $name, $comparison); } /** * Filter the query on the mime column * * @param string $mime 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 filterByMime($mime = null, $comparison = null) { if (null === $comparison) { if (is_array($mime)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $mime)) { $mime = str_replace('*', '%', $mime); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::MIME, $mime, $comparison); } /** * Filter the query on the ftype column * * @param string $ftype 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 filterByFtype($ftype = null, $comparison = null) { if (null === $comparison) { if (is_array($ftype)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $ftype)) { $ftype = str_replace('*', '%', $ftype); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::FTYPE, $ftype, $comparison); } /** * Filter the query on the state column * * @param string $state 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 filterByState($state = null, $comparison = null) { if (null === $comparison) { if (is_array($state)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $state)) { $state = str_replace('*', '%', $state); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::STATE, $state, $comparison); } /** * Filter the query on the currentlyaccessing column * * @param int|array $currentlyaccessing The value to use as filter. * Accepts an associative array('min' => $minValue, 'max' => $maxValue) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByCurrentlyaccessing($currentlyaccessing = null, $comparison = null) { if (is_array($currentlyaccessing)) { $useMinMax = false; if (isset($currentlyaccessing['min'])) { $this->addUsingAlias(CcFilesPeer::CURRENTLYACCESSING, $currentlyaccessing['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($currentlyaccessing['max'])) { $this->addUsingAlias(CcFilesPeer::CURRENTLYACCESSING, $currentlyaccessing['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(CcFilesPeer::CURRENTLYACCESSING, $currentlyaccessing, $comparison); } /** * Filter the query on the editedby column * * @param int|array $editedby The value to use as filter. * Accepts an associative array('min' => $minValue, 'max' => $maxValue) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByEditedby($editedby = null, $comparison = null) { if (is_array($editedby)) { $useMinMax = false; if (isset($editedby['min'])) { $this->addUsingAlias(CcFilesPeer::EDITEDBY, $editedby['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($editedby['max'])) { $this->addUsingAlias(CcFilesPeer::EDITEDBY, $editedby['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(CcFilesPeer::EDITEDBY, $editedby, $comparison); } /** * Filter the query on the mtime column * * @param string|array $mtime The value to use as filter. * Accepts an associative array('min' => $minValue, 'max' => $maxValue) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByMtime($mtime = null, $comparison = null) { if (is_array($mtime)) { $useMinMax = false; if (isset($mtime['min'])) { $this->addUsingAlias(CcFilesPeer::MTIME, $mtime['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($mtime['max'])) { $this->addUsingAlias(CcFilesPeer::MTIME, $mtime['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(CcFilesPeer::MTIME, $mtime, $comparison); } /** * Filter the query on the md5 column * * @param string $md5 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 filterByMd5($md5 = null, $comparison = null) { if (null === $comparison) { if (is_array($md5)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $md5)) { $md5 = str_replace('*', '%', $md5); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::MD5, $md5, $comparison); } /** * Filter the query on the track_title column * * @param string $trackTitle 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 filterByTrackTitle($trackTitle = null, $comparison = null) { if (null === $comparison) { if (is_array($trackTitle)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $trackTitle)) { $trackTitle = str_replace('*', '%', $trackTitle); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::TRACK_TITLE, $trackTitle, $comparison); } /** * Filter the query on the artist_name column * * @param string $artistName 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 filterByArtistName($artistName = null, $comparison = null) { if (null === $comparison) { if (is_array($artistName)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $artistName)) { $artistName = str_replace('*', '%', $artistName); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::ARTIST_NAME, $artistName, $comparison); } /** * Filter the query on the bit_rate column * * @param string $bitRate 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 filterByBitRate($bitRate = null, $comparison = null) { if (null === $comparison) { if (is_array($bitRate)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $bitRate)) { $bitRate = str_replace('*', '%', $bitRate); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::BIT_RATE, $bitRate, $comparison); } /** * Filter the query on the sample_rate column * * @param string $sampleRate 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 filterBySampleRate($sampleRate = null, $comparison = null) { if (null === $comparison) { if (is_array($sampleRate)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $sampleRate)) { $sampleRate = str_replace('*', '%', $sampleRate); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::SAMPLE_RATE, $sampleRate, $comparison); } /** * Filter the query on the format column * * @param string $format 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 filterByFormat($format = null, $comparison = null) { if (null === $comparison) { if (is_array($format)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $format)) { $format = str_replace('*', '%', $format); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::FORMAT, $format, $comparison); } /** * Filter the query on the length column * * @param string|array $dbLength The value to use as filter. * Accepts an associative array('min' => $minValue, 'max' => $maxValue) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByDbLength($dbLength = null, $comparison = null) { if (is_array($dbLength)) { $useMinMax = false; if (isset($dbLength['min'])) { $this->addUsingAlias(CcFilesPeer::LENGTH, $dbLength['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($dbLength['max'])) { $this->addUsingAlias(CcFilesPeer::LENGTH, $dbLength['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(CcFilesPeer::LENGTH, $dbLength, $comparison); } /** * Filter the query on the album_title column * * @param string $albumTitle 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 filterByAlbumTitle($albumTitle = null, $comparison = null) { if (null === $comparison) { if (is_array($albumTitle)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $albumTitle)) { $albumTitle = str_replace('*', '%', $albumTitle); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::ALBUM_TITLE, $albumTitle, $comparison); } /** * Filter the query on the genre column * * @param string $genre 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 filterByGenre($genre = null, $comparison = null) { if (null === $comparison) { if (is_array($genre)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $genre)) { $genre = str_replace('*', '%', $genre); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::GENRE, $genre, $comparison); } /** * Filter the query on the comments column * * @param string $comments 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 filterByComments($comments = null, $comparison = null) { if (null === $comparison) { if (is_array($comments)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $comments)) { $comments = str_replace('*', '%', $comments); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::COMMENTS, $comments, $comparison); } /** * Filter the query on the year column * * @param string $year 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 filterByYear($year = null, $comparison = null) { if (null === $comparison) { if (is_array($year)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $year)) { $year = str_replace('*', '%', $year); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::YEAR, $year, $comparison); } /** * Filter the query on the track_number column * * @param int|array $trackNumber The value to use as filter. * Accepts an associative array('min' => $minValue, 'max' => $maxValue) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByTrackNumber($trackNumber = null, $comparison = null) { if (is_array($trackNumber)) { $useMinMax = false; if (isset($trackNumber['min'])) { $this->addUsingAlias(CcFilesPeer::TRACK_NUMBER, $trackNumber['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($trackNumber['max'])) { $this->addUsingAlias(CcFilesPeer::TRACK_NUMBER, $trackNumber['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(CcFilesPeer::TRACK_NUMBER, $trackNumber, $comparison); } /** * Filter the query on the channels column * * @param int|array $channels The value to use as filter. * Accepts an associative array('min' => $minValue, 'max' => $maxValue) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByChannels($channels = null, $comparison = null) { if (is_array($channels)) { $useMinMax = false; if (isset($channels['min'])) { $this->addUsingAlias(CcFilesPeer::CHANNELS, $channels['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($channels['max'])) { $this->addUsingAlias(CcFilesPeer::CHANNELS, $channels['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(CcFilesPeer::CHANNELS, $channels, $comparison); } /** * Filter the query on the url column * * @param string $url 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 filterByUrl($url = null, $comparison = null) { if (null === $comparison) { if (is_array($url)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $url)) { $url = str_replace('*', '%', $url); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::URL, $url, $comparison); } /** * Filter the query on the bpm column * * @param string $bpm 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 filterByBpm($bpm = null, $comparison = null) { if (null === $comparison) { if (is_array($bpm)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $bpm)) { $bpm = str_replace('*', '%', $bpm); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::BPM, $bpm, $comparison); } /** * Filter the query on the rating column * * @param string $rating 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 filterByRating($rating = null, $comparison = null) { if (null === $comparison) { if (is_array($rating)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $rating)) { $rating = str_replace('*', '%', $rating); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::RATING, $rating, $comparison); } /** * Filter the query on the encoded_by column * * @param string $encodedBy 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 filterByEncodedBy($encodedBy = null, $comparison = null) { if (null === $comparison) { if (is_array($encodedBy)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $encodedBy)) { $encodedBy = str_replace('*', '%', $encodedBy); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::ENCODED_BY, $encodedBy, $comparison); } /** * Filter the query on the disc_number column * * @param string $discNumber 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 filterByDiscNumber($discNumber = null, $comparison = null) { if (null === $comparison) { if (is_array($discNumber)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $discNumber)) { $discNumber = str_replace('*', '%', $discNumber); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::DISC_NUMBER, $discNumber, $comparison); } /** * Filter the query on the mood column * * @param string $mood 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 filterByMood($mood = null, $comparison = null) { if (null === $comparison) { if (is_array($mood)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $mood)) { $mood = str_replace('*', '%', $mood); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::MOOD, $mood, $comparison); } /** * Filter the query on the label column * * @param string $label 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 filterByLabel($label = null, $comparison = null) { if (null === $comparison) { if (is_array($label)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $label)) { $label = str_replace('*', '%', $label); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::LABEL, $label, $comparison); } /** * Filter the query on the composer column * * @param string $composer 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 filterByComposer($composer = null, $comparison = null) { if (null === $comparison) { if (is_array($composer)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $composer)) { $composer = str_replace('*', '%', $composer); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::COMPOSER, $composer, $comparison); } /** * Filter the query on the encoder column * * @param string $encoder 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 filterByEncoder($encoder = null, $comparison = null) { if (null === $comparison) { if (is_array($encoder)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $encoder)) { $encoder = str_replace('*', '%', $encoder); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::ENCODER, $encoder, $comparison); } /** * Filter the query on the checksum column * * @param string $checksum 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 filterByChecksum($checksum = null, $comparison = null) { if (null === $comparison) { if (is_array($checksum)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $checksum)) { $checksum = str_replace('*', '%', $checksum); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::CHECKSUM, $checksum, $comparison); } /** * Filter the query on the lyrics column * * @param string $lyrics 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 filterByLyrics($lyrics = null, $comparison = null) { if (null === $comparison) { if (is_array($lyrics)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $lyrics)) { $lyrics = str_replace('*', '%', $lyrics); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::LYRICS, $lyrics, $comparison); } /** * Filter the query on the orchestra column * * @param string $orchestra 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 filterByOrchestra($orchestra = null, $comparison = null) { if (null === $comparison) { if (is_array($orchestra)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $orchestra)) { $orchestra = str_replace('*', '%', $orchestra); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::ORCHESTRA, $orchestra, $comparison); } /** * Filter the query on the conductor column * * @param string $conductor 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 filterByConductor($conductor = null, $comparison = null) { if (null === $comparison) { if (is_array($conductor)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $conductor)) { $conductor = str_replace('*', '%', $conductor); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::CONDUCTOR, $conductor, $comparison); } /** * Filter the query on the lyricist column * * @param string $lyricist 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 filterByLyricist($lyricist = null, $comparison = null) { if (null === $comparison) { if (is_array($lyricist)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $lyricist)) { $lyricist = str_replace('*', '%', $lyricist); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::LYRICIST, $lyricist, $comparison); } /** * Filter the query on the original_lyricist column * * @param string $originalLyricist 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 filterByOriginalLyricist($originalLyricist = null, $comparison = null) { if (null === $comparison) { if (is_array($originalLyricist)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $originalLyricist)) { $originalLyricist = str_replace('*', '%', $originalLyricist); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::ORIGINAL_LYRICIST, $originalLyricist, $comparison); } /** * Filter the query on the radio_station_name column * * @param string $radioStationName 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 filterByRadioStationName($radioStationName = null, $comparison = null) { if (null === $comparison) { if (is_array($radioStationName)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $radioStationName)) { $radioStationName = str_replace('*', '%', $radioStationName); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::RADIO_STATION_NAME, $radioStationName, $comparison); } /** * Filter the query on the info_url column * * @param string $infoUrl 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 filterByInfoUrl($infoUrl = null, $comparison = null) { if (null === $comparison) { if (is_array($infoUrl)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $infoUrl)) { $infoUrl = str_replace('*', '%', $infoUrl); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::INFO_URL, $infoUrl, $comparison); } /** * Filter the query on the artist_url column * * @param string $artistUrl 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 filterByArtistUrl($artistUrl = null, $comparison = null) { if (null === $comparison) { if (is_array($artistUrl)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $artistUrl)) { $artistUrl = str_replace('*', '%', $artistUrl); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::ARTIST_URL, $artistUrl, $comparison); } /** * Filter the query on the audio_source_url column * * @param string $audioSourceUrl 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 filterByAudioSourceUrl($audioSourceUrl = null, $comparison = null) { if (null === $comparison) { if (is_array($audioSourceUrl)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $audioSourceUrl)) { $audioSourceUrl = str_replace('*', '%', $audioSourceUrl); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::AUDIO_SOURCE_URL, $audioSourceUrl, $comparison); } /** * Filter the query on the radio_station_url column * * @param string $radioStationUrl 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 filterByRadioStationUrl($radioStationUrl = null, $comparison = null) { if (null === $comparison) { if (is_array($radioStationUrl)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $radioStationUrl)) { $radioStationUrl = str_replace('*', '%', $radioStationUrl); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::RADIO_STATION_URL, $radioStationUrl, $comparison); } /** * Filter the query on the buy_this_url column * * @param string $buyThisUrl 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 filterByBuyThisUrl($buyThisUrl = null, $comparison = null) { if (null === $comparison) { if (is_array($buyThisUrl)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $buyThisUrl)) { $buyThisUrl = str_replace('*', '%', $buyThisUrl); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::BUY_THIS_URL, $buyThisUrl, $comparison); } /** * Filter the query on the isrc_number column * * @param string $isrcNumber 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 filterByIsrcNumber($isrcNumber = null, $comparison = null) { if (null === $comparison) { if (is_array($isrcNumber)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $isrcNumber)) { $isrcNumber = str_replace('*', '%', $isrcNumber); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::ISRC_NUMBER, $isrcNumber, $comparison); } /** * Filter the query on the catalog_number column * * @param string $catalogNumber 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 filterByCatalogNumber($catalogNumber = null, $comparison = null) { if (null === $comparison) { if (is_array($catalogNumber)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $catalogNumber)) { $catalogNumber = str_replace('*', '%', $catalogNumber); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::CATALOG_NUMBER, $catalogNumber, $comparison); } /** * Filter the query on the original_artist column * * @param string $originalArtist 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 filterByOriginalArtist($originalArtist = null, $comparison = null) { if (null === $comparison) { if (is_array($originalArtist)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $originalArtist)) { $originalArtist = str_replace('*', '%', $originalArtist); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::ORIGINAL_ARTIST, $originalArtist, $comparison); } /** * Filter the query on the copyright column * * @param string $copyright 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 filterByCopyright($copyright = null, $comparison = null) { if (null === $comparison) { if (is_array($copyright)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $copyright)) { $copyright = str_replace('*', '%', $copyright); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::COPYRIGHT, $copyright, $comparison); } /** * Filter the query on the report_datetime column * * @param string $reportDatetime 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 filterByReportDatetime($reportDatetime = null, $comparison = null) { if (null === $comparison) { if (is_array($reportDatetime)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $reportDatetime)) { $reportDatetime = str_replace('*', '%', $reportDatetime); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::REPORT_DATETIME, $reportDatetime, $comparison); } /** * Filter the query on the report_location column * * @param string $reportLocation 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 filterByReportLocation($reportLocation = null, $comparison = null) { if (null === $comparison) { if (is_array($reportLocation)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $reportLocation)) { $reportLocation = str_replace('*', '%', $reportLocation); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::REPORT_LOCATION, $reportLocation, $comparison); } /** * Filter the query on the report_organization column * * @param string $reportOrganization 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 filterByReportOrganization($reportOrganization = null, $comparison = null) { if (null === $comparison) { if (is_array($reportOrganization)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $reportOrganization)) { $reportOrganization = str_replace('*', '%', $reportOrganization); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::REPORT_ORGANIZATION, $reportOrganization, $comparison); } /** * Filter the query on the subject column * * @param string $subject 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 filterBySubject($subject = null, $comparison = null) { if (null === $comparison) { if (is_array($subject)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $subject)) { $subject = str_replace('*', '%', $subject); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::SUBJECT, $subject, $comparison); } /** * Filter the query on the contributor column * * @param string $contributor 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 filterByContributor($contributor = null, $comparison = null) { if (null === $comparison) { if (is_array($contributor)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $contributor)) { $contributor = str_replace('*', '%', $contributor); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::CONTRIBUTOR, $contributor, $comparison); } /** * Filter the query on the language column * * @param string $language 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 filterByLanguage($language = null, $comparison = null) { if (null === $comparison) { if (is_array($language)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $language)) { $language = str_replace('*', '%', $language); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(CcFilesPeer::LANGUAGE, $language, $comparison); } /** * Filter the query by a related CcSubjs object * * @param CcSubjs $ccSubjs the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByCcSubjs($ccSubjs, $comparison = null) { return $this ->addUsingAlias(CcFilesPeer::EDITEDBY, $ccSubjs->getId(), $comparison); } /** * Adds a JOIN clause to the query using the CcSubjs relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return CcFilesQuery The current query, for fluid interface */ public function joinCcSubjs($relationAlias = '', $joinType = Criteria::LEFT_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('CcSubjs'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'CcSubjs'); } return $this; } /** * Use the CcSubjs relation CcSubjs object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return CcSubjsQuery A secondary query class using the current class as primary query */ public function useCcSubjsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) { return $this ->joinCcSubjs($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery'); } /** * Filter the query by a related CcPlaylistcontents object * * @param CcPlaylistcontents $ccPlaylistcontents the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return CcFilesQuery The current query, for fluid interface */ public function filterByCcPlaylistcontents($ccPlaylistcontents, $comparison = null) { return $this ->addUsingAlias(CcFilesPeer::ID, $ccPlaylistcontents->getDbFileId(), $comparison); } /** * Adds a JOIN clause to the query using the CcPlaylistcontents relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return CcFilesQuery The current query, for fluid interface */ public function joinCcPlaylistcontents($relationAlias = '', $joinType = Criteria::LEFT_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('CcPlaylistcontents'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'CcPlaylistcontents'); } return $this; } /** * Use the CcPlaylistcontents relation CcPlaylistcontents object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return CcPlaylistcontentsQuery A secondary query class using the current class as primary query */ public function useCcPlaylistcontentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN) { return $this ->joinCcPlaylistcontents($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'CcPlaylistcontents', 'CcPlaylistcontentsQuery'); } /** * Exclude object from result * * @param CcFiles $ccFiles Object to remove from the list of results * * @return CcFilesQuery The current query, for fluid interface */ public function prune($ccFiles = null) { if ($ccFiles) { $this->addUsingAlias(CcFilesPeer::ID, $ccFiles->getDbId(), Criteria::NOT_EQUAL); } return $this; } } // BaseCcFilesQuery